This library wraps the following open source project: https://github.com/felHR85/UsbSerial (MIT license). It is an alternative to the UsbSerial2 library. The following devices are supported: CP210x, CDC, FTDI, PL2303 and CH34x. Usage is simple. You find the UsbDevice with USB library and then...
The UsbManager says there are no USB devices connected, so, again find myself looking at some old code and cannot identify which libraries I used to have.
Below is my old code which used to work, does anyone know any other libraries that expose SerialPort?
The device is a handheld with a built in barcode scanner.
Thanks
Code::
Sub Process_Globals
Dim sp As SerialPort
Dim spStream As AsyncStreams
End Sub
Sub Service_Create
End Sub
Sub Service_Start (StartingIntent As Intent)
sp.SetPort("/dev/ttyMT1", 115200, 0)
spStream.Initialize(sp.InputStream, sp.OutputStream, "Astream")
End Sub
Unfortunately my PC was trashed; I had all of my sources backed up but not the libraries folder so any extra extra libraries I added have gone.
Now, when I open an old project it 'ticks' all libraries it used to have but does not complain about any missing ones so I have no idea what was there before.
Unless I am missing a trick somewhere?