Hello,
I would like to continue the adventure with Chat examle redone to pick up data from Arduino remote item.
Chat example starts to work under condition what it is a first time. Starts well but after several seconds slow down and finally comunication is blocked. I have to wait some minutes to be able to start this example and read data. Sometimes I am getting this foults in log panel:
Logger connected to: HTC HTC One A9s
--------- beginning of system
--------- beginning of main
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
Koniec
connected: false
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
** Activity (main) Pause, UserClosed = true **
sending message to waiting queue (serial1_connected)
** Activity (main) Create, isFirst = false **
running waiting messages (1)
connected: false
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
** Activity (main) Resume **
Koniec
In mean time I have lisened to Mr Erel lecture about TCP/IP and have read this at: https://developer.android.com/reference/android/bluetooth/BluetoothServerSocket.
Is it possible to create something like this ? Or any other solution to unlock a bluetooth comunication.
Kind regards
TomKluz
I would like to continue the adventure with Chat examle redone to pick up data from Arduino remote item.
Chat example starts to work under condition what it is a first time. Starts well but after several seconds slow down and finally comunication is blocked. I have to wait some minutes to be able to start this example and read data. Sometimes I am getting this foults in log panel:
Logger connected to: HTC HTC One A9s
--------- beginning of system
--------- beginning of main
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
Koniec
connected: false
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
** Activity (main) Pause, UserClosed = true **
sending message to waiting queue (serial1_connected)
** Activity (main) Create, isFirst = false **
running waiting messages (1)
connected: false
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
** Activity (main) Resume **
Koniec
In mean time I have lisened to Mr Erel lecture about TCP/IP and have read this at: https://developer.android.com/reference/android/bluetooth/BluetoothServerSocket.
Is it possible to create something like this ? Or any other solution to unlock a bluetooth comunication.
Kind regards
TomKluz
Last edited: