Communications Protocol

MCU, Firmware, etc.
PGoncalves
Posts: 48
Joined: Wed Mar 12, 2014 2:13 pm

Communications Protocol

Postby PGoncalves » Tue Apr 08, 2014 9:34 am

The following images represent the communications protocol with the device:

commands.png
Commands
commands.png (11.55 KiB) Viewed 3934 times


frames.png
Frames
frames.png (10.38 KiB) Viewed 3934 times

edgargaona
Posts: 2
Joined: Mon Sep 28, 2015 2:38 pm

Re: Communications Protocol

Postby edgargaona » Mon Sep 28, 2015 9:14 pm

For example, if a want to activate the live mode and channel 0 via serial command (UART), do i need to send a 0x05 (00000101) to MCU serial port?
What else is it needed?

BITalino
Site Admin
Posts: 567
Joined: Tue Aug 27, 2013 3:47 pm

Re: Communications Protocol

Postby BITalino » Mon Sep 28, 2015 9:43 pm

That is correct yes.

Prior to sending the 0x05 command you'll need to have opened the connection to the serial port.

You can test the communication with the device by sending 0x07 (should return the firmware version).

If you're experiencing any issues please let us know.

Best regards,
The BITalino Team

edgargaona
Posts: 2
Joined: Mon Sep 28, 2015 2:38 pm

Re: Communications Protocol

Postby edgargaona » Mon Sep 28, 2015 10:27 pm

Ok but how do you open the serial port in Bitalino?

BITalino
Site Admin
Posts: 567
Joined: Tue Aug 27, 2013 3:47 pm

Re: Communications Protocol

Postby BITalino » Mon Sep 28, 2015 10:31 pm

You open the serial port on the software side.

If you're using Bluetooth it'll be the Virtual COM Port, while if you're using an FTDI it'll be the actual COM port.

Our API C++ or Python reference APIs provide a starting point about the functions used to open the serial port:
https://github.com/BITalinoWorld/cpp-api/blob/master/bitalino.cpp
https://github.com/BITalinoWorld/python-api/blob/master/bitalino.py

Best regards,
The BITalino Team


Return to “Microcontroller”