Re: ttyUSB monitoring (CONTINUED)
On Sat, 2008-01-12 at 14:08 -0500, Ben Scott wrote: On Sat, 2008-01-12 at 11:29 -0500, Thomas Charron wrote: It's using NMEA-0183. On Jan 12, 2008 12:11 PM, Lloyd Kvam [EMAIL PROTECTED] wrote: figuring out the serial protocol may be a bit ugly. Given Thomas's remark and your example format strings, http://www.google.com/search?q=NMEA-0183 seems to be useful. Yes. Once I get past the serial-command protocol, I think I can get the tracking logs and apply the format strings to create the NMEA data. -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/ -- Lloyd Kvam Venix Corp DLSLUG/GNHLUG library http://www.librarything.com/catalog/dlslug http://www.librarything.com/profile/dlslug http://www.librarything.com/rsshtml/recent/dlslug ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring
On Monday 14 January 2008,at 07:42 am, you wrote: On Sat, 2008-01-12 at 12:37 -0500, Charles G Montgomery wrote: Thomas Charron [EMAIL PROTECTED] wrote: Where do you find anything that says it uses a proprietary protocol? It's using NMEA-0183. In case it's of any use, two Linux programs I've used that have some capabilities for communicating with a GPS are gpsman and gpsbabel. Debian, for example, has packages for them. Thanks. I tried those. They can deal with the tracking logs, BUT only after I've used the windows program to pull the logs off the device. With gpsman I can move tracks and waypoints to and from my Magellan Meridian GPS. It may not know how to talk to your unit, though. It might be worth trying the Garmin protocol; the docs suggest it includes some part of NMEA-0183. What I can't do, now that my Windows installation has gone belly-up, is upload maps to the unit. ;( cgm ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring
For USB devices, a small vmware player image of Windows XP is really handy. I keep one around on all my Linux boxes for situations like this. --DTVZ On Jan 14, 2008 9:02 AM, Charles G Montgomery [EMAIL PROTECTED] wrote: On Monday 14 January 2008,at 07:42 am, you wrote: On Sat, 2008-01-12 at 12:37 -0500, Charles G Montgomery wrote: Thomas Charron [EMAIL PROTECTED] wrote: Where do you find anything that says it uses a proprietary protocol? It's using NMEA-0183. In case it's of any use, two Linux programs I've used that have some capabilities for communicating with a GPS are gpsman and gpsbabel. Debian, for example, has packages for them. Thanks. I tried those. They can deal with the tracking logs, BUT only after I've used the windows program to pull the logs off the device. With gpsman I can move tracks and waypoints to and from my Magellan Meridian GPS. It may not know how to talk to your unit, though. It might be worth trying the Garmin protocol; the docs suggest it includes some part of NMEA-0183. What I can't do, now that my Windows installation has gone belly-up, is upload maps to the unit. ;( cgm ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/ ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring
On Sat, 2008-01-12 at 12:17 -0500, Mark Komarinski wrote: Lloyd Kvam wrote: I bought a GPS tracker (RGM-3800) under the delusion that I would be able to collect data from it using Linux. Unfortunately, it is using a proprietary protocol to collect data. The serial connection is 115200-n-8-1, but the device does not use the normal command sequences. I'd say save your time and money. Last year I got a cheap-o Bluetooth GPS from CompGeeks (http://www.geeks.com/details.asp?invtid=WHT-BT-5cat=GPS) that was $35, has a battery that seems to last forever, and charges via a standard USB port. Yes, it can charge and act as a GPS, no it can't transmit any data over USB. Unfortunately the bt-5 still appears to need a separate device to actually record the data. I was looking for a simple standalone device that would record positions for later processing. The rgm-3800 is small and light and looked to be ideal for creating logs while bicycling, hiking, or cross country skiing. I've been using it with gpsdrive (and gpsd) for a while. Works really nicely and is a great price for anyone that wants to experiment with either GPS or bluetooth devices. -Mark If the pointers I've gotten from others fail to do the trick, I will need to look at switching to a different device. The bt-5 with logging would be a great fit for me. -- Lloyd Kvam Venix Corp DLSLUG/GNHLUG library http://www.librarything.com/catalog/dlslug http://www.librarything.com/profile/dlslug http://www.librarything.com/rsshtml/recent/dlslug ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring
On Fri, 2008-01-11 at 21:08 -0500, Ben Scott wrote: I Googled for usb sniffer and found Windows stuff. So I added linux and found this, which might be what you're looking for: SNIFFER Hah, thanks for the help. I did not think to use sniffer in my searches. (monitor, dump, even promiscuous-mode) Obviously I need a better thesaurus. http://www.linux-usb.org/tools.html Looks like just what I need. Thanks. -- Lloyd Kvam Venix Corp. 1 Court Street, Suite 378 Lebanon, NH 03766-1358 voice: 603-653-8139 fax:320-210-3409 ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring
On Fri, 2008-01-11 at 20:08 -0500, Chris wrote: If this will run under WINE or you know someone with a windows box, this is a 14 day trial http://www.hhdsoftware.com/Products/home/usb-monitor.html Good luck, I did find them, but noticed that the download URL was: http://hhd.df.ru/usb-monitor.exe and chickened out... -- Lloyd Kvam Venix Corp DLSLUG/GNHLUG library http://www.librarything.com/catalog/dlslug http://www.librarything.com/profile/dlslug http://www.librarything.com/rsshtml/recent/dlslug ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
RE: ttyUSB monitoring
On Fri, 2008-01-11 at 21:27 -0500, Patrick Klos wrote: You could try portmon from Sysinternals (now Microsoft): http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx It should log the bytes going between the serial port and the system. Thanks for the pointer. I'm hoping the links that Ben uncovered will do the trick. Borrowing a Windows computer that would support this is likely to be more trouble that it's worth. -- Lloyd Kvam Venix Corp DLSLUG/GNHLUG library http://www.librarything.com/catalog/dlslug http://www.librarything.com/profile/dlslug http://www.librarything.com/rsshtml/recent/dlslug ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring
On Jan 11, 2008 7:29 PM, Lloyd Kvam [EMAIL PROTECTED] wrote: I bought a GPS tracker (RGM-3800) under the delusion that I would be able to collect data from it using Linux. Unfortunately, it is using a proprietary protocol to collect data. The serial connection is 115200-n-8-1, but the device does not use the normal command sequences. Where do you find anything that says it uses a proprietary protocol? It's using NMEA-0183. -- -- Thomas ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring
On Sat, 2008-01-12 at 11:29 -0500, Thomas Charron wrote: On Jan 11, 2008 7:29 PM, Lloyd Kvam [EMAIL PROTECTED] wrote: I bought a GPS tracker (RGM-3800) under the delusion that I would be able to collect data from it using Linux. Unfortunately, it is using a proprietary protocol to collect data. The serial connection is 115200-n-8-1, but the device does not use the normal command sequences. Where do you find anything that says it uses a proprietary protocol? It's using NMEA-0183. It could well be user error. The logs, once pulled off the device are nmea. I can deal with those OK using gpsbabel, etc. Pulling the logs off the device requires some kind of command interaction that is buried in a Windows program. I could not get gpsd/sirfmon to do any thing useful. Looking through the output from strings data_load.exe I did find these format strings: If you have any pointers, that would be great. -- Lloyd Kvam Venix Corp DLSLUG/GNHLUG library http://www.librarything.com/catalog/dlslug http://www.librarything.com/profile/dlslug http://www.librarything.com/rsshtml/recent/dlslug ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring (CONTINUED)
(my fingers went into program-editor-mode and triggered the email send keystroke shortcut) On Sat, 2008-01-12 at 11:29 -0500, Thomas Charron wrote: On Jan 11, 2008 7:29 PM, Lloyd Kvam [EMAIL PROTECTED] wrote: I bought a GPS tracker (RGM-3800) under the delusion that I would be able to collect data from it using Linux. Unfortunately, it is using a proprietary protocol to collect data. The serial connection is 115200-n-8-1, but the device does not use the normal command sequences. Where do you find anything that says it uses a proprietary protocol? It's using NMEA-0183. It could well be user error. The logs, once pulled off the device are nmea. I can deal with those OK using gpsbabel, etc. Pulling the logs off the device requires some kind of command interaction that is buried in a Windows program. I could not get gpsd/sirfmon to do any thing useful. Looking through the output from strings data_load.exe I did find these format strings: $GPGGA,%02d%02d%02d.000,%.2d%07.4f,%c,%.3d%07.4f,%c,%d,00,,0.0,M,0.0,M,, $GPRMC,%02d%02d%02d.000,A,%.2d%07.4f,%c,%.3d%07.4f,%c,%06.2f,15.15,%02d%02d%02d,,,E $GPGGA,%02d%02d%02d.000,%.2d%07.4f,%c,%.3d%07.4f,%c,%d,00,,%06.1f,M,0.0,M,, so figuring out the serial protocol may be a bit ugly. If you have any pointers, that would be great. I tried using minicom and info from the man pages to manually talk to the device, but had no success. http://www.linuxjournal.com/node/7582/ Snooping the USB Data Stream was referenced from the site Ben sent. I'm hoping that will do the trick. -- Lloyd Kvam Venix Corp DLSLUG/GNHLUG library http://www.librarything.com/catalog/dlslug http://www.librarything.com/profile/dlslug http://www.librarything.com/rsshtml/recent/dlslug ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring
Lloyd Kvam wrote: I bought a GPS tracker (RGM-3800) under the delusion that I would be able to collect data from it using Linux. Unfortunately, it is using a proprietary protocol to collect data. The serial connection is 115200-n-8-1, but the device does not use the normal command sequences. I'd say save your time and money. Last year I got a cheap-o Bluetooth GPS from CompGeeks (http://www.geeks.com/details.asp?invtid=WHT-BT-5cat=GPS) that was $35, has a battery that seems to last forever, and charges via a standard USB port. Yes, it can charge and act as a GPS, no it can't transmit any data over USB. I've been using it with gpsdrive (and gpsd) for a while. Works really nicely and is a great price for anyone that wants to experiment with either GPS or bluetooth devices. -Mark ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring
Thomas Charron [EMAIL PROTECTED] wrote: Where do you find anything that says it uses a proprietary protocol? It's using NMEA-0183. In case it's of any use, two Linux programs I've used that have some capabilities for communicating with a GPS are gpsman and gpsbabel. Debian, for example, has packages for them. cgm ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring (CONTINUED)
On Sat, 2008-01-12 at 11:29 -0500, Thomas Charron wrote: It's using NMEA-0183. On Jan 12, 2008 12:11 PM, Lloyd Kvam [EMAIL PROTECTED] wrote: figuring out the serial protocol may be a bit ugly. Given Thomas's remark and your example format strings, http://www.google.com/search?q=NMEA-0183 seems to be useful. -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring
On 1/11/08, Lloyd Kvam [EMAIL PROTECTED] wrote: I bought a GPS tracker (RGM-3800) under the delusion that I would be able to collect data from it using Linux. Unfortunately, it is using a proprietary protocol to collect data. The serial connection is 115200-n-8-1, but the device does not use the normal command sequences. The Windows software will sometimes work using WINE. I expect that I could reverse engineer the key features if I could monitor the ttyUSB device data stream. So far I've been unable to google anything useful about enabling a serial device monitor (tcpdump for the serial device) that showed the data stream. statserial will show the status pins. I would think that usbserial (pl2303.ko) would have needed a monitor mode when it was developed simply because it is such a synthetic device. I'm hoping someone here can kick me in the right direction. (The tracker connects using a USB cable so I can't use a serial breakout box or any hardware based serial debugging facility.) Thanks. If this will run under WINE or you know someone with a windows box, this is a 14 day trial http://www.hhdsoftware.com/Products/home/usb-monitor.html Good luck, Chris -- IBA #15631 ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: ttyUSB monitoring
On Jan 11, 2008 7:29 PM, Lloyd Kvam [EMAIL PROTECTED] wrote: I'm hoping someone here can kick me in the right direction. I Googled for usb sniffer and found Windows stuff. So I added linux and found this, which might be what you're looking for: http://www.linux-usb.org/tools.html -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/