OpenMarine
Seriell New GPS Device Alias Problem - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: Seriell New GPS Device Alias Problem (/showthread.php?tid=4645)



Seriell New GPS Device Alias Problem - Slin_Slin - 2023-05-21

Hi,

i have a Openplotter v3 installed on a Pi 4. When I want to add a new gps device (NL-82002U) Signal K Error: No such file or directory, cannot open /dev/ttyOP_gps. 

   

What could be my fault?
Code:
pi@openplotter:/dev $ openplotter-serial
wrong external apps format: unexpected EOF while parsing (<string>, line 0)
No module named 'openplotterSdrVhf.serialPorts'
No module named 'openplotterAvnav'
No module named 'openplotterNotifications.serialPorts'
No module named 'openplotterMaiana'
No module named 'openplotterIob'
No module named 'openplotterGpio'
No module named 'openplotterI2c'
No module named 'openplotterPypilot'
No module named 'openplotterNetwork.serialPorts'
No module named 'openplotterDashboards.serialPorts'
wrong external apps format: unexpected EOF while parsing (<string>, line 0)
No module named 'openplotterSdrVhf.serialPorts'
No module named 'openplotterAvnav'
No module named 'openplotterNotifications.serialPorts'
No module named 'openplotterMaiana'
No module named 'openplotterIob'
No module named 'openplotterGpio'
No module named 'openplotterI2c'
No module named 'openplotterPypilot'
No module named 'openplotterNetwork.serialPorts'
No module named 'openplotterDashboards.serialPorts'
wrong external apps format: unexpected EOF while parsing (<string>, line 0)
No module named 'openplotterSdrVhf.serialPorts'
No module named 'openplotterAvnav'
No module named 'openplotterNotifications.serialPorts'
No module named 'openplotterMaiana'
No module named 'openplotterIob'
No module named 'openplotterGpio'
No module named 'openplotterI2c'
No module named 'openplotterPypilot'
No module named 'openplotterNetwork.serialPorts'
No module named 'openplotterDashboards.serialPorts'
Warning: Stopping signalk.service, but it can still be activated by:
  signalk.socket
wrong external apps format: unexpected EOF while parsing (<string>, line 0)
No module named 'openplotterSdrVhf.serialPorts'
No module named 'openplotterAvnav'
No module named 'openplotterNotifications.serialPorts'
No module named 'openplotterMaiana'
No module named 'openplotterIob'
No module named 'openplotterGpio'
No module named 'openplotterI2c'
No module named 'openplotterPypilot'
No module named 'openplotterNetwork.serialPorts'
No module named 'openplotterDashboards.serialPorts'


Thanks
Nils


RE: Seriell New GPS Device Alias Problem - baltika_no_9 - 2023-05-21

(2023-05-21, 02:34 PM)Slin_Slin Wrote: Hi,

i have a Openplotter v3 installed on a Pi 4. When I want to add a new gps device (NL-82002U) Signal K Error: No such file or directory, cannot open /dev/ttyOP_gps. 



What could be my fault?
Code:
pi@openplotter:/dev $ openplotter-serial
wrong external apps format: unexpected EOF while parsing (<string>, line 0)
No module named 'openplotterSdrVhf.serialPorts'
No module named 'openplotterAvnav'
No module named 'openplotterNotifications.serialPorts'
No module named 'openplotterMaiana'
No module named 'openplotterIob'
No module named 'openplotterGpio'
No module named 'openplotterI2c'
No module named 'openplotterPypilot'
No module named 'openplotterNetwork.serialPorts'
No module named 'openplotterDashboards.serialPorts'
wrong external apps format: unexpected EOF while parsing (<string>, line 0)
No module named 'openplotterSdrVhf.serialPorts'
No module named 'openplotterAvnav'
No module named 'openplotterNotifications.serialPorts'
No module named 'openplotterMaiana'
No module named 'openplotterIob'
No module named 'openplotterGpio'
No module named 'openplotterI2c'
No module named 'openplotterPypilot'
No module named 'openplotterNetwork.serialPorts'
No module named 'openplotterDashboards.serialPorts'
wrong external apps format: unexpected EOF while parsing (<string>, line 0)
No module named 'openplotterSdrVhf.serialPorts'
No module named 'openplotterAvnav'
No module named 'openplotterNotifications.serialPorts'
No module named 'openplotterMaiana'
No module named 'openplotterIob'
No module named 'openplotterGpio'
No module named 'openplotterI2c'
No module named 'openplotterPypilot'
No module named 'openplotterNetwork.serialPorts'
No module named 'openplotterDashboards.serialPorts'
Warning: Stopping signalk.service, but it can still be activated by:
  signalk.socket
wrong external apps format: unexpected EOF while parsing (<string>, line 0)
No module named 'openplotterSdrVhf.serialPorts'
No module named 'openplotterAvnav'
No module named 'openplotterNotifications.serialPorts'
No module named 'openplotterMaiana'
No module named 'openplotterIob'
No module named 'openplotterGpio'
No module named 'openplotterI2c'
No module named 'openplotterPypilot'
No module named 'openplotterNetwork.serialPorts'
No module named 'openplotterDashboards.serialPorts'


Thanks
Nils

If you type this in a terminal window:

Code:
ls -ahl /dev/ | grep ttyOP

You should see a symbolic link:

lrwxrwxrwx  1 root root          7 May 19 19:39 ttyOP_gps -> ttyACM0

If you don't you may want to try creating the link

Code:
sudo ln -s /dev/ttyACM0 /dev/ttyOP_gps


See this similar thread. https://forum.openmarine.net/showthread.php?tid=4640

By the way the Baud rate of 11520 seems high, is that correct?


RE: Seriell New GPS Device Alias Problem - Slin_Slin - 2023-05-21

(2023-05-21, 04:16 PM)baltika_no_9 Wrote: If you type this in a terminal window:

Code:
ls -ahl /dev/ | grep ttyOP

You should see a symbolic link:

lrwxrwxrwx  1 root root          7 May 19 19:39 ttyOP_gps -> ttyACM0

If you don't you may want to try creating the link

I didn´t have a symbolic link. But after 

Code:
sudo ln -s /dev/ttyACM0 /dev/ttyOP_gps

it´s working now. Thank you very much @ baltika_no_9   Smile

The GPS Antenna support the Baud rate of 11520, because it´s a new one with GALILEO (Navilock NL-82002U). Should I use a lower Baud rate?


RE: Seriell New GPS Device Alias Problem - baltika_no_9 - 2023-05-21

Great news!

If it works at 11520 then I'd leave it.

All the best


RE: Seriell New GPS Device Alias Problem - Slin_Slin - 2023-05-30

I test it again with a new default image. There is the same error again. Is it a bug when you use M.2 SSD Boot?

Background:
Openplotter v3 installed on a Pi 4, Case: Argon ONE M.2 Case, System on the M.2 SSD.


RE: Seriell New GPS Device Alias Problem - baltika_no_9 - 2023-05-31

But does it work if you manually create the symbolic link?

If so it might be worth reporting this as a bug, it seems that OP is not correctly creating the symlink from the serial application. Yours is the second example, the other is linked in post #2 and the problem appears from your experience to be reproduceable.

I can't comment on the M.2 question but it seems unlikely. Does it work OK if you use an SD card?


RE: Seriell New GPS Device Alias Problem - baltika_no_9 - 2023-05-31

I've reproduced the problem like you and raised a thread in the Bug forum.

https://forum.openmarine.net/showthread.php?tid=4675


RE: Seriell New GPS Device Alias Problem - Slin_Slin - 2023-06-04

oh thank you very much.


RE: Seriell New GPS Device Alias Problem - baltika_no_9 - 2023-06-04

(2023-06-04, 08:04 PM)Slin_Slin Wrote: oh thank you very much.

In the meantime you can get round the issue by selecting Remember Port rather than Remember Device.


RE: Seriell New GPS Device Alias Problem - baltika_no_9 - 2023-06-04

Also see my update here https://forum.openmarine.net/showthread.php?tid=4675&pid=26208#pid26208 about what I think the problem is and how it can be avoided.