Coder Social home page Coder Social logo

send_b00's Introduction

B00 Test Packet sender utility

Testing and evaluation sketch for Arduino

We have defined our own protocol for sending sensor data via RF between Arduinos. The protocol is called B00 as it says Boo! to announce itself.

The packet is a total of 50 bits made up of:

  • 12 bits: B00 to announce and content descriptor (see below)
  • 5 bits: 2 bit house code 3 bit channel code
  • 32 bits: content
  • 1 bit: even parity

Content Descriptor

The content descriptor currently defines these content types: ###B00:

  • 32 bits: double precision floating point value

###B01:

  • 32 bits: signed long integer value

###B02:

  • 32 bits: unsigned long integer value

###B03:

  • 16 bits: signed integer value 1
  • 16 bits: signed integer value 2

###B04:

  • 16 bits: unsigned integer value 1
  • 16 bits: unsigned integer value 2

###B05:

  • 8 bits: byte value 1
  • 8 bits: byte value 2
  • 8 bits: byte value 3
  • 8 bits: byte value 4

Encoding

The RF encoding scheme used by the B00 protocol is a reasonably 'standard' type where zero is represented as short high - long low and one is represented as long high - short low.

The short pulse is one quarter of the bit duration and the long pulse is three quarters. The actual pulse durations are derived from the trigger pulse length which is 10 milliseconds. The short pulse is 1/31 of the trigger pulse.

This produces pulse durations of

  • 10 ms trigger
  • 0.967 ms long pulse
  • 0.322 ms short pulse

The B00 RF protocol mirrors the system defined as 'Protocol 1' in the Arduino RCSwitch library, however the base version of the RCSwitch library can't be used as it only supports up to 32 bit packets.

If you intend using RCSwitch to decode the B00 packet, be sure to use the modified version which supports up to 64 bit packets. It can be found here: https://github.com/GraemeWieden/RCSwitch

For a complete example of how to receive and decode the B00 packet, see the example here: https://github.com/GraemeWieden/receive_B00

send_b00's People

Contributors

graemewieden avatar

Watchers

James Cloos avatar  avatar  avatar

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.