I can't remember the location, but search for index.html:
find / -name index.html
Just change that file and add others under the same directory. You can
then write files every 5 seconds say, generated with real-time values.
I think I already gave you the code to force the browser on the client
side to refresh periodically. You should eventually use file locking,
but to start, just write the files. You can also write cgi files in C
to send outputs from a browser on a remote computer. Of course keep
this on a private network!!
Don.
On 5/7/06, francis joss <> wrote:
i was wondering this sounds really basic but on the demo web page which
loads when accessing the TS-7200 over a browser how do i change the
text in basic terms please, all i want to do is change the header body
and stuff any
thanks
francis
"Don W. Carr" <> wrote: Use SUSE, everything will be a lot easier! You first need to download and install the cross compiler under /opt
Then add the following to the path: /opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/ You can insert this into your .bash_profile file: PATH=/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2
/bin/:$PATH export PATH gcc is: arm-linux-gcc g++ is: arm-linux-g++
I have attached a makefile that compiles all of my programs and puts
them an a directory called "arm", to keep them separate from ones that
run locally. I compile programs for Fedora, TS SBCs, and Sixnet RTUs,
so need to keep it all separate. Make sure you use the compiler option: -mcpu=arm9 If you want to create your own libraries to run on the arm sbc, you need to copy the shared object to: /opt/crosstool/arm-linux/gcc-
3.3.4-glibc-2.3.2/lib/gcc-lib/arm-linux/3.3.4/
This is so the cross compiler can also find them and verify all the
library calls at compile time. You also need to copy them to
/usr/local/lib on the target SBC and run ldconfig. It really is quite simple!! Don.
Below I pasted my makefile inline in case the attachments don't work: CC=arm-linux-gcc -mcpu=arm9
CPP=arm-linux-g++ -mcpu=arm9 DIR=arm/ ALL_FILES= $(DIR)lcdmesg $(DIR)keypad $(DIR)connect_wireless $(DIR)test_both $(DIR)test_lcd $(DIR)test_keypad \
$(DIR)speed $(DIR)xdio $(DIR)dio24 $(DIR)nvram2 $(DIR)lcdmesg $(DIR)tempSensor $(DIR)nvram2_read \ $(DIR)timer_test $(DIR)%.o: %.c $(INCLUDES) $(CC) -c -o $@ -Wall $< $(DIR)%.o: %.cpp $(INCLUDES)
$(CPP) -c -o $@ -Wall $< all: $(ALL_FILES) $(DIR)keypad_tsarmp.o: keypad_tsarm.c $(CPP) -c -o $(DIR)keypad_tsarm.o keypad_tsarm.c $(DIR)d2x24_tsarm.o: d2x24_tsarm.c
$(CPP) -c -o $(DIR)d2x24_tsarm.o d2x24_tsarm.c $(DIR)speed: $(DIR)speed.o $(DIR)spd_display_2x24.o $(DIR)spd_com_tsarm.o \ $(DIR)d2x24_tsarm.o
$(DIR)keypad_tsarm.o $(DIR)spd_select.o $(CPP) -o $(DIR)speed -lrtcommon -lpthread $(DIR)speed.o $(DIR)spd_display_2x24.o \
$(DIR)spd_com_tsarm.o $(DIR)d2x24_tsarm.o $(DIR)keypad_tsarm.o
$(DIR)spd_select.o $(DIR)speed_4x40: $(DIR)speed.o $(DIR)spd_display_4x40.o $(DIR)spd_com_tsarm.o \ $(DIR)spd_select.o
$(CPP) -o $(DIR)speed_4x40
-lrtcommon -lrtmodbus -lpthread $(DIR)speed.o $(DIR)spd_display_4x40.o \
$(DIR)spd_com_tsarm.o $(DIR)spd_select.o $(DIR)test_lcd: $(DIR)test_lcd.o $(DIR)d2x24_tsarm.o $(DIR)keypad_tsarm.o
$(CC) -o $(DIR)test_lcd
-lpthread $(DIR)test_lcd.o $(DIR)d2x24_tsarm.o
$(DIR)keypad_tsarm.o $(DIR)tst_4x40: $(DIR)tst_4x40.o $(CPP) -o $(DIR)tst_4x40 $(DIR)tst_4x40.o -lrtcommon -lrtmodbus $(DIR)test_keypad: $(DIR)test_keypad.o $(DIR)keypad_tsarm.o $(CC) -o $(DIR)test_keypad -lpthread $(DIR)test_keypad.o $(DIR)keypad_tsarm.o
$(DIR)test_both: $(DIR)test_both.o -lpthread $(DIR)keypad_tsarm.o $(DIR)d2x24_tsarm.o
$(CC) -o $(DIR)test_both
-lpthread $(DIR)test_both.o $(DIR)keypad_tsarm.o $(DIR)d2x24_tsarm.o $(DIR)lcdmesg: lcdmesg.c $(CC) -o $(DIR)lcdmesg lcdmesg.c $(DIR)keypad: keypad.c
$(CC) -o $(DIR)keypad keypad.c $(DIR)exe_command: exe_command.c $(CC) -o $(DIR)exe_command exe_command.c $(DIR)connect_wireless: connect_wireless.c $(CC) -o $(DIR)connect_wireless connect_wireless.c
$(DIR)xdio: $(DIR)xdio.o $(DIR)timer.o frtimer.h $(CPP) -o $(DIR)xdio -lrtcommon $(DIR)xdio.o $(DIR)timer.o $(DIR)dio24: dio24.c $(CC) -o $(DIR)dio24 dio24.c $(DIR)nvram2:
nvram2.c $(CC) -o $(DIR)nvram2 nvram2.c $(DIR)nvram2_read: nvram2_read.c $(CC) -o $(DIR)nvram2_read nvram2_read.c $(DIR)tempSensor: tempSensor.c $(CC) -o $(DIR)tempSensor
tempSensor.c $(DIR)timer_test: timer_test.cpp timer.cpp frtimer.h $(CPP) -o $(DIR)timer_test -lrtcommon timer_test.cpp
timer.cpp $(DIR)aldo: aldo.c $(CC) -o $(DIR)aldo aldo.c clean: rm -fv $(DIR)*.o
rm -fv $(DIR)*.so rm -fv $(ALL_FILES)
On 4/27/06, francis joss <> wrote: okay
i have maid some progress now i have now got ftp working i now also
have a piece code that when a push button is connected accross to pin
DIO pin 1 and to ground will blink the red and green leds on the
ts-7200 when the button is pressed sonow
i need to get this piece of c code complied and tranfered to the arm, i
think i need to get a set of compiler tools onto the board or onto my
host p.c i have two hosts a windows based xp and a linux box running
suse 10. What would be the best way to go about this. thanks francis
Garrett Stritch < > wrote:
You can subscribe to Unix daily tips here:
thanks
"Don W. Carr" <> wrote:
Go
look at the example code for the LCD display and keypad, and also read
the manuals. You will see how to set each pin as either input or
output. If you have specific questions after looking at that code and
after reading the manual let us know. On 4/26/06, francis joss <
> wrote:
Okay i have made some progress with this
i
now have the ethernet working and can now telnet into the board and
access the web browser, my lecteur has gave me a task to complete
he
wants a L.E.D to blink on and off, simple i know he wants me to connet
an led to the Di/o terminals and write a piece of code that when run
will cause it to bloink at different rates, any ideas
To transfer files to the 7200 you should use
FTP, but you need to get the ethernet connection going first. You really only need to set the IP on your computer to a fixed IP using the same address range as the 7200 default, such as
192.168.0.5. The default IP of the 7200 should be 192.168.0.50.
Actually, from the command prompt, type "ifconfig" to verify the
default IP of your 7200 is in fact 192.168.0.50.
Once you have the ethernet connection working, you can also telnet to
the 7200. Of course in a browser window, type in http://192.168.0.50 and you should see
the default TS web page.
Well, you need to look for someone locally that has experience with Linux or Unix in general. We can't help you with everything via the email list.
Also, if you describe you application, you will get a lot more
helpfull suggestions.
Don.
On 4/21/06, francis joss <
> wrote: > hi > > i dont really know how to transfer files to the sbc > > so far i have > > powered up the board using hyperterminal and got to the stage where i am > asked for a login to the ts 7200 i log in as root and the busybox built in
> shell loads, i am havng trouble connecting the board by ethernet and i was > also wondering, how i get the webserver up and running i know apache has > started once the board has
reached this stage. > > my problem is that i dont know the basic steps to follow next as i am very > knew to this product and the language etc any help would be amazing > > all i want to do at this stage is get the board up and running with
> everything installedbready to run an application > > "Don W. Carr" <> wrote: > We would like to help, but need more information about the application. > > You will as a minimum need to set up a ramdisk to hold the real-time > data, but should probably consider battery backed RAM to hold the
> real-time data so that you won't lose data in the event of a power > failure. TS is working on making their battery backed RAM appear as a > mounted disk drive. > >
Remember, do NOT write continuously to flash, it has limited write > cycles. Though, TS uses a special file system for flash to distribute > the writes, with a 1 GB flash, you would probably last years writing
> 100 bytes per second and that might be cheaper and easier than buying > battery backed RAM. I am actually considering this because the the > battery backed RAM boards are very bulking and cost over $100 for 2
> meg. I would take 3 years to fill a 1 GB flash writing 100 bytes per > second. > > To get started, I would reccomend generating straight html for your > real-time displays. If you add the following to the top of your file,
> this will force a refresh every second. > > <META HTTP-EQUIV="refresh" CONTENT="1"> > <meta http-equiv="pragma" content="no-cache"> >
>
Also, you should use Firefox since it works so much better for > real-time displays. Internet Explorer insists on scrolling to the top > of the page on refresh, rather than leaving you where you were, and
> also gives a lot of blink. With Firefox, you don't get all the blink. > > You can also use overlapping images to create interesting animations, > though you can not rotate. You can even use transparency with png
> images. Here is an example: > > <div style="position:absolute; top:50px; left:0px;"> > <img SRC="" > </div> > > <div style="position:absolute; top:95px; left:26px; z-index:2">
> <img SRC="">> </div> > > > Well, give
us some more information and we can help you. > > Do you know how to use the C compiler and transfer files to the SBC? > Do you understand the basics of Apache? Apache is turned on by > default.
> > Don. > > On 4/21/06, francisjoss1981 <
> wrote: > > i am currently under taking a project for university using a TS 7200 > > to set up a data aquisition system usin a web browser but i havent got > > a clue wee to start
> > > > so far i have connects the board to my laptop using the serial port on > > the board and used hyperterminal to boot into it > > > > this has been successful and i am
able to log in as root but from here > > i have not a clue were to go there is no file system or anything on > > the board any help as to how to take the next step would be great > >
> > thanks > > > > francis > > > > > > > > > > > > > > > > > > ________________________________
> > YAHOO! GROUPS LINKS > > > > > > Visit your group "ts-7000" on the web. > > > > To unsubscribe from this group, send an email to: > > >
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > > ________________________________ > > > > > -- > Dr. Don W. Carr
> J. G. Montenegro 2258 > Guadalajara, Mexico > +52-333-630-0704 > +52-333-836-4500 ext 2930 > > > > ________________________________ > 24 FIFA World Cup tickets to be won with Yahoo! Mail. Learn more
> > > ________________________________ > YAHOO! GROUPS LINKS > > > Visit your group "ts-7000" on the web. > > To unsubscribe from this group, send an email to:
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > ________________________________ > > > >
-- Dr. Don W. Carr J. G. Montenegro 2258 Guadalajara, Mexico +52-333-630-0704 +52-333-836-4500 ext 2930
-
Visit your group "ts-7000" on the web.
- To unsubscribe from this group, send an email to:
=Unsubscribe
- Your use of Yahoo! Groups is subject to the
Yahoo! Terms of Service.
-- Dr. Don W. Carr J. G. Montenegro 2258 Guadalajara, Mexico +52-333-630-0704 +52-333-836-4500 ext 2930
24 FIFA World Cup tickets to be won with Yahoo! Mail.
Learn more
24 FIFA World Cup tickets to be won with Yahoo! Mail.
Learn more
24 FIFA World Cup tickets to be won with Yahoo! Mail.
Learn more
SPONSORED LINKS
YAHOO! GROUPS LINKS
-- Dr. Don W. Carr J. G. Montenegro 2258 Guadalajara, Mexico +52-333-630-0704 +52-333-836-4500 ext 2930
SPONSORED LINKS
YAHOO! GROUPS LINKS
- Visit your group "
ts-7000" on the web.
- To unsubscribe from this group, send an email to:
=Unsubscribe
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
-- Dr. Don W. Carr J. G. Montenegro 2258
Guadalajara, Mexico +52-333-630-0704 +52-333-836-4500 ext 2930
SPONSORED LINKS
YAHOO! GROUPS LINKS
- Visit your group "ts-7000" on the web.
- To unsubscribe from this group, send an email to:
=Unsubscribe
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|