Medical pulse WIFI IC planning Draftsman:Chen Jiale version: date : V1.1.
Revision experience version Revised content V1.0.0 First planning V1.0.1 Change some details after communicating with Boxin V1.0.2 Increase the WIFI AP functionality V1.0.3 Fixed a MAC definition V1.0.4 Add UUID recognition Bluetooth and AT command acquisition status V1.0.5 Invalid update requirement due to the IIC V1.0.6 Update the schematic and add WIFI / BLE to enable control V1.0.7 Add a WIFI communication port description V1.0.
Bluetooth specifications: Bluetooth 5.1 WIFI : 802.
5 BLE_RX P10 I 6 RST RST / 7 8 9 10 11 12 VCC GND IO_0 IO_1 IO_2 IO_3 / / P14 P15 P16 P17 / / O O O O 13 IO_4 P20 O 14 IO_5 P21 O 15 16 IO_6 IO_7 P24 P26 O O 17 BLE_CEN P22 O 18 WIFI_CEN P23 I 19 ANT ANT / UART communication RX Reset the foot, and the low level is effective Power input pin power ground Controlled output port Compatible with burning mouth The default low level BLE Enable end 1 - BLE open 0 - BLE close WIFI Enable end 1 - WIFI open 0 - WIFI close Antenn
order numbe 1 2 3 2 3 4 5 6 project demand unit frequency receiving sensitivity transmitting power Radio gap Minimum connection gap Maximum connection gap Connection timeout Standby current 2402~2480 ≤ -94 Mhz dBm 0 dBm 100 10 ms ms 10 ms 5 s ≤35 mA Receiving / transmitting current ≤45 mA 7 other Automatic adjustable The WIFI functionality is turned off(25mA) bluetooth connection (31 mA) Communication requirements : UART communication: order number 1 project demand unit other Ba
0xFF03 Write longest9 0xFF04 Read 6 0xFF05 0x01 Read 0x02 Write Module broadcast name Module MAC address Address coding format see attachment Set the serial port port rate:(default 57600) 0: 4800 bps 1: 9600 bps 2: 19200 bps 3: 38400 bps 4: 57600 bps 5: 115200 bps 0xFF06 Read 2 Read the module software version(3 个 Byte:000000) 0xFF07 Write 2 0xAA,0x55: factory data reset other: invalid instruction Restore content: Name, wifi memory 0xFF08 Write longest32 Write to the WIFI SSID 0xFF09
WIFI distribution network : The BLE distribution network is adopted for the first time, establish the connection with BLE, and then input the SSID and password of the target AP, after the configuration, the module automatically connects to the AP, after each wifi boot automatically connected, with memory saving function, only one set of WIFI information is saved.
0x18 0x01 3 module 0x01 2 APP 0x18 0x07 (APPRead the data: 000000) 0xAA , 0x55: factory data reset Other:invalid instruction Restore content:Name, wifi memory WIFI Penetrate: When the product has data transmitted to the module via the UART (non-AT command data), the wifi module proactively transmits the data to the server AP Penetrate mode: In the AP mode, the APP is directly connected to the WIFI module, and the product data is directly transmitted to the APP through the wifi Serial port of commun
The WIFI gets the information from the server / APP: 1、Internet Time (only valid after the product time is issued by the product order) 2、User data (voice, control instructions, etc.
Query device version number 0x38 0x27 Report the equipment version number 0x39 0x27|0x80 Like 0x05 (5), indicates data [3] ~data [3 + 5-1] As in 0x64 (100), it indicates that data [3] ~data [3 + 100-1]为 json 范围 data[3]pers ist data[4] persist data[4] persist The json content is something like: {"version": "FW-20210125-V001"} According to the calculation According to the calculation The data format of the communication is as follows: "Device MAC address" + "Device type" + "Command character" + "
protocol :HTTP Module protocol description (product interface) The string starting with "AT +" is resolved and executed as an AT instruction and returned from the serial port, followed by additional output execution results, "AT + OK" or "AT + ERR" or "AT + (return information)", etc.Serial packets that do not start with "AT +" will be treated as transmission data.
HTTP_POST=x xxxxxxxxxxxxx x (The x table is the data) Write AT+WLMACxxxxxxxxxxxx (xxxxxxxxxxxxFor hexadecimal numbers) failure:AT+ERR Send the data to the server(Return data) example:AT+REN=FDIR8001 Module naming:FDIR8001 The above settings require power-off storage Other requirements: Account management: 1 、 Each module has a separate MAC address for later server account management discrimination 2、OTA upgrade 3 、 Information required in the broadcast: module name, device type, service UUID (0xFEEF) 4
digits of 6 represents 2021 Low 4bit indicates the month The third XX: date The last three XXXXXX:serial number Module size: thickness0.