BITalino R-IoT
User Manual
BR 20200207
34 of 42
Additionally,
the
WiFiUdp.cpp
source
file
must
be
modified
(
hardware\cc3200\libraries\Wifi
), as its function
parsePacket()
blocks
during 10ms. The code has been modified to reduce this timeout to 1ms by changing the
default value of
timeout.tv_usec
, wich is
10000
as follows:
timeout.tv_usec = 1000;
This will keep the low latency and a 200Hz sampling rate of the IMU streaming.
Edited files are available here:
https://gist.github.com/wprimett/cc250921b2c7eb4121362980d9b03467
https://gist.github.com/wprimett/72768262e9b4c1a2212f71aaad4d2aa9
9.4
Install the Firmware and Examples
The full firmware uses 2 libraries that need to be installed to allow compiling the code:
the SFLS library (File System for the CC3200 in order to retain parameters in a non-
https://github.com/Ircam-R-IoT/SLFS
) and the BITalino basic library (a
small wrapper to ease the communication with the BITalino (r)evolution
https://github.com/Ircam-R-IoT/bitalino-energia-library
). Please copy the folder
'
bitalino1
', that has the newest version.
Those libraries must be placed in the
Documents\Energia\libraries
folder (PC
or Mac).
9.5
Use Energia IDE
Launch Energia. A blank sketch appears. A sketch is composed of two essential functions,
setup()
and
loop()
which is equivalent to the main function in traditional C language.
Energia, just like Arduino, uses C and C++, along with a basic API and set of classes to
access the hardware in what became the Arduino standard.
https://www.arduino.cc/en/Reference/HomePage
The setup function, called prior the main loop, is used to configure the module hardware,
default behaviors and everything that requires some initialization before executing the
main program.
Once returning from the setup function, the loop function is called repetitively and is
equivalent to any traditional endless program loop used on embedded platforms (a
while(1)
statement within the main function).