Здравствуйте. Есть два телефона, подключены USB кабелем. Как мне отправить данные (текстовая команда) с одного телефона на другой.
Но OpenSerial = false.
Здравствуйте. Есть два телефона, подключены USB кабелем. Как мне отправить данные (текстовая команда) с одного телефона на другой.
Но OpenSerial = false.
Если я подключаю Ардуино к телефону OpenSerial = true.
Наверно нужно чтобы второй телефон как-то сообщал первому, что подключен.
Sorry have no experience with serial and ai2, but other treads may be useful:
Personally I would begin downloading a “serial terminal” app on both phones, verifying that the connection works as expected an then switch to ai2.
P.S.
If OpenSerial return false it means the port is not open ( check the phone usb otg options are enabled ). The opening should succeed even if the phone is not connected to anything ( at 99.9% )
Ok tried on an old phone with usb otg and it works for me:
In both cases with default settings dtr=rts=parity=0 ( no hardware handshake, no parity )
P.S.
sometimes, when phone goes in standby, need to power cycle the phone to make the app work again