Android Question Serial Port Library (Solved)

nibbo

Active Member
Licensed User
Longtime User
Hi, does anyone know which library I need for SerialPort? Thanks
 
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
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
Upvote 0
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
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

Similar Threads

  • Question Question
Android Question Serial Port
Replies
1
Views
1K
  • Question Question
Android Question USB Serial port
Replies
1
Views
2K
  • Question Question
Android Question Print on serial port
Replies
7
Views
9K
  • Question Question
Android Question USB serial port
Replies
4
Views
5K
Replies
3
Views
4K
Back
Top