Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Post Reply
sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Tue Jul 12, 2016 10:32 pm

Looking for steps to get the BU-353 to be compatible with the XU4 without additional software.

-I've followed the steps listed for the C2 as listed here: http://forum.odroid.com/viewtopic.php?f ... 353#p29646. The results of running insmod /system/lib/modules/pl2303.ko are as follows:

Code: Select all

u0_a57@odroidxu3:/ $ su
root@odroidxu3:/ # insmod /system/lib/modules/pl2303.ko
insmod: init_module '/system/lib/modules/pl2303.ko' failed (Exec format error)
255|root@odroidxu3:/ #
-Currently using an XU4 running the 20160530.100453 build of 4.4.4 (updated via ODROID updater)
-If it helps, the USB GPS works fine if an app like PL2303 GPSInfo is running (https://play.google.com/store/apps/deta ... ider&hl=en). The problem with this is the app requires me to manually "Start GPS" at each boot. Ideally I'd like the driver to load with the rest of the drivers at boot without loading an additional application.

Any help would be most appreciated. Has anyone with the XU3/XU4 been able to get a Pl2303 device working? Thanks again.

User avatar
ronaldlees
Posts: 82
Joined: Sat Mar 29, 2014 3:52 am
languages_spoken: english
ODROIDs: Odroid C1
Odroid C1+
Odroid XU4
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by ronaldlees » Wed Jul 13, 2016 1:00 am

I'm using the BU353 GPS with a Ubuntu 15.04 image (but no update), and it recognizes the puck with no problems:

usb 2-1: new full-speed USB device number 2 using exynos-ohci
Jul 12 15:29:28 Main-Odroid-XU4 kernel: [ 95.403972] [c1] usbcore: registered new interface driver pl2303
Jul 12 15:29:28 Main-Odroid-XU4 kernel: [ 95.404117] [c1] usbserial: USB Serial support registered for pl2303
Jul 12 15:29:28 Main-Odroid-XU4 kernel: [ 95.404284] [c1] pl2303 2-1:1.0: pl2303 converter detected
Jul 12 15:29:28 Main-Odroid-XU4 kernel: [ 95.425848] [c0] usb 2-1: pl2303 converter now attached to ttyUSB0

I just run:

Code: Select all

 stty -F /dev/ttyUSB0 ispeed 4800
and then

Code: Select all

gpsd -b /dev/ttyUSB0
and then

Code: Select all

cgps
and all is good.

The first time I used the puck, I used the command to change from binary to NMEA mode:

Code: Select all

gpsctl -f -n /dev/ttyUSB0
I found that last info on the globesat forum, but can't be bothered to look up the URL now. I think the mode is persistent, so I haven't needed to do it again. Of course your ttyUSBx may be different than my ttyUSB0. The "-f" option for the mode change forces low level access. You probably can do it without the "-f" and just the "-n" (which uses gpsd for access) - according to:

http://opencpn.org/ocpn/book/export/html/13

I like this puck better than the other one I'm using, and seem to get a somewhat better average SNR with it. Maybe it has a better active antenna and/or receiver.

sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Wed Jul 13, 2016 9:59 pm

I'm looking for help to get it interfaced with Android. But i'll note that I've had the BU-353 GPS for over 10 years and it is the absolute best GPS product I've ever tested. Mine is mounted in my truck under the dash and picks up sats instantly with no problems. Shame its not build into the android core for the XU4

User avatar
odroid
Site Admin
Posts: 30019
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by odroid » Thu Jul 14, 2016 11:31 am

Can you check the existence of "/system/lib/modules/pl2303.ko" file ?

sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Mon Jul 18, 2016 10:54 pm

odroid wrote:Can you check the existence of "/system/lib/modules/pl2303.ko" file ?
Yes, I can confirm using Root Browser that pl2303.ko exists in /system/lib/modules/

Here's a screencap showing the existence of the file

https://drive.google.com/file/d/0B8qHiy ... sp=sharing

User avatar
odroid
Site Admin
Posts: 30019
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by odroid » Tue Jul 19, 2016 10:10 am

I see.
We will try to reproduce the issue.

Update.
We couldn't find the pl2303.ko file in our official image.
So you might copy it from other different platform.
We will include it in the next XU4 android update.

RockenZ
Posts: 17
Joined: Wed Jan 15, 2014 10:10 am
languages_spoken: english
ODROIDs: ODROID-XU4
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by RockenZ » Wed Jul 20, 2016 4:00 am

sonicxtacy02,

I have the GlobalStat BU-353 S4 after you used it/recommended it on one of your other builds. (Thanks!)

I went through the same thing and tried out a bunch of different apps to get this to work.

Not sure if you're willing to try another image, but it works great with Voodik's CM builds for the XU4.

http://forum.odroid.com/viewtopic.php?f=94&t=17712

Just set up the GPS settings in build.prop as Voodik mentions in the first post:
voodik wrote: ...

For USB GPS set proper tty and speed in build.prop

Code: Select all

ro.kernel.android.gps=ttyACM0
ro.kernel.android.gps.speed=9600
...
I believe I have mine set to:

ro.kernel.android.gps=ttyUSB0
ro.kernel.android.gps.speed=4800

Hope that helps.

sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Wed Jul 20, 2016 5:00 am

RockenZ wrote:sonicxtacy02,

I have the GlobalStat BU-353 S4 after you used it/recommended it on one of your other builds. (Thanks!)

I went through the same thing and tried out a bunch of different apps to get this to work.

Not sure if you're willing to try another image, but it works great with Voodik's CM builds for the XU4.

http://forum.odroid.com/viewtopic.php?f=94&t=17712

Just set up the GPS settings in build.prop as Voodik mentions in the first post:
voodik wrote: ...

For USB GPS set proper tty and speed in build.prop

Code: Select all

ro.kernel.android.gps=ttyACM0
ro.kernel.android.gps.speed=9600
...
I believe I have mine set to:

ro.kernel.android.gps=ttyUSB0
ro.kernel.android.gps.speed=4800

Hope that helps.
Thanks, but between having bluetooth, wifi, AND my touchscreen work plug and play, I'll just wait for the update image from Hardkernel. I see that Voodik doesnt have bluetooth implemented, that's a shame!

RockenZ
Posts: 17
Joined: Wed Jan 15, 2014 10:10 am
languages_spoken: english
ODROIDs: ODROID-XU4
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by RockenZ » Thu Jul 21, 2016 4:58 am

sonicxtacy02 wrote:Thanks, but between having bluetooth, wifi, AND my touchscreen work plug and play, I'll just wait for the update image from Hardkernel. I see that Voodik doesnt have bluetooth implemented, that's a shame!
Fair enough.

While you're waiting, you can also try his CM12.1 release if you want.

That has Wifi, Bluetooth, and GPS working.

He also just updated it last week.

http://forum.odroid.com/viewtopic.php?f=94&t=9316

sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Wed Aug 10, 2016 10:46 pm

I have updated via ODROID updater to the 08/08/16 build, which says it added support for the PL2303 driver, but my GPS is still not readable without the driver application i mentioned.

Strange enough, I cannot even find my GPS device when its plugged in. Here is the report of ls tty*

Code: Select all

u0_a57@odroidxu3:/ $ stty -F /dev/ttyUSB0 ispeed 4800
stty: can't open '/dev/ttyUSB0': No such file or directory
1|u0_a57@odroidxu3:/ $ cd /dev
u0_a57@odroidxu3:/dev $ ls tty*
tty
tty0
tty1
tty10
tty11
tty12
tty13
tty14
tty15
tty16
tty17
tty18
tty19
tty2
tty20
tty21
tty22
tty23
tty24
tty25
tty26
tty27
tty28
tty29
tty3
tty30
tty31
tty32
tty33
tty34
tty35
tty36
tty37
tty38
tty39
tty4
tty40
tty41
tty42
tty43
tty44
tty45
tty46
tty47
tty48
tty49
tty5
tty50
tty51
tty52
tty53
tty54
tty55
tty56
tty57
tty58
tty59
tty6
tty60
tty61
tty62
tty63
tty7
tty8
tty9
ttyGS0
ttyGS1
ttyGS2
ttyGS3
ttyS0
ttyS1
ttyS2
ttyS3
ttySAC0
ttySAC1
ttySAC2
ttySAC3
ttya0
ttya1
ttya2
ttya3
ttya4
ttya5
ttya6
ttya7
ttya8
ttya9
ttyaa
ttyab
ttyac
ttyad
ttyae
ttyaf
ttyb0
ttyb1
ttyb2
ttyb3
ttyb4
ttyb5
ttyb6
ttyb7
ttyb8
ttyb9
ttyba
ttybb
ttybc
ttybd
ttybe
ttybf
ttyc0
ttyc1
ttyc2
ttyc3
ttyc4
ttyc5
ttyc6
ttyc7
ttyc8
ttyc9
ttyca
ttycb
ttycc
ttycd
ttyce
ttycf
ttyd0
ttyd1
ttyd2
ttyd3
ttyd4
ttyd5
ttyd6
ttyd7
ttyd8
ttyd9
ttyda
ttydb
ttydc
ttydd
ttyde
ttydf
ttye0
ttye1
ttye2
ttye3
ttye4
ttye5
ttye6
ttye7
ttye8
ttye9
ttyea
ttyeb
ttyec
ttyed
ttyee
ttyef
ttyp0
ttyp1
ttyp2
ttyp3
ttyp4
ttyp5
ttyp6
ttyp7
ttyp8
ttyp9
ttypa
ttypb
ttypc
ttypd
ttype
ttypf
ttyq0
ttyq1
ttyq2
ttyq3
ttyq4
ttyq5
ttyq6
ttyq7
ttyq8
ttyq9
ttyqa
ttyqb
ttyqc
ttyqd
ttyqe
ttyqf
ttyr0
ttyr1
ttyr2
ttyr3
ttyr4
ttyr5
ttyr6
ttyr7
ttyr8
ttyr9
ttyra
ttyrb
ttyrc
ttyrd
ttyre
ttyrf
ttys0
ttys1
ttys2
ttys3
ttys4
ttys5
ttys6
ttys7
ttys8
ttys9
ttysa
ttysb
ttysc
ttysd
ttyse
ttysf
ttyt0
ttyt1
ttyt2
ttyt3
ttyt4
ttyt5
ttyt6
ttyt7
ttyt8
ttyt9
ttyta
ttytb
ttytc
ttytd
ttyte
ttytf
ttyu0
ttyu1
ttyu2
ttyu3
ttyu4
ttyu5
ttyu6
ttyu7
ttyu8
ttyu9
ttyua
ttyub
ttyuc
ttyud
ttyue
ttyuf
ttyv0
ttyv1
ttyv2
ttyv3
ttyv4
ttyv5
ttyv6
ttyv7
ttyv8
ttyv9
ttyva
ttyvb
ttyvc
ttyvd
ttyve
ttyvf
ttyw0
ttyw1
ttyw2
ttyw3
ttyw4
ttyw5
ttyw6
ttyw7
ttyw8
ttyw9
ttywa
ttywb
ttywc
ttywd
ttywe
ttywf
ttyx0
ttyx1
ttyx2
ttyx3
ttyx4
ttyx5
ttyx6
ttyx7
ttyx8
ttyx9
ttyxa
ttyxb
ttyxc
ttyxd
ttyxe
ttyxf
ttyy0
ttyy1
ttyy2
ttyy3
ttyy4
ttyy5
ttyy6
ttyy7
ttyy8
ttyy9
ttyya
ttyyb
ttyyc
ttyyd
ttyye
ttyyf
ttyz0
ttyz1
ttyz2
ttyz3
ttyz4
ttyz5
ttyz6
ttyz7
ttyz8
ttyz9
ttyza
ttyzb
ttyzc
ttyzd
ttyze
ttyzf
The device is definitely detected by Android in some form though, when I plug it in, i get a prompt asking if a few of my apps (Torque/GPS Info) can have access to the device.

my build.prop has the following in it (i've tried both 9600 and 4800)

Code: Select all

ro.kernel.android.gps.speed=9600
I should note, that i did try to install the pl2303.ko from the u2 build prior to updating. Should I have deleted that file before updating? Where can I get the x3/x4 version of that file so that i can manually update it?

Can anyone suggest what I should try at this point? Thanks!

User avatar
odroid
Site Admin
Posts: 30019
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by odroid » Thu Aug 11, 2016 10:06 am

You need to run "insmod /system/lib/modules/pl2303.ko " first.

sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Fri Aug 12, 2016 1:35 am

ok I ran insmod and was then able to confirm ttyUSB0.

using cat > i was able to read GPS data

Code: Select all

u0_a57@odroidxu3:/ $ su
root@odroidxu3:/ # insmod /system/lib/modules/pl2303.ko
root@odroidxu3:/ # stty -F /dev/ttyUSB0 ispeed 4800
root@odroidxu3:/ # gpsd -b /dev/ttyUSB0
sh: gpsd: not found
127|root@odroidxu3:/ # cgps
sh: cgps: not found
127|root@odroidxu3:/ # gpsctrl -
sh: gpsctrl: not found
127|root@odroidxu3:/ # -f -n /dev/ttyUSB0
sh: -f: not found
127|root@odroidxu3:/ # gpsctl -f -n /dev/ttyUSB0
sh: gpsctl: not found
1Y6V6c66FcfVoidxu3:/ # cat < /dev/ttyUSB0
$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161650.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*74

$GPGGA,161651.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*64

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161651.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*75

$GPGGA,161652.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*67

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161652.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*76

$GPGGA,161653.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*66

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPGSV,3,1,12,28,74,354,38,17,51,282,37,01,50,055,48,30,38,194,38*71

$GPGSV,3,2,12,11,35,052,46,19,27,264,39,22,23,094,42,03,20,118,22*7C

$GPGSV,3,3,12,07,16,177,25,06,11,210,28,08,06,071,30,51,35,222,34*7F

$GPRMC,161653.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*77

$GPGGA,161654.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*61

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161654.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*70

$GPGGA,161655.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*60

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161655.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*71

$GPGGA,161656.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*63

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161656.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*72

$GPGGA,161657.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*62

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161657.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*73

$GPGGA,161658.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*6D

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPGSV,3,1,12,28,76,357,38,17,52,283,38,01,49,054,48,30,36,193,37*72

$GPGSV,3,2,12,11,34,052,46,19,28,265,38,22,23,092,43,03,21,117,13*79

$GPGSV,3,3,12,07,15,176,26,06,13,210,23,08,05,072,30,51,35,222,34*77

$GPRMC,161658.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*7C

$GPGGA,161659.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*6C

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161659.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*7D

$GPGGA,161700.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*61

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161700.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*70

$GPGGA,161701.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*60

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161701.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*71

$GPGGA,161702.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*63

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161702.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*72

$GPGGA,161703.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*62

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPGSV,3,1,12,28,76,357,38,17,52,283,37,01,49,054,47,30,36,193,36*73

$GPGSV,3,2,12,11,34,052,45,19,28,265,38,22,23,092,43,03,21,117,18*71

$GPGSV,3,3,12,07,15,176,26,06,13,210,22,08,05,072,29,51,35,222,35*7F

$GPRMC,161703.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*73

$GPGGA,161704.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*65

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161704.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*74

$GPGGA,161705.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*64

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161705.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*75

$GPGGA,161706.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*67

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161706.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*76

$GPGGA,161707.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*66

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161707.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*77

$GPGGA,161708.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*69

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPGSV,3,1,12,28,76,357,38,17,52,283,36,01,49,054,47,30,36,193,34*70

$GPGSV,3,2,12,11,34,052,45,19,28,265,38,22,23,092,43,03,21,117,17*7E

$GPGSV,3,3,12,07,15,176,25,06,13,210,18,08,05,072,28,51,35,222,34*75

$GPRMC,161708.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*78

$GPGGA,161709.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*68

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161709.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*79

$GPGGA,161710.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*60

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161710.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*71

$GPGGA,161711.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*61

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161711.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*70

$GPGGA,161712.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*62

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161712.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*73

$GPGGA,161713.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*63

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPGSV,3,1,12,28,76,357,38,17,52,283,36,01,49,054,46,30,36,193,33*76

$GPGSV,3,2,12,11,34,052,45,19,28,265,37,22,23,092,42,03,21,117,25*71

$GPGSV,3,3,12,07,15,176,25,06,13,210,18,08,05,072,25,51,35,222,32*7E

$GPRMC,161713.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*72

$GPGGA,161714.000,3849.4536,N,07718.8573,W,1,11,1.0,135.3,M,-33.4,M,,0000*64

$GPGSA,A,3,28,17,01,30,11,19,22,03,07,06,08,,1.8,1.0,1.5*32

$GPRMC,161714.000,A,3849.4536,N,07718.8573,W,0.00,164.30,110816,,,A*75
Android apps still dont show that the GPS is usable though. I've tried Google Maps and Waze, neither show GPS position. please provide instructions on where to go from here

User avatar
odroid
Site Admin
Posts: 30019
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by odroid » Fri Aug 12, 2016 11:25 am

Check your build.prop file.
It must have something like this.

Code: Select all

ro.kernel.android.gps=ttyUSB0
ro.kernel.android.gps.speed=4800

sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Fri Aug 12, 2016 10:04 pm

odroid wrote:Check your build.prop file.
It must have something like this.

Code: Select all

ro.kernel.android.gps=ttyUSB0
ro.kernel.android.gps.speed=4800
Can confirm that both of those entries are in the build.prop.

User avatar
odroid
Site Admin
Posts: 30019
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by odroid » Sun Aug 14, 2016 10:59 am

Try this app.
https://play.google.com/store/apps/deta ... test&hl=en

If it doesn't work correctly, you might need to check the logcat output.
Where did you put insmod /system/lib/modules/pl2303.ko to enable the GPS automatically?

sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Mon Aug 15, 2016 10:44 pm

I tried the app, and I don't get a fix.

I havent even got to the point where I try to get insmod automated. I'm using Terminal Emulator, and manually type it in.

I will try it again checking the logcat output.

User avatar
codewalker
Posts: 519
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by codewalker » Tue Aug 16, 2016 1:29 pm

Run terminal emulator app

Code: Select all

$ su

#mount -o rw,remount /
# vi /init.odroidxu3.rc


on fs
    mount_all /fstab.odroidxu3
...
...
    insmod /system/lib/modules/pl2303.ko    

# su daemon$
service su_daemon /system/xbin/su --daemon$


sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Wed Aug 24, 2016 10:26 pm

codewalker wrote:Run terminal emulator app

Code: Select all

$ su

#mount -o rw,remount /
# vi /init.odroidxu3.rc


on fs
    mount_all /fstab.odroidxu3
...
...
    insmod /system/lib/modules/pl2303.ko    

# su daemon$
service su_daemon /system/xbin/su --daemon$

I'm sorry but i dont exactly understand what you're showing me. I see the terminal commands (noted by the "#"), but what exactly is this supposed to be doing? When i run the #vi command, i get a percentage indicator which stays at zero :?:

User avatar
odroid
Site Admin
Posts: 30019
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by odroid » Thu Aug 25, 2016 6:45 pm

"vi" is a text editor.
https://www.cs.colostate.edu/helpdocs/vi.html

If you don't know how to use the vi editor, try other text editor app to modify /init.odroidxu3.rc file.
You need to remount the / directory before running the editor app.

sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Mon Aug 29, 2016 10:40 pm

odroid wrote:"vi" is a text editor.
https://www.cs.colostate.edu/helpdocs/vi.html

If you don't know how to use the vi editor, try other text editor app to modify /init.odroidxu3.rc file.
You need to remount the / directory before running the editor app.
I guess I should have been a bit more clear. I know what VI is, but my question is what is the function of that batch of code? does it need to be run in addition to the commands that ronaldlees provided? Is it a way to automate his instructions at boot? I'm still stuck on trying to get this solved. I looked in catlog files and see nothing that i can understand to be a problem.

User avatar
odroid
Site Admin
Posts: 30019
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by odroid » Tue Aug 30, 2016 8:51 am

Before running the Android GPS service, the GPS driver must be activated earlier.
So the "insmod pl2303" command must be added in init.rc file.

There is no way to restart the GPS service after booting process.
It is the main reason why GPS apps didn't work even you activated the GPS module in the command line.

sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Wed Aug 31, 2016 2:08 am

odroid wrote:Before running the Android GPS service, the GPS driver must be activated earlier.
So the "insmod pl2303" command must be added in init.rc file.

There is no way to restart the GPS service after booting process.
It is the main reason why GPS apps didn't work even you activated the GPS module in the command line.
Thanks, I added the insmod line to init.odroidxu3.rc, but it failed to do anything for me. What I really don't understand is how it can be this difficult to get the device read by Android by default, but the PL2303 application can make the device work perfectly just by opening the app and clicking "start GPS".

User avatar
odroid
Site Admin
Posts: 30019
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by odroid » Wed Aug 31, 2016 5:48 pm

Can you see the NMEA output with "cat < /dev/ttyUSB0" after rebooting Android?
If not, you might have a typo error when you edited init.odroidxu3.rc file.

sonicxtacy02
Posts: 60
Joined: Thu May 30, 2013 5:08 am
languages_spoken: english
ODROIDs: X-2
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by sonicxtacy02 » Fri Sep 02, 2016 4:02 am

No, the cat command does not give me NMEA output with my edit to init.odroidxu3.rc. I'm not seeing the typo though. Here's a screencap of the file.

https://drive.google.com/open?id=0B8qHi ... UdJbEZLS0U

User avatar
odroid
Site Admin
Posts: 30019
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Interfacing the XU4 with a GlobalStat BU-353 S4 USB GPS

Unread post by odroid » Fri Sep 02, 2016 12:12 pm

Your init.odroidxu3.rc looks okay.
If it was fine, you can find the module in "lsmod" output.

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 4 guests