AT component porting or samples for different devices
Chinese | English
The AT device software package is composed of the transplantation files and sample codes of the RT-Thread AT component for different AT devices. Currently supported AT devices are: ESP8266, ESP32, M26, MC20, RW007, MW31, SIM800C, W60X, SIM76XX, A9/ A9G, BC26, AIR720, ME3616, M6315, BC28, EC200X, M5311, L610 series devices, etc. At present, the above devices have completed the transplantation of the AT socket
function, and the device implements the standard socket programming interface through AT commands to complete the socket communication For detailed function introduction, please refer to "RT-Thread Programming Guide" AT command chapter.
Name | Description |
---|---|
src | AT device implementation source code directory |
inc | AT device header file directory |
sample | Sample file directory for different devices |
class | Migration and adaptation catalog of AT components for different devices |
class/esp8266 | ESP8266 device's migration directory for AT components, realizing AT Socket function |
class/esp32 | ESP32 device's migration directory for AT components to realize AT Socket function |
class/rw007 | RW007 device is a migration directory for AT components, realizing AT Socket function |
class/sim800c | SIM800C device for AT component transplantation directory, realize AT Socket function |
class/sim76xx | SIM76XX device's migration directory for AT components, realizing AT Socket function |
class/m26 | M26/MC20 device's migration directory for AT components, realizing AT Socket function |
class/ec20 | EC20 device's migration directory for AT components, realizing AT Socket function |
class/mw31 | Migration directory for AT components of MW31 equipment, realizing AT Socket function |
class/w60x | W60X device's migration directory for AT components, realizing AT Socket function |
class/a9g | A9G device's migration directory for AT components, realizing AT Socket function |
class/bc26 | The migration directory of bc26 device aiming at AT components to realize AT Socket function |
class/air720 | Air720 device is aimed at AT component transplantation catalog, realizes AT Socket function |
class/me3616 | The me3616 device is aimed at the transplantation directory of AT components, and realizes the AT Socket function |
class/m6315 | The migration directory of m6315 equipment for AT components, realizes the AT Socket function |
class/bc28 | The migration directory of bc28 equipment for AT components, realizes AT Socket function |
class/ec200x | EC200T, EC200S equipment for AT component migration catalog, realize AT Socket function |
class/n21 | N21 device's transplantation directory for AT components to realize AT Socket function |
class/n58 | N58 device's migration directory for AT components, realizing AT Socket function |
class/m5311 | M5311 device is aimed at AT component transplantation catalog, realizes AT Socket function |
class/l610 | A migration directory for AT components of L610 equipment, realizing AT Socket function |
class/ml305 | A migration directory for AT components of ML305 equipment, realizing AT Socket function |
See the LICENSE
file for details.
The AT device software package is a transplantation of the AT component and AT socket function. You need to enable the AT component library and AT socket function to obtain the AT device software package.
Version number description
At present, the AT device software package has been released in multiple versions, and the option configuration method between each version and its corresponding system version are different. The following mainly lists the currently available software package version information:
The above version judgment is automatically completed in menuconfig. When the at_device software package selects the version, it will give the best version support according to the current system environment. The version introduction is used as a reference for the operating environment.
For different version numbers, the option configuration in ENV is also different, mainly divided into the following parts:
V1.X.X version configuration options introduction
Open the AT device software package. This version only supports Enable one AT device at the same time. The configuration options are as follows:
RT-Thread online packages --->
IoT-internet of things --->
-*- AT DEVICE: RT-Thread AT component porting or samples for different device
[] Enable at device init by thread
AT socket device modules (Not selected, please select) --->
Version (V1.6.0) --->
Enable at device init by thread: Configure whether to enable the device network initialization to be completed by creating a thread;
AT socket device modules: AT device selection, currently only supports RW007、ESP8266、M26/MC20、EC20、SIM800C、SIM76XX. More device support should choose V2.X.X branch.
Version: download the software package version;
V2.X.X (latest) version configuration options introduction
Open the AT device software package, this version supports open multiple AT devices at the same time configuration options are as follows:
RT-Thread online packages --->
IoT-internet of things --->
-*- AT DEVICE: RT-Thread AT component porting or samples for different device
[*] Quectel M26/MC20 --->
[*] Enable initialize by thread
[*] Enable sample
(-1) Power pin
(-1) Power status pin
(uart3) AT client device name
(512) The maximum length of receive line buffer
[] Quectel EC20 --->
[] Espressif ESP32 --->
[*] Espressif ESP8266 --->
[*] Enable initialize by thread
[*] Enable sample
(realthread) WIFI ssid
(12345678) WIFI password
(uart2) AT client device name
(512) The maximum length of receive line buffer
[] Realthread RW007 --->
[] SIMCom SIM800C --->
[] SIMCom SIM76XX --->
[] Notion MW31 --->
[] WinnerMicro W60X --->
[] AiThink A9/A9G --->
[] Quectel BC26 --->
[] Luat air720 --->
[] GOSUNCN ME3616 --->
[] ChinaMobile M6315 --->
[] Quectel BC28 --->
[] Quectel ec200x --->
[] Neoway N21 --->
[] Neoway N58 --->
[] ChinaMobile M5311 --->
[] ChinaMobile ML305 --->
Version (latest) --->
The above configuration options take 2G module and WIFI module options as examples to introduce the configuration method of the AT device software package of the V2.X.X
version. The following points are worth noting:
V2.X.X
version supports multiple AT devices to be turned on at the same time. You can view the information of the turned on devices through the ifocnfig
command in FinSH;V2.X.X
version need to be registered before they can be used. Currently, device registration is completed in the samples directory file, and users can also customize device registration at the application layer.Power pin
and Power status pin
are configured according to the specific device hardware connection. If the hardware power-on function is not used, it can be configured as -1
;AT client device name
configured for each device should be different.Introduction to AT component related configuration options
After the AT device software package is selected and the related device support is enabled, the client function of the AT component will be selected by default. The following are the AT component configuration options.
RT-Thread Components --->
Network --->
AT commands --->
[] Enable debug log output
[] Enable AT commands server
-*- Enable AT commands client
(1) The maximum number of supported clients
-*- Enable BSD Socket API support by AT commnads
[*] Enable CLI(Command-Line Interface) for AT commands
[] Enable print RAW format AT command communication data
(128) The maximum lenght of AT Commonds buffe
Among them, the configuration options related to the AT device software package:
latest
version supports the access of multiple selected AT devices to realize the AT Socket function. The V1.X.X
version only supports the access of a single AT device.latest
version in the menuconfig option;at_sample_xxx.c
, some functions need to increase the setting value of AT_CMD_MAX_LEN
, RT_SERIAL_RB_BUFSZ
.