Initialisatie instellingen:
Ypedef struct RFConfig
{
Byte n;
Byte buf [10];
} RFConfig;
RFConfig RxTxConf =
{
10,0x01, 0x0c, 0x44, 0x20, 0x20, 0xcc, 0xcc, 0xcc, 0xcc, 0x58 / / 433Mhz
};
Seriële rate instelling:
G1 G0 ( Jumper 1 ; jumper 2 ) Rate (bps) LED status
00 ( 1 kortsluiting; 2 kortgesloten) 9600 D4 licht, de andere off
01 ( 1 kortsluiting; 2 vacant ) 19200 D3 heldere, de andere off
10 ( 1 vacant ; 2 kortgesloten) 57600 D2 heldere, de andere off
11 ( 1 vacant ; 2 vacant ) 115200 D1 heldere, de andere off
De standaard seriële poort instellingen: 115200,8, n, 1.
Module formaat en werkwijze door de host computer te ontvangen en zenden gegevens:
Sturen gegevens:
Na de computer continu input module stuurt automatisch 16 bytes van data, compatibel Nrf905 en nRF24L01 data forwarding functie.
Data formaten:
0 1,234,567,891,011,121,314 15 16 17 18
??? ? ????????????? 0x0d 0
Beschrijving:
Of voor een paar bytes van input data, zolang de transport, op de kwestie voor de inhoud, en automatisch back up data op een '0 x0d 'en' \ 0 'twee end symbolen;
Als u voer een getal groter dan 16 bytes van data, de module zal automatisch sturen 16 bytes en automatisch invullen '0 x0d 'en' \ 0 'twee end symbolen.