freshollie / UsbGps4Droid

USB GPS Provider for android :artificial_satellite:. A maintained fork of hvb/USBGps4Droid
GNU General Public License v3.0
82 stars 34 forks source link

No data from USB receiver to GPSTEST an WAZE #30

Open fejohn1231 opened 3 years ago

fejohn1231 commented 3 years ago

Dear Developer.

I have Rockchip PX5 car head unit with Android 9. The internal AT6558 GNSS version receives only the GPS and chianian satellities. I have decided to applicate an VK-168 USB external reciver with your apk. Connecting the USB the receiver will be ttyACM0 and go well, I see the NMEA sentences. But into the android services no arrives anythig. The internal receiver is ttyS0 -> ttyGps. Can yuo resolve this problem?

Thanks Janos

freshollie commented 3 years ago

Hey! Can I have some more details here?

fejohn1231 commented 3 years ago

Hi!With the internal gps operates normally. On ttyGps and ttyS0 come the NMEA sentences. On Gpstest I see 10 satellites, fixed are 8-9.When I start UsbGps4Droid choosing the USB receiver, Gpstest and Waze say no Gps. Looking ttyACM0, data arrive, in window of UsbGps4Droid seem data coming from USB receiver.On ttyS0 and ttyGps seems data coming from internal chip.Gpstest no satellites in view and no fixed. I think, the your apk closes the connection between internal chip and services, but not connetcs the USB to the service. 

Yes, your app says device is connected, I can choose regurarly. No error message, only the Gpstest or waze are without data.

I can send screen foto tomarrow, because the HU in in my car.

freshollie commented 3 years ago

Do you see sentences in the application main screen when you are connected?

fejohn1231 commented 3 years ago

Yes, I see in your app's main screen

freshollie commented 3 years ago

That's very weird. Are you sure that you have the mock locations settings setup?

fejohn1231 commented 3 years ago

Yes, I choosed your apk as mock location application

freshollie commented 3 years ago

Hmm, that's very weird. And you can see your location lock in the app?

fejohn1231 commented 3 years ago

Hi,

I made foto:

This is the dev folder, where ttyACM0 is the USB receiver, the ttyS0 is the internal receiver (AT6558 chip) IMG_0646

These are the sentences from the USB receiver. IMG_0647

These are from internal receiver. IMG_0648

Your application with choosed receiver IMG_0649

Your started app IMG_0650

Gpstest with started UsbGps4Droid: IMG_0651

UsbGps4Droid switch off: IMG_0652

GpsTest with stopped UsbGps4Droid IMG_0653

freshollie commented 3 years ago

Very weird. What I would say is that GPSTest is never going to pick up satellites because that information can't be published to android. Do any applications with GPS usage pick up the location?

fejohn1231 commented 3 years ago

I tried several GPS testing apps, nothing used the data. When the application starts, ttyGps -> ttyS0 in the dev folder disappears. So I thought I'd redirect ttyACM0 to them.

freshollie commented 3 years ago

Have you tried another mock location app? It could be that your android OS doesn't support mock locations properly :/