Description
This is a wireless communication module, integrated an NB-IOT M5311 module that produced by China Mobile. The dimension if M5311 is 16mm * 18mm * 2.2mm, which is very tiny, and gives convenience to the user of more flexible dimension requirement.
Package with LCC allows quick production through standard SMT, which provides a more reliable connection method and performance on the extreme environment. the power requirement of this M5311 module is down to 2.1V, AA battery supported, it can fully utilize the power of AA battery, to provide an extremely low-power-consumption solution for terminal devices. M5311 provides abundant external interfaces and protocol stacks, support peripheral sensors, etc. Based on M5311, we have offered extra hardware resources on NB-IoT Module, WUP, STA LEDs, 3 alternative UARTs, one power button, and 2 alternative antennae.
Power Operation:
- Power On: GPIO2 stay HIGH for 2s
- Power Off: GPIO2 stay HIGH for 8s
- Power On: Button long-press for 2s
- Power Off: Button long-press for 8s
- Reset module: GPIO26 HIGH
Product Features
- Serial communication: UART
- Product Power in : 5V
- 3x Alternative UARTs
- 2x antenna: Spring / External
- WUP, STA LEDs
- 1x Power Button
- Nano SIM
- M5311
- Package: LCC
- Frequency Band: B3/B8/B5
- Tem:-40°C ~ 85°C
- NB-IoT support LTE Cat NB2*
- LTE Cat NB1 speed (kbps):
- Single Tone:15.625(UL)/21.25(DL)
- Multi Tone:62.5(UL)/21.25(DL)
- SMS: PDU/TEXT mode
- Network Protocol:
- IPv4/IPv6/UDP/TCP/
- CoAP/LwM2M/HTTP/MQTT/TLS
- power in:
- 2.1V ~ 3.6V,Typ 3.3V (Low-Voltage version)
- & 3.0V ~ 3.6V,Typ 3.3V (Fixed-Voltage version)
- Consumption:
- 3uA@PSM 0.4mA@ldle mode(DRx=1.28S)
- 167mA@Tx(23dBm/15kHzST) 54mA@Rx -output power: 23dBm±2dB
- Certificate: CCC/SRRC/NAL/GTI
Include
- 1x Nano Iot SIM card
- 1x NB-IoT module
Application
- Smart Wearable device
- Smart Parking
- Smart Meter
- IoT in City
Links
- Datasheet: M5311 AT Command
- User Manual: M5311
Schematic
Code
1. Arduino IDE
A sample Code is available here
void IotWriteCommand(char cmd[],char date[]){
char buf[256] = {0};
if(cmd == NULL)
sprintf(buf,"AT\r\n");
else if(date == NULL)
sprintf(buf,"AT+%s\r\n",cmd);
else
sprintf(buf,"AT+%s=%s\r\n",cmd,date);
Serial2.write(buf);
}
void get_time(void){
IotWriteCommand("CCLK?",NULL);
while(Serial2.available()){
uint8_t ch = Serial2.read();
Serial.write(ch);
M5.Lcd.write(ch);
}
}
void setup() {
M5.begin();
Serial.begin(115200);
Serial2.begin(115200, SERIAL_8N1, 16, 17);
pinMode(5, OUTPUT);
digitalWrite(5, 1);
}
void loop() {
if(M5.BtnA.wasReleased()){
M5.Lcd.fillScreen(TFT_BLACK);
M5.Lcd.setCursor(60,80,2);
get_time();
}
M5.update();
}
Pin Map
M5Stack | GPIO16 | GPIO17 | 5V | GND |
HAT ADC | RX | TX | 5V | GND |