Sena HelloDevice STS Series Скачать руководство пользователя страница 1

Sena Technologies, Inc.

__________________________________________________________________________

__________________________________________________________________________________________-

- 1/15 -

HelloDevice STS Series

User Customization Guide

Version 1.1.0

2006-07-25

Содержание HelloDevice STS Series

Страница 1: ...________________________________________________________________ __________________________________________________________________________________________ 1 15 HelloDevice STS Series User Customization Guide Version 1 1 0 2006 07 25 ...

Страница 2: ...ght 1998 2004 Sena Technologies Inc All rights reserved Sena Technologies reserves the right to make any changes and improvements to its product without providing prior notice Trademark Information HelloDevice is a trademark of Sena Technologies Inc Technical Support Sena Technologies Inc 210 Yangjae dong Seocho gu Seoul 137 130 Korea Tel 82 2 573 5422 Fax 82 2 573 7710 E Mail support sena com Web...

Страница 3: ... __________________________________________________________________________________________ 3 15 Revision history Revision Date Name Description V0 0 1 2003 09 09 H Yeom Initial Draft V1 0 0 2003 09 22 H Yeom Initial Release V1 1 0 2004 01 12 H Yeom GDB support and sample filter programs are added ...

Страница 4: ...DK Software Development Kit 5 3 How to build user programs 6 3 1 Preparing 6 3 2 Coding 6 3 3 Uploading Files 6 3 4 Building and Executing 6 4 User Web Customization 6 4 1 HTML Files 6 4 2 CGI files 7 4 3 Java applets and so on 8 5 User Filter Customization 8 5 1 Understanding Filter Programs 8 5 2 Building Filter Program 9 5 3 Filter Samples 10 6 Debugging with GDB 11 6 1 Debugging sample filter ...

Страница 5: ... communicates with other programs that are reading writing serial port and socket by using FIFOs and so user can easily manipulate the serial data without programming related to serial port and socket The unit runs the embedded Linux Operating system and facilitates programming using command line interface or one of several prepared scripts using UNIX Linux commands 2 SDK Software Development Kit ...

Страница 6: ...nux box Almost all the Linux libraries are located at mnt flash lib directory 3 3 Uploading Files If you edit the files on the STS Series CLI skip over this section To compile the source files you must have uploaded the files to the STS device You can upload the files in three ways as follows SCP FTP Configuration menu For more detail information refer to the User Guide 3 4 Building and Executing ...

Страница 7: ...e file is located at mnt flash sample web cgi shell c Step 1 Build the CGI file cd mnt flash sample web cgi make Step 2 Copy the CGI file cp shell cgi usr2 cgi bin Step 3 Execute a Web browser connect to the STS400 800 1600 and log in Step 4 At the Web browser go to http 192 168 1 2 cgi bin shell cgi Suppose that the IP address of the STS400 800 1600 is 192 168 1 2 4 2 2 Using CGI files The CGI fi...

Страница 8: ...il_cgi c are attached at the Appendix A These CGI programs must be in the usr2 cgi bin directory 4 3 Java applets and so on JAVA applets are also available The applet files and all web files except CGI program must be in the usr2 usrweb directory 5 User Filter Customization 5 1 Understanding Filter Programs STS400 800 1600 uses FIFO method for inter process communication User can insert a program ...

Страница 9: ...ased on 1 2 Write the data stream going to serial port to FIFO that is named tmp port_fifos portX_f2e 3 Read the data stream coming from serial port to FIFO that is named tmp port_fifos portX_s2f 4 Read the data stream coming from socket to FIFO that is named tmp port_fifos portX_e2f 5 Open four FIFOs on being executing and do not close the FIFOs except to be terminated 6 Have more than one argume...

Страница 10: ... modified to its purpose empty c This sample filter connects the serial port read write application and socket read write application with FIFOs It does not manipulate the data periodic_command c This sample filter connects the serial port read write application and socket read write application with FIFOs and writes a command to serial port periodically data_conversion c This sample filter is an ...

Страница 11: ...until user tells it to exit with GDB command quit User can get online help from gdb itself by using the command help User can run gdb with no arguments or options but the most usual way to start GDB is with one argument or two specifying an executable program as the argument Before run user program with GDB user should compile his programwith g option 6 1 Debugging sample filter program with GDB T...

Страница 12: ...E handle_sigterm Remark following two lines to run this program on the foreground do_daemon save_pid portnum do_filter close_fifos return 0 Step 4 Compile sample filter program make data_conversion Step 5 Start serial port daemon ss port and tcp socket daemon ss tcp programs manually The ss port is a daemon program for serial port and ss tcp is a daemon program for tcp port These two programs are ...

Страница 13: ...ion Inc GDB is free software covered by the GNU General Public License and you are welcome to change it and or distribute copies of it under certain conditions Type show copying to see the conditions There is absolutely no warranty for GDB Type show warranty for details This GDB was configured as powerpc hardhat linux gdb set args 1 Argument 1 means that this sample filter program is run for port ...

Страница 14: ...t step gdb n 270 if f2s_fd 0 pthread_exit NULL gdb n 272 while exit_flag gdb n 274 nread read e2f_fd buf sizeof buf gdb n 275 if nread 0 continue gdb Step 11 By setting break point at line 275 and display variable buf 0 user can monitor data coming from tcp port whenever there is a data from it gdb display buf 0 1 buf 0 97 a gdb break 275 Breakpoint 2 at 0x10003160 file data_conversion c line 275 ...

Страница 15: ...___________________________________ __________________________________________________________________________________________ 15 15 Fro more detail information about GDB debugger please refer to GNU documentation page http www gnu org software gdb documentation ...

Отзывы: