Not recognize mBot in GNU/Linux with mlink


#1

Hello,
I’m trying to run mBot in GNU/Linux, but don’t recognize the 2.4G dongle…
First of all, after install the mlink deb package, I started it:
sudo mblock-mlink start
Start mlink: Running…
Version: 1.2.0

Then, I try to connect with https://ide.mblock.cc/, and: “no devices detected”

USB detected and led (in mBot) don’t blink (fixed):
[ 542.501301] usb 1-11: USB disconnect, device number 11
[ 548.519932] usb 1-11: new full-speed USB device number 12 using xhci_hcd
[ 548.673434] usb 1-11: New USB device found, idVendor=0416, idProduct=ffff, bcdDevice= 1.10
[ 548.673440] usb 1-11: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 548.673441] usb 1-11: Product: RF UART
[ 548.673442] usb 1-11: Manufacturer: MemsArt
[ 548.677483] input: MemsArt RF UART as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11:1.0/0003:0416:FFFF.000A/input/input25
[ 548.678189] hid-generic 0003:0416:FFFF.000A: input,hidraw1: USB HID v1.10 Device [MemsArt RF UART] on usb-0000:00:14.0-11/input0

What’s the problem?


#2

Hi, I had some similar problems when I wanted to use my mbot2.

I guess the controller is completely different, but here’s what I did:

lsusb gave me the deviceId of my cyberpi:

Bus 001 Device 016: ID 1a86:7523 QinHeng Electronics CH340 serial converter

Then I saw with dmesg that the device was being disconnected:

[ 75.258875] usbserial: USB Serial support registered for ch341-uart
[ 75.258898] ch341 1-4.1:1.0: ch341-uart converter detected
[ 75.272111] usb 1-4.1: ch341-uart converter now attached to ttyUSB0
[ 117.140871] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0

Some research indicated that by default some udev rules are installed of a device for braille, that uses the same USB id:

grep “7523” /usr/lib/udev/rules.d/*
/usr/lib/udev/rules.d/85-brltty.rules:# Device: 1A86:7523
/usr/lib/udev/rules.d/85-brltty.rules:ENV{PRODUCT}==“1a86/7523/*”, ENV{BRLTTY_BRAILLE_DRIVER}=“bm”, GOTO=“brltty_usb_run”

I then just disabled the udev rules:
sudo mv /usr/lib/udev/rules.d/85-brltty.rules /usr/lib/udev/rules.d/85-brltty.rules.disabled

Now, when my cyberpi is detected, i can see:
[13049.139089] ch341 1-2:1.0: ch341-uart converter detected
[13049.153242] usb 1-2: ch341-uart converter now attached to ttyUSB0

And I can connect to is via mblock5

Hope this helps somehow


#3

Hello,
Thanks for the message, but in my case it’s connected:
[67302.151496] usb 1-9: new full-speed USB device number 5 using xhci_hcd
[67302.300777] usb 1-9: New USB device found, idVendor=0416, idProduct=ffff, bcdDevice= 1.10
[67302.300779] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[67302.300779] usb 1-9: Product: RF UART
[67302.300780] usb 1-9: Manufacturer: MemsArt
[67302.302781] input: MemsArt RF UART as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/0003:0416:FFFF.0003/input/input18
[67302.302847] hid-generic 0003:0416:FFFF.0003: input,hidraw2: USB HID v1.10 Device [MemsArt RF UART] on usb-0000:00:14.0-9/input0
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0416:ffff Winbond Electronics Corp.
Bus 001 Device 003: ID 413c:2101 Dell Computer Corp. SmartCard Reader Keyboard
Bus 001 Device 002: ID 413c:301a Dell Computer Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
But it can’t be connected with https://ide.mblock.cc/


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.