Hi Qle...
Do you have a solution in b4a to reply the java code mSerialPort = new SerialPort("/dev/xxxxx",9600) ??. My tablet have a native RS232 serial in the /dev/ttymxc0. and i can read and write in this port with Asyncstreams, but i cant configure its baudrate or parity.... Can you help me??? sorry for my english....
Hi.... :sign0060::sign0060::sign0060:
Erel,
i did make a small change in the serial_port_api and now i can list, read and write in all serial devices in my tablet ( in my case... the port /dev/ttymxc0 is unblocked). with this library now i can set the baudrate, port adress and flags in all devices.
there are two types created. "PortFinder" and "SerialPort"
.........................................
Dim c As PortFinder
Dim d As SerialPort
Dim x As AsyncStreams
.........................................
Label1.text=c.AllDevicespath.Length //(number of devices)
Spinner1.AddAll(c.AllDevicespath)// (device path list)
d.SetPort("/dev/ttymxc0",9600,0) //set serial port..
x.Initialize(d.InputStream,d.OutputStream,"Astream") // connect with asyncstream
this is the compiled library with the. jar and .xml... for android 2.3 and higher
enjoy it!!
thanks a lot for your help...i am very very happy with de b4a.