- This topic has 4 replies, 2 voices, and was last updated 2 years, 6 months ago by .
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › EByte LoRa e220 UART devices LLCC68 › E220-900T22D Config request issue
I am using a E220-900T22D with an Arduino Nano Every. I use that particular Nano because it has an extra hardware serial port (Serial1) so I don’t have to use the software serial.
Communication seems to work well including configuring the module with M0 = 1 & M1 = 1.
However, when after configuring I send the configuration request C1 00 08 to get the content of all 8 registers (00H … 07H) back for verification I always receive an extra byte containing NULL (0x00).
Is this a normal behavior? I couldn’t find anything about this additional NULL character in the E220-900T22D manual.
Hi Robert,
I don’t understand the issue, please post your code, and we are going to check It.
Bye Renzo
Hi Renzo,
The problem is that the module seems to send 12 bytes instead of 11 in reply to the request for configuration request. That command comprises 3 bytes : C1 followed by the start address and the number of parameters. For example sending C1 00 08 should result in returning the 3 command bytes followed by the bytes contained in all registers (8 in total : 00H … 07H).
That means 11 bytes in total (i.e. 3 + 8) but it returns 12 bytes, the 12th being 0x00 or the ASCII code for NULL.
The attached screen capture shows the code for reading the returned bytes and displaying them in the serial monitor.
Hi Robert,
ok, now I understand.
I don’t know why It return 12 bytes, for my library was irrelevant because I use a fixed-size container and I flush the buffer to the end.
Probably It uses that byte like a terminating one.
Hi Renzo,
Thanks for your reply. I will assume it’s a terminating byte (although it’s not mentioned in the data sheet) and I will simply ignore it.
More
3D Printer 3D printer upgrade ABB Arduino Arduino IDE Arduino SAMD boards Aurora AWS CNC Cyclone PCB Factory Cyclone PCB Factory how to build It Display DynamoDB E32 E70 EByte esp01 esp32 esp8266 File System Firmware i2c Library LoRa MicroPython Milling PCB My PCB Networking PCB pinout Power saving Raspberry Pi REST API RF rp2040 SD Card Sensors Sleep and Wake UP SPI STM32 Temperature Tutorial Web Server Wemos D1 mini WiFi