elixir-circuits / circuits_uart

Discover and use UARTs and serial ports in Elixir
Apache License 2.0
188 stars 48 forks source link

Circuits.UART.enumerate no work on Ubuntu 20.04 #114

Open braulio opened 2 years ago

braulio commented 2 years ago

Hello.

Hello I created a small application to test Circuits.UART. But I cannot enumerate the ports. I use iex -S mix and Circuits.UART.enumerate.

The result is always %{}

Need help.

Thanks.

fhunleth commented 2 years ago

Could you check that it's possible to use the ports outside of Elixir? Are you a member of the dialout group?

braulio commented 2 years ago

Hello Frank.

I managed to send a test message from /dev/pts/2 to /dev/pts/3 after setting permissions with chmod a+rw /dev/pts/2. But Circuits.UART.enumerate still doesn't work. Interactive Elixir (1.12.2) - press Ctrl+C to exit (type h() ENTER for help) iex(1)> Circuits.UART.enumerate %{}

I still don't know what's going on.

Thank you!

Em seg., 8 de nov. de 2021 às 10:56, Frank Hunleth @.***> escreveu:

Could you check that it's possible to use the ports outside of Elixir? Are you a member of the dialout group?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/elixir-circuits/circuits_uart/issues/114#issuecomment-963172702, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAT2QB3QD2TISGCSYV4U5TUK7JIHANCNFSM5HQAX5OQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

fhunleth commented 2 years ago

/dev/pts/2 and /dev/pts/3 are not UARTs, so it's expected that Circuits.UART.enumerate won't return them.