Giter VIP home page Giter VIP logo

root-robot-ble-protocol's People

Contributors

entwanne avatar kkguo avatar mogenson avatar raphaelcherney avatar shamlian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

root-robot-ble-protocol's Issues

Drive Arc command in staging protocol

Hi,

I'm using https://github.com/shamlian/root-robot-sdk to control my Root robot and was trying to use the drive arc command, that is listed here in the staging spec.
There is no effect and no response when I run the command.

I went deeper and sent raw data to the robot but I get nothing more.
I was trying the following packet as an example:

[1, 27, 10, 0, 0, 2, 88, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, 60]

Is there something that I'm not doing well, or is it related to the staging state of the specification?

I have no problem with other commands, like drive distance ([1, 8, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182]).

Thanks

Some questions about protocol responses (enabled events & color data)

Hi,

I am implementing the root protocol in a library and I'm facing issues with two responses of the robot.

Command 0.11 - Get Enabled Events Response

I always receive an empty bitfield from this command. The enable/disable event commands work but Get enabled events keeps returning an empty bitfield.

Is this a known issue?

Command 4.1 - Color Sensor Data Response

With this command, I don't know how to handle the color data I receive, either with ADC or mV format. Is there a way to map the data with RGB colors or is it only brightness data?

Also the protocol says that the result for ADC format is on 12 bits but I get significant bits in the 16 bits of the color data.

Thanks

Include charging state for Device 14 - Battery messages

When we get information about the battery state, it would be helpful to know whether it is actively being charged. Root turns off when charging due some toy-specific requirements, but that is not the case for Create 3 or other potential robots using this protocol. I propose we add a charging status byte for Device 14 messages. Something like:
0 = no charger connected (backward compatible with Root)
1 = charging
2 = charging complete

In the future, we could even consider additional states like charging error, fast charging, slow charging, etc. that would be good for the controller to know.

Command 4.1 - Color Sensor Data Response - is confusing

Description from #5 as follows;

Command 4.1 - Color Sensor Data Response

With this command, I don't know how to handle the color data I receive, either with ADC or mV format. Is there a way to map the data with RGB colors or is it only brightness data?

Also the protocol says that the result for ADC format is on 12 bits but I get significant bits in the 16 bits of the color data.

Doesn't work on a mac

Hi - I am working with some art students who are getting a slew of errors trying to run this BLE protocol.
Is the irobot_edu_sdk available to be downloaded and run locally?

Command 0.11 - Get Enabled Events Response - Not Responding

Description from #5 as follows;

Command 0.11 - Get Enabled Events Response

I always receive an empty bitfield from this command. The enable/disable event commands work but Get enabled events keeps returning an empty bitfield.

Is this a known issue?

Implementation questions

I am currently intrgeating the protocol into Terrapin Logo. Questions:

  • I am not sure how the color sensors work. Your app seems to use 5 areas, but how would these match to 32 color sensors. Also, how would I use the color light settings, if at all? Any info would be welcome.

  • Saying does not seem to work. I tried a simple "HI", but no sound and no response.

Terrapin Logo is a Web app using Web Bluetooth with Chrome 70. I noticed that requesting a device descriptor returns a device with no name, and Chrome's selection dialog displays the bot as Unknown device (oddly enough, this happens on the first connect attempt after a page load; subsequent attempts display the device name just fine). See attached image.

Please also note that no implementation of Web Bluetooth supports listening to advertisements yet.

Regards, Michael

root_pairing

Question on rt0

Is there any documentation on which commands will work for a rt0? Some are working fine for me (e.g. motor commands) but some are not (e.g. Get Battery Level, Get Position, Get Acceleration). I'm not sure if they are unsupported on the rt0 or if I'm doing something wrong (quite possible!). It would help to know which I should expect to work.

Thanks!

Root RT0 not responding to most motor commands

I hope this is something simple that I'm missing, but I can only get my Root to respond to a few motor commands (drive distance and right motor speed). For clarity, here's what I'm sending to the Root for each different command I'm trying:

drive_distance: <Buffer 01 08 00 00 00 00 64 00 00 00 00 00 00 00 00 00 00 00 00 da>
right_speed: <Buffer 01 07 00 00 00 00 64 00 00 00 00 00 00 00 00 00 00 00 00 5b>
rotate_angle: <Buffer 01 12 00 00 00 17 70 00 00 00 00 00 00 00 00 00 00 00 00 99>
reset_position: <Buffer 01 15 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa>
drive_arc: <Buffer 01 27 00 00 00 1c 02 00 00 00 c8 00 00 00 00 00 00 00 00 41>

The first two work, and the other three don't. I don't get anything transmitted back from the Root on the failed commands either. I'm assuming maybe my checksum values are wrong, but I'm using the same crc library for generating all the checksums. Any ideas on what I might be doing wrong? FWIW, I have put the robot in ROOT BOOT mode and updated the firmware, just to be sure that wasn't the cause. And I can use the coding website and app to rotate the angle, so the Root definitely works from that perspective. Thanks for any assistance you can provide!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.