Chatper 8 Register Read And Write Control; Command Format; Register Description - Ebyte E90-DTU User Manual

Hide thumbs Also See for E90-DTU:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.

Chatper 8 Register read and write control

8.1 Command format

In configuration mode, the list of supported commands are as follows (only 9600, 8N1 format is supported when setting)
Command
No.
format
1
Set register
2
Read register
3
Wrong format

8.2 Register description

Read or
No.
Name
write
Read/W
00H
ADDH
rite
Read/W
01H
ADDL
rite
Read/W
02H
NETID
rite
Read/W
03H
REG0
rite
Copyright © 2012–20 23 , Chengdu Ebyte Electronic Technology Co., Ltd.
Command: C0+starting address+length+parameters
Response: C1+starting address+length+parameters
E.g 1: Configure Channel to be 0x09
command starting address length parameter
Send:
C0
05
Return: C1
05
E.g 2: Meanwhile Configure module address (0x1234), network address (0x00), serial port (9600
8N1) and air data rate (1.2K).
Send: C0 00 04 12 34 00 61
Return: C1 00 04 12 34 00 61
Command: C1+starting address+ length
Response: C1+starting address+length+parameters
E.g 1:Read channel
command starting address length parameter
Send:
C1
05
Returen: C1
05
E.g 2: Read module address, network address, serial port and air data rate.
Send: C1 00 04
Return: C1 00 04 12 34 00 61
Wrong format respond:
FF FF FF
Description
ADDH (default 0)
ADDL (default 0)
NETID (default 0)
7
6
5
UART Serial port rate(bps)
0
0
0
Serial port baud rate 1200
0
0
1
Serial port baud rate 2400
0
1
0
Serial port baud rate 4800
Description
01
09
01
09
01
01
09
High byte and low byte in the module
address;
Note: When the module address is FFFF, it
can be used as the broadcast and listening
address, that is: the module will not
perform address filtering.
Network address, used to distinguish the
network. When two or more modules need
to communicate with each other, their
network address should be the same.
For the two modules communicating with
each other, their serial port baud rate can
be different, and their serial parity bit can
also be different.
When transmitting large packets
E90-DTU(400SL42) User Manual
Remark
11

Advertisement

Table of Contents
loading

This manual is also suitable for:

400sl42

Table of Contents