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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serial device not added correctly
#58
(2023-06-29, 06:49 PM)TVR Wrote: Assume I have 2 identical devices - device A in USB port 1 "remember by device id", and Device B in USB port 2 "remember by port".

Obviously you could swap the devices around between ports 1 and 2, and OpenPlotter wouldn't know anything about it (since both devices are identical).

But what if I unplug both devices and then plug one device into port 3? OpenPlotter won't know which of the two devices has been plugged in. Will it ignore it (since Device B was set to "remember by port")? Or will it assume Device A was plugged in, and move it from port 1 to port 3?

Maybe I'm overthinking it - its an extreme edge case so probably nothing to worry about?

Yes, I think you are right. The conclusion would be that if you have 2 identical devices it does not make sense remember one of them by device and the other one by port, you need to remember both of them by port. This way you know that on port 1 there will be always the GPS and in port 2 there will be always wind.

At this point you may think "OK then, if I can not move my devices why I need to remember them?". The answer is because even if your device A is in port 1 with the virtual port /dev/ttyUSB0 assigned by linux, maybe on the next reboot the system has assigned to the device A the virtual port /dev/USB1 and then you will have a problem because you could treat that device as wind but it is GPS. Virtual ports assignations are not fix in linux and they are often reassigned. With this system of alias and remembered devices/ports you will be sure that what you have in port 1 will be always the GPS even when the system reassign the virtual port. Actually this is the main goal of the openplotter-seriial app, not that you can move devices but that devices are always treated as what they are even when linux assigns them another virtual port.

funny right? Smile
Reply


Messages In This Thread
RE: Serial device not added correctly - by TVR - 2023-06-06, 06:48 PM
RE: Serial device not added correctly - by yvereg - 2023-06-15, 03:30 PM
RE: Serial device not added correctly - by yvereg - 2023-06-20, 09:15 AM
RE: Serial device not added correctly - by yvereg - 2023-06-20, 02:42 PM
RE: Serial device not added correctly - by yvereg - 2023-06-20, 05:24 PM
RE: Serial device not added correctly - by PaddyB - 2023-06-22, 05:20 AM
RE: Serial device not added correctly - by TVR - 2023-06-28, 07:29 PM
RE: Serial device not added correctly - by TVR - 2023-06-29, 11:14 AM
RE: Serial device not added correctly - by TVR - 2023-06-29, 11:38 AM
RE: Serial device not added correctly - by TVR - 2023-06-29, 11:46 AM
RE: Serial device not added correctly - by TVR - 2023-06-29, 11:43 AM
RE: Serial device not added correctly - by TVR - 2023-06-29, 04:03 PM
RE: Serial device not added correctly - by TVR - 2023-06-29, 05:27 PM
RE: Serial device not added correctly - by TVR - 2023-06-29, 06:49 PM
RE: Serial device not added correctly - by Sailoog - 2023-06-29, 07:55 PM
RE: Serial device not added correctly - by kste - 2023-07-13, 05:01 AM
RE: Serial device not added correctly - by kste - 2023-07-13, 11:14 AM
RE: Serial device not added correctly - by kste - 2023-07-13, 09:36 PM
RE: Serial device not added correctly - by kste - 2023-07-13, 10:38 PM
RE: Serial device not added correctly - by kste - 2023-07-13, 10:53 PM
RE: Serial device not added correctly - by kste - 2023-07-14, 04:49 AM
RE: Serial device not added correctly - by kste - 2023-07-14, 10:13 PM
RE: Serial device not added correctly - by kste - 2023-07-15, 12:43 PM
RE: Serial device not added correctly - by kste - 2023-07-15, 09:50 PM

Forum Jump:


Users browsing this thread: 15 Guest(s)