Android Question Serial Port Library (Solved)

nibbo

Active Member
Licensed User
Longtime User
Hi, does anyone know which library I need for SerialPort? Thanks
 

agraham

Expert
Licensed User
Longtime User
One that supports the serial adaptor you want to use. I'd start with
as long as you have one of the supported chips.
 
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
Thanks Erel,

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
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
open the project and check the marked/used libraries
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?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I had all of my sources backed up but not
look at the .b4a file in notepad++
The used libraries are listed in this file.

Library1=core
Library2=okhttp
Library3=stringutils
Library4=javaobject
Library5=okhttputils2
Library6=firebaseadmob
Library7=json
 
Upvote 0
Top