root@rugged-board-a5d2x-sd1:~# python3 read_energymeter.py
atmel_usart_serial atmel_usart_serial.2.auto: using dma0chan7 for rx DMA transfers
atmel_usart_serial atmel_usart_serial.2.auto: using dma0chan8 for tx DMA transfers
True
Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 2 bytes (0 received)
ModbusSerialClient(rtu baud[2400])
root@rugged-board-a5d2x-sd1:~#
what is solution
Hi Abhinet Pandey,
Kindly follow the below steps.
Step 1:
After booting the board from MMC set the date in board by following the commands
#date 071910102022.55
(date mmddhhmmyyyy.ss)
#hwclock -w -f /dev/rtc0
#hwclock -r -f /dev/rtc0
Step 2:
Check the internet connection in the board by connecting the Ethernet cable from the RB-A5D2x board to pc by following the below commands
#ping google.com
Step 3:
Install pymodbus by following the below commands
$ pip3 install pymodbus
Please check the hardware connections of Energy meter with RB-A5D2x board properly.