Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gsich
on Aug 2, 2021
|
parent
|
context
|
favorite
| on:
Gpsd bug may create a 1024 week time warp on Octob...
Allows multiple applications to use a GPS source.
dheera
on Aug 2, 2021
[–]
Okay, then why not just take the /dev/ttyACM0 output and redirect it to a standard TCP port with like 5 lines of code?
And can't multiple applications read a /dev/tty device read-only with just e.g. "cat /dev/ttyACM0"?
rcxdude
on Aug 3, 2021
|
parent
|
next
[–]
Technically you can (in that you won't usually get an error), but the result is not what you would want: each byte only gets delivered to one of the readers, in a somewhat unpredictable manner, either mangling the data or starving one of the readers
BenjiWiebe
on Aug 2, 2021
|
parent
|
prev
[–]
No, multiple applications cannot read the same data from a tty device.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: