MList Active Member Licensed User Nov 30, 2022 #1 Hi, I am working with a device which sends data via cable. How can I do it with B4i? Whats the serial lib? B4J: B4X: Dim AStream As AsyncStreams Private com As Serial com.Initialize("com") com.Open(cmbText.SelectedItem) com.SetParams(115200,8,1,0) AStream.Initialize(com.GetInputStream, com.GetOutputStream, "Astream") B4a: B4X: Private com As felUsbSerial Public manager As UsbManager com.Initialize2("Serial",device,-1,"FTDISerialDevice") com.BaudRate = 115200 com.DataBits = com.DATA_BITS_8 com.Parity = com.PARITY_NONE com.StopBits = com.STOP_BITS_1 com.StartReading
Hi, I am working with a device which sends data via cable. How can I do it with B4i? Whats the serial lib? B4J: B4X: Dim AStream As AsyncStreams Private com As Serial com.Initialize("com") com.Open(cmbText.SelectedItem) com.SetParams(115200,8,1,0) AStream.Initialize(com.GetInputStream, com.GetOutputStream, "Astream") B4a: B4X: Private com As felUsbSerial Public manager As UsbManager com.Initialize2("Serial",device,-1,"FTDISerialDevice") com.BaudRate = 115200 com.DataBits = com.DATA_BITS_8 com.Parity = com.PARITY_NONE com.StopBits = com.STOP_BITS_1 com.StartReading
jahswant Well-Known Member Licensed User Longtime User Nov 30, 2022 #2 iOS doesn’t support serial via USB. Upvote 1 Solution
jahswant Well-Known Member Licensed User Longtime User Nov 30, 2022 #3 You will have to use either BLE or Network. Upvote 0
MList Active Member Licensed User Nov 30, 2022 #4 jahswant said: You will have to use either BLE or Network. Click to expand... ok, ups i didn't know that, thanks Upvote 0
jahswant said: You will have to use either BLE or Network. Click to expand... ok, ups i didn't know that, thanks