Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbian internal GPS #35

Open
Xf0ur opened this issue Oct 25, 2021 · 6 comments
Open

Symbian internal GPS #35

Xf0ur opened this issue Oct 25, 2021 · 6 comments

Comments

@Xf0ur
Copy link

Xf0ur commented Oct 25, 2021

Hi, I have an old symbian phone which i want to use its internal GPS to provide location for Raspberry pi.
I succeeded doing so by using Bluetooth GPS provider apps.
However, i would like to use USB GPS as well.

Here is some log:

USBGpsManager: Starting connect thread
USBGpsManager: Checking all connected devices
USBGpsManager: Checking device: 21905 1921
USBGpsManager: Checking device: 113 1057
USBGpsManager: Found correct device
USBGpsManager: GPS device: /dev/bus/usb/001/003
USBGpsManager: We have permission, good!
USBGpsManager: Checking all connected devices
USBGpsManager: Checking device: 21905 1921
USBGpsManager: Checking device: 113 1057
USBGpsManager: Found correct device
USBGpsManager: Searching interfaces, found 18
USBGpsManager: Checking interface number 0
USBGpsManager: Found interface of class 2
USBGpsManager: Searching endpoints of interface, found 0
USBGpsManager: Checking interface number 1
USBGpsManager: Found interface of class 2
USBGpsManager: Searching endpoints of interface, found 0
USBGpsManager: Checking interface number 2
USBGpsManager: Found interface of class 2
USBGpsManager: Searching endpoints of interface, found 0
USBGpsManager: Checking interface number 3
USBGpsManager: Found interface of class 10
USBGpsManager: Searching endpoints of interface, found 0
USBGpsManager: Checking interface number 4
USBGpsManager: Found interface of class 10
USBGpsManager: Searching endpoints of interface, found 2
USBGpsManager: Checking endpoint number 1
USBGpsManager: Found IN Endpoint of type: 2
USBGpsManager: Is correct in endpoint
USBGpsManager: Checking endpoint number 0
USBGpsManager: Found OUT Endpoint of type: 2
USBGpsManager: Is correct out endpoint
USBGpsManager: claiming interface
USBGpsManager: data claim true
0     0 W usb 1-1.1: usbfs: process 4404 (pool-7-thread-1) did not claim interface 0 before use
USBGpsManager: Setting connection speed to: 9600
0     0 D usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd pool-7-thread-1 rqt 33 rq 34 len 0 ret -110
E USBGpsManager: data read(buffer...) error: 0
0     0 D usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd pool-7-thread-1 rqt 33 rq 32 len 7 ret -110
I chatty  : uid=10070(org.broeuschmeul.android.gps.usb.provider) pool-7-thread-1 identical 1 line
USBGpsManager: data read(buffer...) error: 0
ocessService0:: failed to create Unix domain socket: Operation not permitted
USBGpsManager: data read(buffer...) error: 0
I chatty  : uid=10070(org.broeuschmeul.android.gps.usb.provider) pool-7-thread-1 identical 13 lines
E USBGpsManager: data read(buffer...) error: 0
412 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
E USBGpsManager: data read(buffer...) error: 0
I chatty  : uid=10070(org.broeuschmeul.android.gps.usb.provider) pool-7-thread-1 identical 3 lines
E USBGpsManager: data read(buffer...) error: 0
E ocessService0:: failed to create Unix domain socket: Operation not permitted
E USBGpsManager: data read(buffer...) error: 0

P.S. The phone creates ttyACM1 acm device and i can actually see GPS data coming when i run cat /dev/ttyACM1 after having GPS fix.

Any help?

@freshollie
Copy link
Owner

Could it be that because you already have a serial driver claiming the interface, android is not able to claim this for itself? Are you able to disable the driver?

@Xf0ur
Copy link
Author

Xf0ur commented Oct 25, 2021

Hi,
Thanks for replying.
The android build i'm using has HAL for serial GPS devices
I can only comment this line in build.prop
ro.kernel.android.gps=ttyACM1
Can you explain how i can disable the driver?

Edit: here is some other logs

I chatty  : uid=10163(org.broeuschmeul.android.gps.usb.provider) pool-5-thread-1 identical 104 lines
E NotificationService: No Channel found for pkg=org.broeuschmeul.android.gps.usb.provider, channelId=null, id=2131689517, tag=null, opPkg=org.broeuschmeul.android.gps.usb.provider, callingUid=10163, userId=0, incomingUserId=0, notificationUid=10163, notification=Notification(channel=null shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 vis=PRIVATE)
I chatty  : uid=10163(org.broeuschmeul.android.gps.usb.provider) pool-5-thread-1 identical 19 lines
I chatty  : uid=10163(org.broeuschmeul.android.gps.usb.provider) pool-5-thread-1 identical 24 lines
I chatty  : uid=10163(org.broeuschmeul.android.gps.usb.provider) pool-5-thread-1 identical 40 lines
I chatty  : uid=10163(org.broeuschmeul.android.gps.usb.provider) pool-5-thread-1 identical 13 lines
I chatty  : uid=10163(org.broeuschmeul.android.gps.usb.provider) pool-5-thread-1 identical 12 lines
I chatty  : uid=10163(org.broeuschmeul.android.gps.usb.provider) pool-5-thread-1 identical 48 lines
I chatty  : uid=10163(org.broeuschmeul.android.gps.usb.provider) pool-5-thread-1 identical 29 lines

@Xf0ur
Copy link
Author

Xf0ur commented Oct 27, 2021

Hi,
Are you able to use your android phone as an external GPS for your tablet via USB using an app like Share GPS then intercept the GPS data using your UsbGps4Droid app?

@freshollie
Copy link
Owner

freshollie commented Oct 27, 2021

I can only comment this line in build.prop
ro.kernel.android.gps=ttyACM1

Remove that line and see what happens?

Otherwise, if you have root access, can you run lsmod and send the output here?

@freshollie
Copy link
Owner

Are you able to use your android phone as an external GPS for your tablet via USB using an app like Share GPS then intercept the GPS data using your UsbGps4Droid app?

No, USB Gps is just designed for serial GPS devices :/

@Xf0ur
Copy link
Author

Xf0ur commented Oct 27, 2021

Remove that line and see what happens?

I removed it, still see the same log errors

Otherwise, if you have root access, can you run lsmod and send the output here?

I do have root however lsmod doesn't show any loaded modules.

I think you should have the phone in hand in order to solve that issue.
Thanks anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants