ultimate gps and pc serial port

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

ultimate gps and pc serial port

Postby bilsch » Tue Jan 29, 2013 3:13 pm

Has anyone tried using the ultimate gps module on a standard pc serial port?

All I get from minicom is a bunch of jibberish

I have verified the serial config in minicom - 9600 8n1 no flow control
bilsch
 
Posts: 12
Joined: Thu Oct 25, 2012 4:16 pm

Re: ultimate gps and pc serial port

Postby tastewar » Tue Jan 29, 2013 3:24 pm

I know all the doc says 9600 and that seems to be standard now for gps, but have you tried any other rates? 4800 was standard for gps for a long time; I've seen 19200...
tastewar
 
Posts: 208
Joined: Thu Mar 17, 2011 9:16 am

Re: ultimate gps and pc serial port

Postby bilsch » Tue Jan 29, 2013 3:54 pm

I did try other rates out of curiosity however i know for sure it is 9600

With the ftdi adapter 9600 8n1 works but I want to use the hardware serial port on a linux x86_64 box

Out of curiosity I tried another usb to serial adapter ( olllld adapter :-> ) I get the same thing - just a bunch of jibberish
bilsch
 
Posts: 12
Joined: Thu Oct 25, 2012 4:16 pm

Re: ultimate gps and pc serial port

Postby bilsch » Tue Jan 29, 2013 4:10 pm

I'm not sure if using a multimeter will be accurate enough but thought it worth a shot.

So, when I hook the positive end of my multimeter to the tx out from the gps I see it get to around 3 volts. Is it possible the hardware serial adapter is giving me garbage because the signal voltage is too low?

http://en.wikipedia.org/wiki/RS-232#Voltage_levels
Valid signals are either in the range of +3 to +15 volts or the range -3 to -15 volts; the range between -3 to +3 volts is not a valid RS-232 level
bilsch
 
Posts: 12
Joined: Thu Oct 25, 2012 4:16 pm

Re: ultimate gps and pc serial port

Postby tastewar » Tue Jan 29, 2013 4:35 pm

Sounds quite plausible. There's a link to a little board that would help in this thread:

http://forums.adafruit.com/viewtopic.php?f=10&t=32437
tastewar
 
Posts: 208
Joined: Thu Mar 17, 2011 9:16 am

Re: ultimate gps and pc serial port

Postby adafruit_support_bill » Tue Jan 29, 2013 4:57 pm

Yes a TTL to serial adapter is needed for interfacing with an RS232 serial port. The signal voltages on RS232 can cause damage to the GPS module.
User avatar
adafruit_support_bill
 
Posts: 16617
Joined: Sat Feb 07, 2009 9:11 am

Re: ultimate gps and pc serial port

Postby bilsch » Tue Jan 29, 2013 5:41 pm

Yes a TTL to serial adapter is needed for interfacing with an RS232 serial port. The signal voltages on RS232 can cause damage to the GPS module.


What is the voltage of the gps module and what voltage is a pc serial port? Assuming the voltage off of rs232 serial port is higher than the gps module I suppose I could try to limit the voltage?
bilsch
 
Posts: 12
Joined: Thu Oct 25, 2012 4:16 pm

Re: ultimate gps and pc serial port

Postby tastewar » Tue Jan 29, 2013 6:35 pm

But you have to boost the voltage in the other direction. There's a whole family of chips (e.g. MAX232) that bi-directionally convert between TTL level voltages and RS-232 levels. That little board I linked to (here it is again: http://www.suntekstore.com/goods-14002601-mini_rs232_to_ttl_converter_module_board_.html) has the support circuitry built-in, which is nice, but it's a crappy little thing otherwise. I went through 3 of them trying to solder wires to the little pads, and having the pads lift off the board :-/

Hence my asking if Adafruit would consider producing a similar product. Cause their stuff rocks.
tastewar
 
Posts: 208
Joined: Thu Mar 17, 2011 9:16 am

Re: ultimate gps and pc serial port

Postby bilsch » Tue Jan 29, 2013 6:50 pm

tastewar,

I completely missed your previous posting thanks I'll see if I can dig one of those up!
bilsch
 
Posts: 12
Joined: Thu Oct 25, 2012 4:16 pm

Re: ultimate gps and pc serial port

Postby bilsch » Tue Jan 29, 2013 9:21 pm

tastewar,

That maxim chip would very likely resolve the rx/tx side of the equation ( my only stated need in this thread ;) ) but since this is for a gps unit I plan to also use pps as a part of the time sync for additional accuracy.

Oddly, with pps connected to the cts pin on the ftdi board I don't actually get the pulse registered in the kernel pps driver. I'm going to try out the gpio approach on my pi but my C foo is ... well, very very limited so far. i had posted on this previously and no one responded :-< ( viewtopic.php?f=19&t=36030&start=0&hilit=pi+gpio+pps )

Thanks for the hint about the maxim chip!
bilsch
 
Posts: 12
Joined: Thu Oct 25, 2012 4:16 pm

Re: ultimate gps and pc serial port

Postby tastewar » Tue Jan 29, 2013 10:52 pm

I wonder if this tutorial, that I bookmarked earlier for myself, would help. It talks about using the GPIO serial port. Definitely avoids the need for level shifting!

http://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi/using-uart-instead-of-usb
tastewar
 
Posts: 208
Joined: Thu Mar 17, 2011 9:16 am

Re: ultimate gps and pc serial port

Postby bilsch » Wed Jan 30, 2013 1:37 pm

I wonder if this tutorial, that I bookmarked earlier for myself, would help. It talks about using the GPIO serial port. Definitely avoids the need for level shifting!


Yes, that does work though note they are not touching the pps side of the equasion.

Here are the links I'm looking over:
http://www.raspberrypi.org/phpBB3/viewt ... 8&p=129224
http://www.raspberrypi.org/phpBB3/viewt ... 06#p142606

It seems as though others have had the same idea re using the pi and gpio for the pps ( and hardware serial uart for comms ).

Curious this has not been merged in to the raspberry pi kernel yet. Guess if I can get it working I'll send a pull request.
bilsch
 
Posts: 12
Joined: Thu Oct 25, 2012 4:16 pm


Return to General Project help

Who is online

Users browsing this forum: JRMN and 6 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]