
8
5.2.3. USART0
The USART0 is accessible from the block P2. The available communication lines are:
5.3. ADC –Battery
Sirius B and Sirius D devices have an ADC that monitors the internal battery voltage. The reference voltage
for the microcontroller is 1.1V. The input voltage range is from 0V to 3.75V.
The voltage of the battery is adapted through a voltage divider (see the schema) before
being read by the ADC_Battery analog-to-digital converter.
The relationship between the battery voltage (V_Battery) and the voltage read by the
ADC (ADC_Battery) is given by the following expression: 𝑨𝑫𝑪𝒃𝒂𝒕𝒕𝒆𝒓𝒚 =𝑽_𝑩𝒂𝒕𝒕𝒆𝒓𝒚
𝟒
5.4. USB
Sirius B and Sirius D devices have a USART port (Block E2), which can
be used to communicate the Sirius device with other devices with
serial communication capabilities, such as a PC.
In addition, the USART can be used to update the firmware of the
Sirius device, as described in Section 7 - Firmware Updates of this manual.
The USART1 of the ATmega1281V®microcontroller is connected to the USB port through the Silabs CP2103
USB-to-UART Bridge Controller.
This port is recognized by the Operating System (e.g., Windows®) as a Virtual Com Port
and allows powering
the Sirius device and establishing the communication with it at the same time.
5.5. LED
Sirius B and Sirius D have 3 LEDs.
Green LED: connected to the GPIO_8 of the microcontroller.
Red LED: connected to the GPIO_1 of the microcontroller.
Orange LED (Charge LED): Indicates the charging status of the battery.
By default, LEDs are configured as detailed below:
Red LED fast blinking: the device is looking for a ZigBee™ network to join.
Red LED sporadic blinking: the device is sending a Node Alive
and
indicates that the device is joined to a ZigBee™ network.
Green LED fixed on
: the device is connected to a ZigBee™ network.
If locating functions of n-Core® are used both LED are turned off and their
behavior will be different according to the type of device:
oRouter: both LED blink at the same time when the table of Tags6is sent by the device.
oTag: green LED blinks when a broadcast frame is sent by the device.
http://www.silabs.com/support/pages/support.aspx?ProductFamily=USB%20to%20UART
http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx
For further information, please, consult the n-Core® development API reference at www.nebusens.com
It is possible that both LED are turned off and the device is still connected to the ZigBee™ network. This could happen because of some routines loaded into the device.
IMPORTANT NOTE: In order to use the USART0 is mandatory that the
reference pins (GND) of both the Sirius device (block P2, pin 10) and the
input device (for example, a sensor) are connected to each other.