Does mBlock/Bluetooth work on Linux?


#1

Hello All,

I am new to mBlock and Makeblock. I bought an mBot v1.1 for the family for Christmas, but cannot connect a Linux (Debian jessie) to the mBot via bluetooth.

The mBot works, and I’ve been about to get mBlock working (I had to install all the i386 libraries) and can connect by USB, but not bluetooth. I know bluetooth works, as the android app will connect my phone to it.

Has anyone been able to get bluetooth workng under linux? Is there a guide out there.

Many thanks in advance.

Mike


#2

Hi Mike,

The Linux version mBlock support Bluetooth connection. But you need disconnect the USB connection between mBot and PC.
Once still the problem, may we know the details of the problem whiel you connecting mBlock to mBot Bluetooth. If it is possible, please take a video to show your operation and the problem during connecting Bluetooth to linux version mBlock.


#3

I have just bought a mBot and I am using Linux.
I’ve successfully used ide.makeblock.com via USB and various android apps via Bluetooth.

How do I connect to the mBot via Bluetooth from the Linux PC?
I cant seem to find any guide.


#4

Hi audetto,
Sorry, for Linux, we don’t have guidance for Bluetooth connection. To connect Bluetooth with PC built-in Bluetooth adapter, we have mBlock 5 based on windows and mac system. You probably need Makeblock Bluetooth dongle which will form a serial com once paired up with the mBot/Ranger Bluetooth module.


#5

To be honest, I have managed to use the online mblock in Linux in live model via bluetooth.

In doing so, I have found a few things which lack documentation:

  1. the Bluetooth dongle coming with the mBot works in dual mode: bluetooth classic (SPP profile) and BLE (Uart). I think it is an HC-06
  2. using standard bluez tools I succeeded in pairing, connecting and using the COM port /dev/rfcomm0
  3. /dev/refcomm0 is then recognised by the mblock-mlink bridge and it works in live mode

The only trick in 2) is that I had to remove ModemManager otherwise, the newly create serial port is accessible only to root.

I cannot upload a sketch to mBot via Bluetooth: neither with Arduino IDE nor with the online ide.

It would be very cool if you guys added a page about all this in Linux on your website.
It seems that the hardware is plain Arduino, so nothing really special mBot-specific exists.
I will try again.

Andrea


#6

Can i ask you how can i get bluetooth working? does it work only to control mbot (with mblock 3) or can i use bluetooth internal module to get data from ranger sensors?

Thanks