/
Battery
Battery
This section refers to the following sample application(s):
02-battery
The
LTC5800
features an on-chip supply voltage sensor, an internal input channel for the ADC (see ADC).The 02-battery
Sample Application
The 02-battery
sample application creates a task which periodically reads the value of the DN_BATT_DEV_ID
device and prints the raw returned value on the CLI, as shown in the CLI capture below:
battery app, ver 1.0.0.1 SmartMeshIP stack, ver 1.2.1.3 voltage=36292 voltage=36292 voltage=36292 voltage=36292 voltage=36292 voltage=36292 voltage=36292 voltage=36292 voltage=36292
The raw reading is expressed in tenths of mV.
Refer to the
SmartMesh On-Chip API html documentation
in the /doc
directory of the for documentation about this feature.
The 01-join
sample application uses the Helper Modules to initialize the CLI Module and interaction with the local interface. In particular, it configures the loc_task
helper module to join the network and open a socket bound to UDP port 60000
.
It uses a single task (sendTask
) which:
- waits for the
loc_task
helper module to have joined the network (by pending on thejoinedSem
semaphore); - every 10s, send a UDP packet to the IPv6 address of the manager.
, multiple selections available,
Related content
Random
Random
More like this
SensorDataReceiver
SensorDataReceiver
More like this
Temperature
Temperature
More like this
What Your Application Can (and Can't) Do
What Your Application Can (and Can't) Do
More like this
A First Application
A First Application
More like this
Analog Devices EV-Cog-AD3029LZ
Analog Devices EV-Cog-AD3029LZ
More like this