george-hopkins / opentom

[Unofficial] Tiny Linux distribution for TomTom™ devices
Other
74 stars 33 forks source link

Various script errors #24

Open roydenyates opened 7 years ago

roydenyates commented 7 years ago

I am not smart enough to submit a diff :-(

In /master/src/opentom_skel/bin/start_bt_gps_listenner

line 10: /mnt/sdcard/wildtom/rfcomm listen /dev/rfcomm1 1 & and line 16: /mnt/sdcard/wildtom/rfcomm show | grep rfcomm1 | grep connected

the path obviously is legacy and wrong- should be: /mnt/sdcard/opentom/bin/rfcomm

In addition, line 8 likely is missing an "!": if ps w | grep rfcomm | grep listen | grep -v grep | grep -c rfcomm1

The comparable line in start_bt_ppp_listenner is: if ! ps w | grep rfcomm | grep listen | grep -v grep | grep -c rfcomm3

In /src/opentom_skel/etc/nxmenu.cfg line 103: onoff Listen with GPS data|start_bt_gpsdata_listenner should be onoff Listen with GPS data|start_bt_gps_listenner

george-hopkins commented 7 years ago

Thank you reporting and the fixes! It really seems that this file wasn't updated in a long time.

I prepared a patch in #25. Do you think that is sufficient to get it running?

roydenyates commented 7 years ago

I will take a closer look. Run on a Go 730 (SiRF III), there is no GPS output until Navit is started. Then it works. Apparently the GPS chip needs to be started, which the script does not do. Perhaps with non-SiRF III chips, invoking the needed gltt did that? Another script rc.restartgps references an executable for SiRF III chips - /bin/sirfreset. That is not built for opentom but perhaps like gltt it needs extracting from the TomTom ttsystem? Aside of whatever use it may be, the absence is a problem for rc.restartgps as unlike in the case of gltt, there is no error message asking for it.