LibSerialPort.jl
LibSerialPort.jl copied to clipboard
Julia wrapper for the libserialport c library
I am writing a small module to send inputs and save outputs to/from an Arduino 256 mega. I had trouble resetting the Arduino upon opening the serial port. The following...
This PR changes the API very slightly by wrapping the error exceptions thrown from the internal `check` method in a custom error type. This is extremely useful for consumers of...
```julia using LibSerialPort list_ports() ports = get_port_list() sp = LibSerialPort.open(ports[1], 115200) set_flow_control(sp) sp_flush(sp, SP_BUF_BOTH) @async while isopen(sp) while bytesavailable(sp) > 0 data = readline(sp) println(stdout, "read :$data") end end ```...
Test errors on master. Ubuntu 18.04. User in the dialout group. ``` ... /dev/ttyUSB0 Description: xxxxxx USB Device - xxxx Transport type: SP_TRANSPORT_USB OS error code 5: Input/output error Low...
A common situation I've encountered: I have the port name (i.e. as a String, e.g. `"/dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95735353032351F0F0F0-if00"`), I open it, do stuff with the SerialPort object, and then for various reasons...
This suggestion would be a big breaking change, but possibly worth it. I believe LibSerialPort would become far more user friendly if we merged the high-level and low-level APIs. The...
Is there some way I can open a port (i.e. `"/dev/ttyACM0"`) "safely"? Alternatively, test to see if a port is already open? Currently I can only do: ```julia isopen(sp) ```...
Hi there, for arduino communication using windows subsystem for linux it would be great to able to use LibSerialPort. ``` include(".julia/packages/LibSerialPort/xvkkM/test/runtests.jl") Usage: test-low-level-api.jl port [baudrate] Available ports: OS error code...
This is a trivial fix for #79. It simply removes `open` from the list of imports. This is a breaking change but prevents type piracy.
I was just adapting some of my code to use the newest release and I noticed that there appears to be some type piracy with extending `Base.open`. Specifically it gets...