Bluetooth Transceiver Module: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Alex (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Alex (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 11: | Zeile 11: | ||
*Master or Slave | *Master or Slave | ||
{|border="1" cellpadding="20" cellspacing="0" | {|border="1" cellpadding="20" cellspacing="0" | ||
! | !width="4%" | | ||
!Command | !width="25%"|Command | ||
!Parameters | !width="46% |Parameters | ||
!Response | !width="25%"|Response | ||
|- | |- | ||
|set | |set | ||
Zeile 34: | Zeile 35: | ||
{|border="1" cellpadding="20" cellspacing="0" | {|border="1" cellpadding="20" cellspacing="0" | ||
! | !width="4%" | | ||
!Command | !width="25%"|Command | ||
!Parameters | !width="46% |Parameters | ||
!Response | !width="25%"|Response | ||
|- | |- | ||
|set | |set | ||
|AT+UART=(rate),(num1),(num2) | |AT+UART=(rate),(num1),(num2) | ||
|rate: 4800, 9600, 19200, 38400, 57600,115200, 230400, 460800, 921600, 1382400<br> | |rate:<br> | ||
num1: Stop bits. “0” for 1 stop bit; and “1” for 2 stop bit<br> | 4800, 9600, 19200, 38400, 57600,115200, 230400, 460800, 921600, 1382400<br> | ||
num2: Parity. “0” for none; “1” for odd parity; “2” for even parity | num1:<br> | ||
Stop bits. “0” for 1 stop bit; and “1” for 2 stop bit<br> | |||
num2:<br> | |||
Parity. “0” for none; “1” for odd parity; “2” for even parity | |||
|OK | |OK | ||
|- | |- |
Version vom 6. November 2011, 21:17 Uhr
Gibt es bei ebay unter dem Namen:
- Wireless Bluetooth Transceiver Module RS232 / TTL
zu Preis von etwa 5€
Basic AT commands
- Master or Slave
Command | Parameters | Response | |
---|---|---|---|
set | AT+ROLE=(num) | num: "0" for slave, "1" for master | OK |
query | AT+ROLE? | NULL | +ROLE=num |
- UART
Command | Parameters | Response | |
---|---|---|---|
set | AT+UART=(rate),(num1),(num2) | rate:4800, 9600, 19200, 38400, 57600,115200, 230400, 460800, 921600, 1382400 num1: Stop bits. “0” for 1 stop bit; and “1” for 2 stop bit num2: Parity. “0” for none; “1” for odd parity; “2” for even parity |
OK |
query | AT+ROLE? | NULL | +UART=(rate),(num1),(num2) |