This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
libGPS for TinkerBoard Android
#51
Hello !
This is my last step!


If I order
root@rk3288:/data/data/com.termux/files/home # ls -l /dev/ttyACM0
crw------- root     root     166,   0 1970-01-01 02:00 ttyACM0
root@rk3288:/data/data/com.termux/files/home # chmod 666 /dev/ttyACM0
root@rk3288:/data/data/com.termux/files/home # ls -l /dev/ttyACM0
crw-rw-rw- root     root     166,   0 1970-01-01 02:00 ttyACM0
root@rk3288:/data/data/com.termux/files/home # cat /dev/ttyACM0
$GPRMC,080914.00,A,4427.18621,N,02612.68530,E,0.381,,270818,,,A*7C

$GPVTG,,T,,M,0.381,N,0.706,K,A*28

$GPGGA,080914.00,4427.18621,N,02612.68530,E,1,06,1.22,82.4,M,34.8,M,,*68

$GPGSA,A,3,25,26,16,21,29,05,,,,,,,2.32,1.22,1.97*06

$GPTXT,01,01,01,NMEA unknown msg*58

$GPGSV,3,1,10,04,71,278,28,05,20,046,25,16,30,313,15,20,20,176,*7C

$GPGSV,3,2,10,21,72,232,21,25,23,151,11,26,56,295,28,27,02,283,*71

$GPGSV,3,3,10,29,52,075,28,31,22,233,*7C

$GPGLL,4427.18621,N,02612.68530,E,080914.00,A,A*6B

$GPTXT,01,01,02,u-blox ag - www.u-blox.com*50

$GPTXT,01,01,02,HW  UBX-G70xx   00070000 *77

$GPTXT,01,01,02,ROM CORE 1.00 (59842) Jun 27 2012 17:43:52*59

$GPTXT,01,01,02,PROTVER 14.00*1E

$GPTXT,01,01,02,ANTSUPERV=AC SD PDoS SR*20

$GPTXT,01,01,02,ANTSTATUS=OK*3B

$GPTXT,01,01,02,LLC FFFFFFFF-FFFFFFFD-FFFFFFFF-FFFFFFFF-FFFFFFFD*2E

So, everything it's Ok and gps is working fine!

BUT, if I reboot, the permission for /dev/ttyACM0 disappear and return to 
crw------- root     root     166,   0 1970-01-01 02:00 ttyACM0 , and the gps is not locate me !
 This is my last problem!
To give permanent permission for /dev/ttyACM0
Thank you!
Reply
#52
You should find a way to create a udev rule Smile which will define the permission to that device.
Reply
#53
Please , tell me how!
Reply
#54
Dear YoZa, I updated my first post last days with complete installation steps including alternative 1 as install-recovery-2.sh and alternative 2 as uevent.rk30board.rc modifying. Please take a look. But alternative 2 is complicated for not experienced user.
I see in your last post that you are on the right way! Now it is missing that install-recovery.sh and install-recovery-2.sh are executed.
Maybe something is broken on your installation. The install-recovery.sh is part of the SuperSU, as you told that you have installed. Probably you should install SuperSU once more and it could repair it.
Reply
#55
(08-27-2018, 09:41 AM)YoZa Wrote: Please , tell me how!

It seems to me you haven't seen my posted link.
You should do as follow:
  • write this script
    Code:
    #!/bin/bash

    KERNEL=$(udevadm info --attribute-walk -n /dev/ttyUSB0 |grep -m1 KERNEL)
    SUBSYSTEM=$(udevadm info --attribute-walk -n /dev/ttyUSB0 |grep -m1 SUBSYSTEM)
    VendID=$(udevadm info --attribute-walk -n /dev/ttyUSB0 |grep -m1 ATTRS{idVendor}==)
    ProdID=$(udevadm info --attribute-walk -n /dev/ttyUSB0 |grep -m1 ATTRS{idProduct}==)

    echo $KERNEL, $SUBSYSTEM, $VendID, $ProdID, MODE=0666 >/tmp/10-insertACM0.rules
  • Save it as /tmp/make_the_rule.bash
  • change the permission to execute it
    Code:
    chmod 755 /tmp/make_the_rule.bash
  • run it
    Code:
    /tmp/make_the_rule.bash
  • verify the result, which should be like
    Code:
    KERNEL=="ttyACM0", SUBSYSTEM=="tty", ATTRS{idVendor}=="VVVV", ATTRS{idProduct}=="PPPP", MODE=0666
    VVVV it should be the vendorID and PPPP the productID in hexadecimal, which I cannot guess Wink.
  • Last, you should copy to /etc/udev/rules.d/
    Code:
    $ sudo cp /tmp/10-insertACM0.rules /etc/udev/rules.d/
It should work as you plug the device to the system. If it isn't possible to plug, then reboot is required.
Reply
#56
Hi !
Lobo you were right!
I installed everything for the beginning, and now GPS works, but just outside!
Thank you very much for all your support!
I still have to install 6.5 inch touchscreen and CAN-BUS module, and my project is almost done!
Reply
#57
Hi, Lobo. I make config on my TB with root. All fine, but have some trouble. Gps starts ok, gps test look few satellites, but when i change a tab to position with N-E all tb freezes. Gps status show 3d fix. But position not show. I have a usb gps mous like a u blox 8 and use v4 driver. What it can be?
Reply
#58
Please try to get a log when it freezes. But you should open a adb connection over usb cable (not tcpip) for that and give command 'adb shell logcat'. With some luck you can get some interesting messages. If it is a lot of data, you can make a zip of that and upload here.

To all user: Not easy to help without log!
Reply
#59
Can you be more precise? I read all of messages but i couldnt get the correct order.
Reply
#60
Hi there,

The driver is working perfectly on Nougat but I'm not able to root the Android (I tried several different ways and none of them worked).

I also tried the alternative 2 but for whatever reason, my board doesn't reboot in bootloader mode, it turns off when I try `adb reboot bootloader`.

Any alternatives?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)