dipayan
Posts: 14
Joined: Mon Jun 17, 2019 1:08 am

Issue with connecting GPS module to raspberry pi 3b+

Sat Jun 22, 2019 7:38 am

Hello

To start with some background, I connect my raspberry pi with laptop using a static ip(changed cmdline). I have setup SSID(in the network options using rasp-config) and that is how I access wi-fi. And this works like a charm.

I have bought this GPS module(Amazon link shared below). Connected pins with raspberry pi as vcc-vcc(3.3v), gnd-gnd, txd-rxd, rxd-txd. Now whenever I try to connect first time with putty after rebooting, I get error as "network error:network error:software caused connection abort". After that until I reboot pi I get either "network error: network error:connection refused" OR "Fatal error: no route to Host".

If I remove the GPS module from ras-pi, it starts working again. WHAT can I do to make it work ??

Also incase I am able to log in, what serial device it should be; ttyAMA0 or ttyACM0. There are conflicting information in internet.Any procedure that I can check ??

Here is the Amazon link for the GPS device that I bought.

https://www.amazon.in/REES52-Raspberry- ... 260&sr=8-5

d_older
Posts: 117
Joined: Mon Jun 25, 2012 5:04 pm
Location: East Yorkshire, UK

Re: Issue with connecting GPS module to raspberry pi 3b+

Sat Jun 22, 2019 9:00 am

HI dipayan,

Looking at

https://wiki.52pi.com/index.php/USB-Por ... KU:EZ-0048

and

https://www.robotshop.com/uk/us-gps-l80 ... ry-pi.html

They imply that the module as a whole requires a 5V supply and it is NOT clear that it will work from 3.3V on the Vcc pin. Also it is not mentioned anywhere what the txd - rxd voltages are if it is powered from 5V.

If 5V it will damage the Pi.

I would disconnect the Vcc. txd. rxd, GND wires and then connect the module via the USB connection ONLY.

Look at the "dmesg" output with the unit connected and I would expect a /dev/ttyUSB0 entry to be in there (or a higher number if you have any other USB to serial devices conected). Use that ttyUSB0 device as the serial connection.

Hope this helps,

Dave.

dipayan
Posts: 14
Joined: Mon Jun 17, 2019 1:08 am

Re: Issue with connecting GPS module to raspberry pi 3b+

Sat Jun 22, 2019 9:28 am

d_older wrote:
Sat Jun 22, 2019 9:00 am
HI dipayan,

Looking at

https://wiki.52pi.com/index.php/USB-Por ... KU:EZ-0048

and

https://www.robotshop.com/uk/us-gps-l80 ... ry-pi.html

They imply that the module as a whole requires a 5V supply and it is NOT clear that it will work from 3.3V on the Vcc pin. Also it is not mentioned anywhere what the txd - rxd voltages are if it is powered from 5V.

If 5V it will damage the Pi.

I would disconnect the Vcc. txd. rxd, GND wires and then connect the module via the USB connection ONLY.

Look at the "dmesg" output with the unit connected and I would expect a /dev/ttyUSB0 entry to be in there (or a higher number if you have any other USB to serial devices conected). Use that ttyUSB0 device as the serial connection.

Hope this helps,

Dave.
Thanks Dave, So basically I would need to USB to UART serial converter. I would try and update the results.

d_older
Posts: 117
Joined: Mon Jun 25, 2012 5:04 pm
Location: East Yorkshire, UK

Re: Issue with connecting GPS module to raspberry pi 3b+

Sat Jun 22, 2019 11:12 am

Hi dipayan,

You should not need an additional USB to serial device, looking at the links there is a USB to serial chip (CP2102) built in to the module. I would just connect it with a micro USB lead and check that a ttyUSBn device is created.

Hope this helps,

Dave

dipayan
Posts: 14
Joined: Mon Jun 17, 2019 1:08 am

Re: Issue with connecting GPS module to raspberry pi 3b+

Mon Jun 24, 2019 2:01 am

d_older wrote:
Sat Jun 22, 2019 11:12 am
Hi dipayan,

You should not need an additional USB to serial device, looking at the links there is a USB to serial chip (CP2102) built in to the module. I would just connect it with a micro USB lead and check that a ttyUSBn device is created.

Hope this helps,

Dave
Hello Dave

I got a microUSB cable and connected the GPS module with ras-pi. I got ttyUSB0. I installed minicom and fired "minicom -b 4800 -o -D /dev/ttyUSB0' command. Though it gave me gibberish output, but still that means it has started working. Thank you. Let me see what I can do with this output.

There is a constant problem though. After sometime. I always get 'software caused connection abort'. Do you know why that happens??

Return to “Networking and servers”