Arduino extension in live mode


#1

Is there any good example on how to implement an extension that works in live mode with an arduino ?
I read the doc, but I’m confused…


#2

Hi sebdelprat,
https://www.mblock.cc/doc/en/developer-documentation/tutorials/how-to-write-sprite-role-extension.html
Here is a example for you.
Thanks.


#3

Thanks a lot. Unfortunately, this is quite far from what I’m doing.
I’m programming a Arduino Uno Firmware for a Osoyoo Robot Car.
Using the GitHub code, I rewrote a basic firwmare. But now I would like to implement the live handler that uses serial port.
Could you show us some sample code (actually, any live handler from a mbot with some serial protocol would help a lot).


#4

The serial protocol is described a little, here: https://www.makeblock.com/project/mbot-serial-port-protocol

The makeblock sourcecode in github (https://github.com/Makeblock-official/Makeblock-Libraries/tree/master/examples) includes source of standard firmware in the examples (e.g. Firmware_for_auriga) - in there you will find the serial protocol handler in the read_serial() and parseData() functions


#5

The firmware is “easy”, that’s standard arduino.

I’m looking for the configuration of the device extenion: 1) how to write live handler that uses the serial protocol. 2) how to setup the firmware options (and all the others options) : what kind of file is expected where.

The main issue is that all the demos mext file I found on internet do not include the live mode, so I’m lost.


#6

Hi sebdelprat,
Actually third party users don’t have the permission to use live mode and we can’t open the permission.
Hope you can understand.