Advertisement

Quick Links

Sena Technologies, Inc.
__________________________________________________________________________
HelloDevice STS Series
User Customization Guide
Version 1.1.0
2006-07-25
__________________________________________________________________________________________-
- 1/15 -

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HelloDevice STS Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Sena HelloDevice STS Series

  • Page 1 Sena Technologies, Inc. __________________________________________________________________________ HelloDevice STS Series User Customization Guide Version 1.1.0 2006-07-25 __________________________________________________________________________________________- - 1/15 -...
  • Page 2: Copyright Information

    __________________________________________________________________________ Copyright Information Copyright 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.
  • Page 3: Revision History

    Sena Technologies, Inc. __________________________________________________________________________ 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 __________________________________________________________________________________________- - 3/15 -...
  • Page 4: Table Of Contents

    Sena Technologies, Inc. __________________________________________________________________________ Content Overview................................5 SDK (Software Development Kit)........................5 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 User Web Customization...........................6 4.1. HTML Files ...........6 4.2. CGI files ............7 4.3.
  • Page 5: Overview

    To make user’ s own application code, SDK for STS400/800/1600 is needed. STS400/800/1600 SDK is provided in the form of PC CF card (Please contact Sena Technical Support to get SDK for STS400/800/1600.). The SDK contains compiler, linker, library files, header files and some sample C files.
  • Page 6: How To Build User Programs

    Sena Technologies, Inc. __________________________________________________________________________ 3. How to build user programs? 3.1. Preparing Follow the below steps to prepare the development environment for customization. 1) Get a SDK for STS400/800/1600 in the form of CF card. 2) Insert the SDK into the PCMCIA (PC card) slot of the STS device.
  • Page 7: Cgi Files

    Sena Technologies, Inc. __________________________________________________________________________ 4.2. CGI files 4.2.1 Building CGI files Below is the procedure to build CGI files. Sample CGI source 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.
  • Page 8: Java Applets And So On

    Sena Technologies, Inc. __________________________________________________________________________ be an entry page of the custom pages. Here is a Makefile to make the shell.c. CC = gcc BIN = shell.cgi OBJS = shell.o util_cgi.o LDFLAG = -L/mnt/flash/lib BIN : $(OBJS) $(CC) -o $(BIN) $(OBJS) $(LDFLAG) c.o :...
  • Page 9: Building Filter Program

    Sena Technologies, Inc. __________________________________________________________________________ Remote Hosts Socket Read/Write App . FIFOs Filter App. FIFOs Serial port Read/Write App. Serial Port The user-defined filter reads a FIFO that is streaming the serial port data, manipulate the data and write the manipulated data to a FIFO that is sent to socket. The data stream that goes from socket to serial port can be manipulated in the same way.
  • Page 10: Filter Samples

    Sena Technologies, Inc. __________________________________________________________________________ Step 2. Copy one of sample filter programs to user space. # cp data_conversion /usr2/sample_filter Step 3. Configure the filter application settings as follows: 5.3. Filter Samples All sample programs are composed of three threads, one main thread, one reading on serial port thread and one reading on socket thread.
  • Page 11: Debugging With Gdb

    Utility routines for circular queue. 6. Debugging with GDB The SDK for HelloDevice STS Series supports GNU GDB debugger so that user can see what is going on inside user program while it executes. ( Please note that GDB support is added from the SDK v1.1.0 or later) GDB can do four main kinds of things to help user catch bugs in the act: ...
  • Page 12 Sena Technologies, Inc. __________________________________________________________________________ //CFLAGS = -pipe CFLAGS = -pipe –g Step 3. Modify source program to fit it to run with GDB debugger. Remove do_daemon() and save_pid(portnum) functions calls. Please note that user should run his program on the foreground to debug it with GDB.
  • Page 13 Sena Technologies, Inc. __________________________________________________________________________ 113 root /bin/linkupchecker -c 1 118 root /etc/rc.d/rc2.d/S53sts800mand start 126 root /etc/rc.d/rc2.d/S53sts800mand start 128 root /usr/sbin/cron 129 root -bash 523 root ss.port 1 524 root ss.port 1 525 root ss.port 1 526 root ss.port 1 527 root ss.port 1...
  • Page 14 Sena Technologies, Inc. __________________________________________________________________________ (gdb) n e2s_thread (arg=0x0) at data_conversion.c:257 int nread=0; (gdb) n pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); (gdb) n pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL); (gdb) n Step 10. When program run is reached at the line #274, user should make a tcp connection to a...
  • Page 15 Sena Technologies, Inc. __________________________________________________________________________ Fro more detail information about GDB debugger, please refer to GNU documentation page. (http://www.gnu.org/software/gdb/documentation/) __________________________________________________________________________________________- - 15/15 -...

Table of Contents