Main Functions; Sending And Receiving Timing - Ebyte MBL Series User Manual

Next generation package-compatible s ub-1gwireless module
Hide thumbs Also See for MBL Series:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.

2.3 Main functions

main.c is the main function entry. The demo feature flow simplifies the process as follows:
Matters
1
Key function
2
Serial port data to
wireless sending
3
Receive data wirelessly
The software process simplification is shown in the following diagram:

2.4 Sending and Receiving Timing

Wireless modules have multiple operating states and can only complete specific functions in the corresponding state.
From the simplest sending and receiving data, only the sending mode and receiving mode are considered.
Matters
1
Receive mode
2
Send mode
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
If a button is pressed, the command data will be sent wirelessly. Essentially, sending a
specific string "ping" and expecting to receive a response "pong"
After the serial port receives the data, it automatically starts wireless transparent
transmission of data, of course, it contains some special instruction responses, which
are mainly used for special tests and can be ignored by users. After the sending is
complete, the user function is automatically called, so that the sending logic is handled
by itself.
Generally, the internal state ID of the module is read to determine whether there is
data, and the underlying driver will copy the data and pass it to the user callback
function, so as to handle the receiving logic by itself
After the default initialization is completed, it automatically enters receive mode.
Essentially, the receive function is called in initialization, thus entering receive mode.
If you need to consider entering other modes after initialization, such as sleep, you
can simply replace it with a function of the same type Go_xxxxx().
When calling the transmit function, the underlying driver actually switches the module
into standby mode first, usually in this mode to complete the configuration of
modulation parameters, such as frequency, power, frequency offset, and so on. After
MBL
illustrate
illustrate
test board User Manual
8

Advertisement

Table of Contents
loading

Table of Contents