Elsat iNode Buku Petunjuk - Halaman 12
Jelajahi secara online atau unduh pdf Buku Petunjuk untuk Alat Ukur Elsat iNode. Elsat iNode 15 halaman. Serial transceiver usb
iNode Serial Transceiver USB – instruction manual
3. The UART GATT service and characteristics
UART_SERVICE (this service contains characteristics for UART control, configuration and data
transfer):
uuid: 0xc47f18cc8f71452ebce5893097437909
UART_DATA (characteristic intended to data transfer through the UART – only write function;
data received from UART is sent using notification or indications if enabled earlier in
UART_DATA_TRANSFER_CLIENT_CONFIG):
uuid: 0xc47f18cd8f71452ebce5893097437909
UART_DATA_TRANSFER_CLIENT_CONFIG (client config characteristic intended to enable
and disable notifications or indications; always 2 bytes are written or read-out):
uuid: 0x2902
This two bytes make 16 bit word, which has following mean:
gatt_client_config_none
gatt_client_config_notification = 0x0001 - > only notifications
gatt_client_config_indication
UART_CONTROL (characteristic intended to UART configuration; always 9 bytes are written or
read-out):
uuid: 0xc47f18ce8f71452ebce5893097437909
uint16 uart_baudrate -> the UART baud rate; default value 921,600 bps
#define UART_RATE_2K4
#define UART_RATE_9K6
#define UART_RATE_19K2
#define UART_RATE_38K4
#define UART_RATE_57K6
#define UART_RATE_115K2 (0x01d9)
#define UART_RATE_230K4 (0x03af)
#define UART_RATE_460K8 (0x0760)
#define UART_RATE_921K6 (0x0ebf)
#define UART_RATE_1382K4 (0x161f)
#define UART_RATE_1843K2 (0x1d7e)
#define UART_RATE_2764K8 (0x2c3d)
#define UART_RATE_3686K4 (0x3afc)
uint16 uart_flags -> UART frame; default 0 – do not change;
uint8 uart_eol -> the character that causes the sending data: Specifies what character received by the
UART will send the data via BLE.; default value: 0x0d;
uint16 uart_tout -> if UART doesn't receive a new character in this time the BLE frame will be sent
with all characters received earlier.
uint16 uart_mode -> default mode:UART_SERVICE_MODE_IDLE the module waits for the HCI
frame on UART. It only broadcasts BLE advertisement frames for 60 seconds after pressing the
button twice. In UART_SERVICE_MODE_SLOW_ADVERTISING, which in iNode Setup.exe is
called as standby mode the module broadcasts BLE advertisement frames all the time. In this mode
may not be possible to send BLE scan HCI command.
#define UART_SERVICE_MODE_IDLE
#define UART_SERVICE_MODE_SLOW_ADVERTISING
= 0x0000 -> no notification & indication
= 0x0002 -> only indications
(0x000a)
(0x0028)
(0x004e)
(0x009e)
(0x00eb)
(0)
(1)
ELSAT s.c.
page 12