Sponsored Content
Top Forums Shell Programming and Scripting Writing a program to receive the GPS data and send to other server Post 302365673 by rdcwayx on Tuesday 27th of October 2009 07:03:16 PM
Old 10-27-2009
Quote:
Originally Posted by kenlok
Hi,

I would like to write a program to receive the GPS data and then send the data via network to other program.
All of the program is not write yet(include host and sender)
All of the server OS is unix or linux

Could you mind to give me some idea to do this?

Thanks so much!

Ken
Please give a sample of GPS data, and tell use what you want to do on these datas in detail.
 

10 More Discussions You Might Find Interesting

1. IP Networking

Tcp Ip Send Receive Server Program

Requirements: A server program should read a file and send the message to the client . if the file is not there, then switch to the receive part of the same program and receive any messages from the socket. If no messages to receive then switch to send part of the program to... (2 Replies)
Discussion started by: Rajeshsu
2 Replies

2. UNIX for Dummies Questions & Answers

I can send but cannot receive mail with unix?

Hi all, First post! I have just discovered that I can use unix to send mail to a mail address. I normally use entourage for my mail. This unix mail is very intriguing to me, but something is not working... I tried the search, but could not find the answer... This works: (in terminal)... (1 Reply)
Discussion started by: bjorn
1 Replies

3. UNIX for Dummies Questions & Answers

Can send but not receive email

Hi, One of the users in our company can send but not receive email. We are using SENDMAIL in conjunction with procmail. The funny thing is that all his sent email is in his /var/spool/mail but the email client does not pick anything up! He is using IMAP. Anyone see have any ideas? (2 Replies)
Discussion started by: mojoman
2 Replies

4. Programming

Send/Receive buffer size??

Dear friends, How do I find the TCP send and receive buffer size? (1 Reply)
Discussion started by: nagalenoj
1 Replies

5. Programming

how can I send and receive data in client server socket programing

char name; printf ("Welcome to the server \n"); printf ("Enter user name: \n"); scanf ("%c", &name); how can client send name to server:what should be the code? int send ( int sid , const char ∗buffer Ptr , int len , int f l a g ) how can client receive ack from... (1 Reply)
Discussion started by: saiful_911
1 Replies

6. Shell Programming and Scripting

How to monitor send/receive bytes

Hello, I need to create a script to monitor sent/received packets for a period of time (the period of time will be a users input) and write the result to some txt file. Is there any command (don`t want to use any 3rd party sw) what I can use? I`m using Solaris 10. Thank you (14 Replies)
Discussion started by: msojka77
14 Replies

7. Shell Programming and Scripting

Send Receive Mails

Hi All, I am writing one script to automate one long process. In this process we need to upload some input files and download some output files. So , I want to automate this upload and download by using mail functionality. I want to trigger this script when I am sending mail to server. I know... (0 Replies)
Discussion started by: NirajThakar
0 Replies

8. Solaris

zfs send receive performance issues

I 'm trying to clone a zfs file system pool/u01 to a new file system called newpool/u01 using following commands zfs list zfs snapshot pool/u01@new zfs send pool/u01@new | zfs -F receive newpool/u01 Its a 100G file system snapshot and copied to same server on different pool and... (9 Replies)
Discussion started by: fugitive
9 Replies

9. Shell Programming and Scripting

How to send data to previous program (pipe)?

Hi, Suppose I have a command:$ cmd1 | cmd2I need to send a message from cmd2 to cmd1 when I receive some a certain message from cmd1. How to do this? I think that I have to know cmd1's PID and then in cmd2 send a message to this PID. How? (24 Replies)
Discussion started by: JackK
24 Replies

10. Solaris

Zfs send & receive with encryption - how to retrieve data?

Good morning everyone, I'm looking for some help to retrieve data in a scenario where I might have made a big mistake. I'm hoping to understand what I did wrong. My system is made of two Solaris 11 Express servers (old free version for evaluation). The first if for data and the second is... (7 Replies)
Discussion started by: rnd
7 Replies
MTKBABEL(1)						      General Commands Manual						       MTKBABEL(1)

NAME
mtkbabel - Tool for managing GPS data loggers based on the MTK chip SYNOPSIS
mtkbabel [-abcdEfhiIlmopRrstvwx] DESCRIPTION
mtkbabel is a command line program to operate GPS data loggers based on the MediaTek MTK chip. It was tested on the i-Blue 747, Qstarz BT- Q1000 and on the Holux M-241, it should work also with other GPS devices based on the same chip. The main features are: - Command line interface - Save data log in GPX and raw binary format - If required retrieve all the data, also the old one being overlapped - Change logging criteria: time, distance, speed - Change log format - START/STOP logging - Set OVERLAP or STOP method on memory full - Erase the internal memory USAGE
In order to use mtkbabel, please follow these instructions: 1. Attach the GPS data logger device to your computer via USB. 2. Now you have to switch the GPS device (at least the i-Blue 747) into LOG or NAV mode, otherwise the device will not be powered on, and no connection will be possible. Beware that in NAV mode the device goes into sleep mode if not connected to any Bluetooth device. 3. In order to use mtkbabel you have to either be root (not recommended) and/or you must have read/write permissions for the USB device file, usually /dev/ttyUSB0. This device usually has permissions 'crw-rw---- 1 root dialout', so you can either add your user to the dialout group (in this example) by doing $ adduser USERNAME dialout or (not recommended) make the device world-readable/-writable by doing: $ chmod 666 /dev/ttyUSB0 Another option is to write a udev rules file to change the owner and permissions of /dev/ttyUSB0 according to your requirements. 4. You can now run mtkbabel. For example, if you want to download the track log and the list of waypoints you captured on the device, run: $ mtkbabel -s 115200 -l off -f foo -w -t The default speed of 115200 baud should work in most cases and you can omit it, for the Holux M-241 you must use 38400 instead. This will turn off the autolog function, which is always turned on when you switch on the device. The track log will be in the file foo_trk.gpx, the waypoints in the file foo_wpt.gpx (both in GPX format). The file foo.bin will contain the binary log file. Downloading the data from the GPS device can take several minutes, depending on how much data has to be transferred. In order to delete all data from the GPS device, run: $ mtkbabel -s 115200 -E OPTIONS
-a Read all the log memory (overlapped data). -b filename.bin Do not read data from a GPS device, but rather read a previously saved .bin file. Ignore -f option. -c Create a GPX file with both tracks and waypoints. -d debug_level Debug level: 0..7. -E Erase data log memory. -f Base name for saved files (.bin and .gpx). If you, for example, use -f gpslog, mtkbabel will create files which are called gpslog.gpx, gpslog_trk.gpx, gpslog_wpt.gpx and gpslog.bin. -h Show a help text and exit. -i Ignore some error conditions and try to extract as much data as possible from GPS. -I Same as -i, but also write bad records into the GPX file. -l {on|off} Turn logging ON/OFF. -m {stop|overlap} Set STOP/OVERLAP recording method on memory full. -o log_format Enable or disable log fields (FIELD1,-FIELD2,...), available fields: UTC, VALID, LATITUDE, LONGITUDE, HEIGHT, SPEED, HEADING, DSTA, DAGE, PDOP, HDOP, VDOP, NSAT, SID, ELEVATION, AZIMUTH, SNR, RCR, MILLISECOND, DISTANCE. -p port Communication port, default: /dev/ttyUSB0. -R Recover from disabled log: erase data and reset recording criteria. -r time:distance:speed Set logging criteria (zero to disable): every 0.10-9999999.90 seconds, every 0.10-9999999.90 meters, over 0.10-9999999.90 km/h. Not all the devices support such wide ranges, more reasonable values are 1-999 seconds, 10-9999 meters and 10-999 km/h. -s speed Serial port speed, default 115200 baud. -t Create a GPX file with tracks. -v Show version information and exit. -w Create a GPX file with waypoints. -x Force reading Holux format. This is required to read-back the binary data produced by some Holux devices, which do not embed into the data itself the Holux identifier string. BUGS
Please report any bugs to Niccolo Rigacci <niccolo@rigacci.org>. LICENCE
mtkbabel is covered by the GNU General Public License (GPL), version 2 or later. AUTHORS
Niccolo Rigacci <niccolo@rigacci.org> This manual page was written by Uwe Hermann <uwe@hermann-uwe.de>. It is licensed under the terms of the GNU GPL (version 2 or later). July 30, 2011 MTKBABEL(1)
All times are GMT -4. The time now is 03:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy