ev3dev / ev3dev

ev3dev meta - bug tracking, wiki and releases
http://www.ev3dev.org
GNU General Public License v2.0
635 stars 85 forks source link

Bluetooth SPP between EV3 and Android #1452

Open nWestie opened 3 years ago

nWestie commented 3 years ago

Question Is there a simple way to send data between a standard Android BT Serial app (like those used for controlling Arduino and such, I've been using RoboRemo) and the EV3 Brick?

I have been trying to find a way to control my EV3 from android, like the mailboxes you would use in stock EV3, or NXT. I upgraded to ev3dev from an NXT running NXC fairly recently, and it was relatively easy to do in NXC, as it supported standard NXT mailboxes. However, I have found no such solution for EV3, and none of the standard Lego remote apps will connect, because ev3dev uses the TI BT address, not the Lego one. I have been digging through google and this GitHub, but haven't found anything that makes sense, so am looking for something that can point me in the right direction. I've started looking into how networking over TCP/IP works, but am rather confused, and it feels like there should be a simpler way. Any advice is welcome.

I am running the latest version of Ev3dev jessie, using python and the VS-Code extension, and have been trying to connect to a Motorola G7 running android 10 ocean.

dlech commented 3 years ago

ev3dev-jessie has been out of support for several years now. I would recommend using ev3dev-stretch.

Pybricks MicroPython has Bluetooth mailboxes that are compatible with the stock EV3 Bluetooth mailboxes.