Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. BlackBox: binary, lightweight communication protocol handler source code generator.

BlackBox: binary, lightweight communication protocol handler source code generator.

Scheduled Pinned Locked Moved My Project
5 Posts 3 Posters 1.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Sirguy CheblinS Offline
    Sirguy CheblinS Offline
    Sirguy Cheblin
    wrote on last edited by
    #1

    Recently I finished the BlackBox: binary, lightweight communication protocol handler code generator.

    And now complete new project which converting of MAVLink protocol description XML file into the BlackBox format
    Everything works just fine, all tests are passed successfully. Therefore I decided to share this with you, guys.
    It is clearly demonstrates the maturity of BlackBox and its comparatively greater capability against MAVLink.

    What are the advantages?

    The BlackBox format of the protocol and the network topology description file is presented as plain java source - more compact and familiar for the programmers, instead of XML format in the MAVLink.

    Plain java file format supported by many development environments with all the refactoring capabilities.

    1. inheritance of packet fields;
    2. additional data formats:
    3. fields with the built-in structure of multidimensional arrays;
    4. fields of sparse multidimensional arrays;
    5. bit fields;
    6. fields with the built-in structure of multidimensional arrays of bits;
    7. Base 128 Varint data compression

    Using BlackBox, you can easily establish communication not only between microcontrollers, mobile devices but also between the ordinary computers. And what is important, without time and effort waste. In fact, the generated BlackBox code can become the skeleton of your distributed application. The programmer will just have to add handlers to the packet's reception events, as well as the logic for creating the package, populating it with data and sending it to the recipient. BlackBox generates the source code in the following programming languages: JAVA, C #, C.

    Here is an example of demo project to control from Android based mobile, blinking LED on a board under STM8S103F3P6 via Bluetooth UART on HC 08.

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      I am not a super skilled programmer, so may I ask how would this fit with MySensors?

      Sirguy CheblinS 1 Reply Last reply
      4
      • Sirguy CheblinS Offline
        Sirguy CheblinS Offline
        Sirguy Cheblin
        wrote on last edited by
        #3

        Using BlackBox, you can easily establish communication not only between microcontrollers, mobile devices but also between the ordinary computers. And what is important, without time and effort waste. In fact, the generated BlackBox code can become the skeleton of your distributed application. The programmer will just have to add handlers to the packet's reception events, as well as the logic for creating the package, populating it with data and sending it to the recipient.

        BlackBox generates the source code in the following programming languages: JAVA, C #, C.

        1 Reply Last reply
        0
        • gohanG gohan

          I am not a super skilled programmer, so may I ask how would this fit with MySensors?

          Sirguy CheblinS Offline
          Sirguy CheblinS Offline
          Sirguy Cheblin
          wrote on last edited by
          #4

          @gohan do you use MQTT? well. forget it.
          With BlackBox you can build your own, fit to only your project needs.

          Nca78N 1 Reply Last reply
          0
          • Sirguy CheblinS Sirguy Cheblin

            @gohan do you use MQTT? well. forget it.
            With BlackBox you can build your own, fit to only your project needs.

            Nca78N Offline
            Nca78N Offline
            Nca78
            Hardware Contributor
            wrote on last edited by
            #5

            @sirguy-cheblin said in BlackBox: binary, lightweight communication protocol handler source code generator.:

            @gohan do you use MQTT? well. forget it.
            With BlackBox you can build your own, fit to only your project needs.

            What's the advantage of leaving an interoperable protocol like MQTT for your own protocol ?
            And how is it relevant in a MySensors environment ?

            1 Reply Last reply
            3
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            30

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular