af7812603184a68b5c42bb9e5486995b60d4bf07
Board-dat/DVA/DVA1018-dat/DVA1018-dat.md
| ... | ... | @@ -33,7 +33,7 @@ product url - |
| 33 | 33 | | x | x | x | GPIO0 | |
| 34 | 34 | | x | x | x | GPIO1 | |
| 35 | 35 | |
| 36 | -- [[EYGC4-dat]] pins |
|
| 36 | +- [[GC4-dat]] pins |
|
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | - D7_RX |
| ... | ... | @@ -53,8 +53,9 @@ product url - |
| 53 | 53 | |
| 54 | 54 | ## ref |
| 55 | 55 | |
| 56 | -- [[]] |
|
| 56 | +- [[DVA1018]] |
|
| 57 | 57 | |
| 58 | 58 | - legacy wiki page |
| 59 | 59 | |
| 60 | 60 | |
| 61 | +- [[GC]] - [[GC4]] - [[DVA1018-dat]] - [[GC4-dat]] |
|
| ... | ... | \ No newline at end of file |
Chip-cn-dat/EY-dat/EYGC4-dat/2026-02-07-17-33-34.png
| ... | ... | Binary files a/Chip-cn-dat/EY-dat/EYGC4-dat/2026-02-07-17-33-34.png and /dev/null differ |
Chip-cn-dat/EY-dat/EYGC4-dat/EYGC4-dat.md
| ... | ... | @@ -1,290 +0,0 @@ |
| 1 | -# EYGC4-dat |
|
| 2 | - |
|
| 3 | -EYGC40 is a low-power Bluetooth (BLE) module based on a cost-effective System-on-Chip (SoC). It supports Bluetooth 4.0. |
|
| 4 | - |
|
| 5 | -## Overview |
|
| 6 | - |
|
| 7 | -- Voltage range: 2.0 V to 3.6 V (typical 3.3 V) |
|
| 8 | -- Frequency range: 2402 MHz to 2480 MHz (programmable) |
|
| 9 | -- Modulation: GFSK |
|
| 10 | -- Data rate: 1 Mbps |
|
| 11 | -- Operating temperature: -30 °C to 85 °C |
|
| 12 | -- Dimensions: 18.8 mm × 15.1 mm |
|
| 13 | -- Antenna impedance: 50 Ω |
|
| 14 | -- Antenna: PCB antenna (on-board) |
|
| 15 | - |
|
| 16 | -## Applications |
|
| 17 | - |
|
| 18 | -- 2.4 GHz low-power Bluetooth systems |
|
| 19 | -- Mobile phone accessories |
|
| 20 | -- Sports and leisure equipment |
|
| 21 | -- Consumer electronics |
|
| 22 | -- Human-computer interaction devices (keyboard, mouse, remote) |
|
| 23 | -- USB transceiver dongles |
|
| 24 | -- Healthcare and medical devices |
|
| 25 | - |
|
| 26 | -## Electrical and RF Specifications |
|
| 27 | - |
|
| 28 | -| Parameter | Value | |
|
| 29 | -|---|---:| |
|
| 30 | -| Supply voltage | 2.0 V – 3.6 V (typical 3.3 V) | |
|
| 31 | -| Operating frequency | 2402 MHz – 2480 MHz (programmable) | |
|
| 32 | -| Frequency accuracy | ±20 ppm | |
|
| 33 | -| Modulation | GFSK | |
|
| 34 | -| Data rate | 1 Mbps | |
|
| 35 | -| Max TX power | 7.9 dBm (programmable) | |
|
| 36 | -| RX sensitivity | -94 dBm | |
|
| 37 | -| Sleep current | 8 μA | |
|
| 38 | -| RX current | 12 mA | |
|
| 39 | -| TX current | 20 mA (at 7.9 dBm) | |
|
| 40 | -| Typical range | 100 m (open space) | |
|
| 41 | -| Operating temperature | -30 °C – 85 °C | |
|
| 42 | -| Size | 18.8 mm × 15.1 mm | |
|
| 43 | - |
|
| 44 | -## Pin Definitions |
|
| 45 | - |
|
| 46 | -| No. | Pin | Type | Description | |
|
| 47 | -|---:|---|---|---| |
|
| 48 | -| 1 | VCC | Power | Power input, 2.0 V – 3.6 V (typ. 3.3 V) | |
|
| 49 | -| 2 | GND | Ground | Connect to GND | |
|
| 50 | -| 3 | UART_RX | Digital I/O | UART receive | |
|
| 51 | -| 4 | UART_TX | Digital I/O | UART transmit | |
|
| 52 | -| 5 | OUTPUT_IND | Digital I/O | Data output indicator: outputs a 460 μs low pulse before UART data is sent | |
|
| 53 | -| 6 | CONN_IND | Digital I/O | Connection status indicator: HIGH after reset, LOW when a BLE connection is established | |
|
| 54 | -| 7 | WAKEUP | Digital I/O | WAKE pin: in low-power mode pull this low to enable UART communication (see note) | |
|
| 55 | -| 8 | GPIO0 | Digital I/O | Configurable as input or output | |
|
| 56 | -| 9 | GPIO1 | Digital I/O | Configurable as input or output | |
|
| 57 | -| 10 | GND | Ground | Connect to GND | |
|
| 58 | -| 11 | GND | Ground | Connect to GND | |
|
| 59 | - |
|
| 60 | -## Schematic |
|
| 61 | - |
|
| 62 | - |
|
| 63 | - |
|
| 64 | - |
|
| 65 | - |
|
| 66 | - |
|
| 67 | - |
|
| 68 | - |
|
| 69 | -## Indicator & Wake Behavior |
|
| 70 | - |
|
| 71 | -- After reset, the module's `CONN_IND` pin outputs a HIGH level. When a Bluetooth connection is established, `CONN_IND` goes LOW. |
|
| 72 | -- After a connection is established, when the module receives a BLE data packet, `OUTPUT_IND` will first output a 460 μs low pulse to notify the external MCU that data will be sent, and then the module transmits the data over UART. |
|
| 73 | -- In low-power mode the external MCU must pull `WAKEUP` low for at least 10 μs to wake the BLE module before sending UART data. |
|
| 74 | - |
|
| 75 | - |
|
| 76 | -## AT Commands |
|
| 77 | - |
|
| 78 | -Notes: |
|
| 79 | -- All commands and responses use ASCII. |
|
| 80 | -- Each command must end with <CR><LF> (carriage return + line feed) unless otherwise noted. |
|
| 81 | -- If a command is accepted the module responds with the appropriate reply (OK or the requested data); otherwise it responds with: ERROR<CR><LF>. |
|
| 82 | - |
|
| 83 | -1) Mode switch (command/transparent modes) |
|
| 84 | - |
|
| 85 | -- Default after power-up: transparent (data) mode. To enter command mode after power-up, send: AT+MODE=0<CR><LF>. |
|
| 86 | - |
|
| 87 | -Examples: |
|
| 88 | -- Query current mode: Send: AT+MODE<CR> |
|
| 89 | - - Response: +MODE:<para><CR><LF> |
|
| 90 | - - para = 0 (command mode) or 1 (transparent/data mode) |
|
| 91 | -- Query supported parameters: Send: AT+MODE?<CR> |
|
| 92 | - - Response: +MODE:<para><CR><LF> |
|
| 93 | - - para = 0,1 |
|
| 94 | -- Set mode: Send: AT+MODE=<para><CR> |
|
| 95 | - - para = 0 or 1 |
|
| 96 | - - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 97 | - |
|
| 98 | -2) Advertising (scan) enable |
|
| 99 | - |
|
| 100 | -- Default: advertising enabled. |
|
| 101 | - |
|
| 102 | -Examples: |
|
| 103 | -- Query current advertising state: Send: AT+SCAN<CR> |
|
| 104 | - - Response: +SCAN:<para><CR><LF> |
|
| 105 | - - para = 0 (advertising disabled) or 1 (advertising enabled) |
|
| 106 | -- Query supported parameters: Send: AT+SCAN?<CR> |
|
| 107 | - - Response: +SCAN:0,1<CR><LF> |
|
| 108 | - - (0 = disable advertising; 1 = enable advertising). This setting only applies when the module is not connected. |
|
| 109 | -- Set advertising state: Send: AT+SCAN=<para><CR> |
|
| 110 | - - para = 0 or 1 |
|
| 111 | - - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 112 | - |
|
| 113 | -3) Connection interval (link interval) |
|
| 114 | - |
|
| 115 | -- Supported range: 10 ms to 2000 ms, in 10 ms increments. Changes take effect immediately. |
|
| 116 | - |
|
| 117 | -Examples: |
|
| 118 | -- Query current interval: Send: AT+LINKINV<CR> |
|
| 119 | - - Response: +LINKINV:<para><CR><LF> (current interval in ms) |
|
| 120 | -- Query supported parameters: Send: AT+LINKINV?<CR> |
|
| 121 | - - Response: +LINKINV:<para><CR><LF> |
|
| 122 | -- Set interval: Send: AT+LINKINV=<para><CR> |
|
| 123 | - - para = multiple of 10 (ms) |
|
| 124 | - - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 125 | - |
|
| 126 | -4) UART baud rate |
|
| 127 | - |
|
| 128 | -- Default: 9600, 8N1. |
|
| 129 | -- Supported baud rates: 9600, 19200, 38400, 57600, 115200. |
|
| 130 | - |
|
| 131 | -Examples: |
|
| 132 | -- Query current baud: Send: AT+UART<CR> |
|
| 133 | - - Response: +UART:<para><CR><LF> (current baud) |
|
| 134 | -- Query supported rates: Send: AT+UART?<CR> |
|
| 135 | - - Response: +UART:<para><CR><LF> |
|
| 136 | -- Set baud: Send: AT+UART=<para><CR> |
|
| 137 | - - para = 9600,19200,38400,57600,115200 |
|
| 138 | - - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 139 | - |
|
| 140 | -5) TX power configuration |
|
| 141 | - |
|
| 142 | -- Ten levels available: |
|
| 143 | - |
|
| 144 | -| Level | TX Power (dBm) | |
|
| 145 | -|---:|---:| |
|
| 146 | -| 0 | -19.5 dBm | |
|
| 147 | -| 1 | -16.0 dBm | |
|
| 148 | -| 2 | -13.3 dBm | |
|
| 149 | -| 3 | -9.6 dBm | |
|
| 150 | -| 4 | -5.0 dBm | |
|
| 151 | -| 5 | -3.1 dBm | |
|
| 152 | -| 6 | 0.0 dBm | |
|
| 153 | -| 7 | 3.3 dBm | |
|
| 154 | -| 8 | 6.3 dBm | |
|
| 155 | -| 9 | 7.9 dBm (default) | |
|
| 156 | - |
|
| 157 | -Examples: |
|
| 158 | -- Query current power: Send: AT+RFPW<CR> |
|
| 159 | - - Response: +RFPW:<para><CR><LF> |
|
| 160 | -- Query supported values: Send: AT+RFPW?<CR> |
|
| 161 | - - Response: +RFPW:<para><CR><LF> |
|
| 162 | -- Set power level: Send: AT+RFPW=<para><CR> |
|
| 163 | - - para = 0..9 |
|
| 164 | - - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 165 | - |
|
| 166 | -6) Module name |
|
| 167 | - |
|
| 168 | -- Default name: GCBT40. Maximum length: 18 bytes. Changes take effect after reboot. |
|
| 169 | - |
|
| 170 | -Examples: |
|
| 171 | -- Query name: Send: AT+NAME<CR> |
|
| 172 | - - Response: +NAME:<para><CR><LF> |
|
| 173 | -- Set name: Send: AT+NAME=<para><CR> |
|
| 174 | - - para = new name (up to 18 bytes) |
|
| 175 | - - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 176 | - |
|
| 177 | -7) Advertising interval |
|
| 178 | - |
|
| 179 | -- Supported values: 100, 200, 500, 1000, 2000 (ms). Range: 100 ms to 2000 ms. Changes while advertising take effect immediately. |
|
| 180 | - |
|
| 181 | -Examples: |
|
| 182 | -- Query current advertising interval: Send: AT+ADVT<CR> |
|
| 183 | - - Response: +ADVT:<para><CR><LF> |
|
| 184 | -- Query supported values: Send: AT+ADVT?<CR> |
|
| 185 | - - Response: +ADVT:<para><CR><LF> |
|
| 186 | -- Set advertising interval: Send: AT+ADVT=<para><CR> |
|
| 187 | - - para = 100,200,500,1000,2000 |
|
| 188 | - - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 189 | - |
|
| 190 | -8) Query MAC address |
|
| 191 | - |
|
| 192 | -- Send: AT+GMAC<CR> |
|
| 193 | - - Response: +GMAC:<para><CR><LF> (MAC address) |
|
| 194 | - |
|
| 195 | -9) Low-power (standby) modes |
|
| 196 | - |
|
| 197 | -- Default: normal mode. |
|
| 198 | - |
|
| 199 | -Examples: |
|
| 200 | -- Query standby mode: Send: AT+STBY<CR> |
|
| 201 | - - Response: +MODE:<para><CR><LF> |
|
| 202 | - - 0 = normal mode |
|
| 203 | - - 1 = low-power mode |
|
| 204 | -- Query supported parameters: Send: AT+STBY?<CR> |
|
| 205 | - - Response: +MODE:<para><CR><LF> (para = 0,1,2) |
|
| 206 | -- Set standby mode: Send: AT+STBY=<para><CR> |
|
| 207 | - - para = 0,1,2 |
|
| 208 | - - Mode 2 = deep sleep: after wake the module auto-resets and mode returns to the previous 0 or 1 |
|
| 209 | - - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 210 | - |
|
| 211 | -10) RF test (single-carrier transmit) |
|
| 212 | - |
|
| 213 | -- Send: AT+TEST=P,C<CR> |
|
| 214 | - - P = TX power level (0..9) |
|
| 215 | - - C = channel index; frequency = 2402 + C*2 MHz |
|
| 216 | - - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 217 | - |
|
| 218 | -11) Restore factory defaults |
|
| 219 | - |
|
| 220 | -- Send: AT+DEFA<CR> |
|
| 221 | - - Response: OK<CR><LF> |
|
| 222 | - - The module will automatically reboot after this command |
|
| 223 | - |
|
| 224 | - |
|
| 225 | -## BLE Services and Characteristics (Commands) |
|
| 226 | - |
|
| 227 | -Below is a concise, developer-friendly summary of the module's BLE services and characteristics. All UUIDs are 16-bit. |
|
| 228 | - |
|
| 229 | -### 1. Data Services (Service UUID: 0xFF10) |
|
| 230 | - |
|
| 231 | -| Characteristic | UUID | Properties | Length | Function | |
|
| 232 | -|---|---:|---|---:|---| |
|
| 233 | -| Bluetooth data channel | 0xFF11 | Write | 20 bytes | Data written here is forwarded to the UART output | |
|
| 234 | -| UART data channel | 0xFF12 | Notify | 20 bytes | Data from UART is sent to the connected mobile device via notifications | |
|
| 235 | - |
|
| 236 | -### 2. Configuration Service (Service UUID: 0xFF20) |
|
| 237 | - |
|
| 238 | -| Characteristic | UUID | Properties | Function / Notes | |
|
| 239 | -|---|---:|---|---| |
|
| 240 | -| Connection interval config | 0xFF21 | Write | Configure connection interval; supported in multiples of 10 ms. Write the corresponding value to set. On success the status channel returns OK; otherwise ERROR. Query: send '=' to read current config (reply via status channel). Send '?' to query supported values. | |
|
| 241 | -| Rename module | 0xFF22 | Write | Set module name (max 18 characters). Reboot required to apply. | |
|
| 242 | -| UART baud rate config | 0xFF23 | Write | Supported baud rates: 9600, 19200, 38400, 57600, 115200. Query: send '=' to read current value; send '?' to read supported values. | |
|
| 243 | -| TX power config | 0xFF24 | Write | Power levels 0–9 (see table below). Default is level 9 (7.9 dBm). Query: '=' current, '?' supported. | |
|
| 244 | -| Low-power mode enable | 0xFF25 | Write | 0 = normal mode, 1 = low-power mode. Query supported values with '?'. | |
|
| 245 | -| Advertising/connection interval | 0xFF26 | Write | Supports multiples of 10 ms. Write value to set. Query: '=' current, '?' supported. | |
|
| 246 | -| Status reply (operation result) | 0xFF2F | Notify | Returns status for configuration operations. Query replies return the requested data; config operations return OK or ERROR. | |
|
| 247 | - |
|
| 248 | -TX power levels mapping (level -> dBm): |
|
| 249 | - |
|
| 250 | -| Level | TX Power (dBm) | |
|
| 251 | -|---:|---:| |
|
| 252 | -| 0 | -19.5 dBm | |
|
| 253 | -| 1 | -16.0 dBm | |
|
| 254 | -| 2 | -13.3 dBm | |
|
| 255 | -| 3 | -9.6 dBm | |
|
| 256 | -| 4 | -5.0 dBm | |
|
| 257 | -| 5 | -3.1 dBm | |
|
| 258 | -| 6 | 0.0 dBm | |
|
| 259 | -| 7 | 3.3 dBm | |
|
| 260 | -| 8 | 6.3 dBm | |
|
| 261 | -| 9 | 7.9 dBm (default) | |
|
| 262 | - |
|
| 263 | -### 3. GPIO Control Service (Service UUID: 0xFF50) |
|
| 264 | - |
|
| 265 | -| Characteristic | UUID | Properties | Function | |
|
| 266 | -|---|---:|---|---| |
|
| 267 | -| GPIO0 output control | 0xFF51 | Write | Write 0 or 1 to set GPIO0 output | |
|
| 268 | -| GPIO0 mode control | 0xFF52 | Write | 0 = input mode, 1 = output mode | |
|
| 269 | -| GPIO0 status | 0xFF53 | Read | Read GPIO0 state: 0 = low, 1 = high | |
|
| 270 | -| GPIO1 output control | 0xFF54 | Write | Write 0 or 1 to set GPIO1 output | |
|
| 271 | -| GPIO1 mode control | 0xFF55 | Write | 0 = input mode, 1 = output mode | |
|
| 272 | -| GPIO1 status | 0xFF56 | Read | Read GPIO1 state: 0 = low, 1 = high | |
|
| 273 | -| Data storage | 0xFF58 | Read/Write | Read or write up to 18 bytes for persistent storage (retained after power loss) | |
|
| 274 | -| GPIO status notification | 0xFF5F | Notify | Notifies external device of GPIO status changes | |
|
| 275 | - |
|
| 276 | -## 4. Device Information Service (Service UUID: 0x180A) |
|
| 277 | - |
|
| 278 | -| Characteristic | UUID | Properties | Length | Default / Notes | |
|
| 279 | -|---|---:|---|---:|---| |
|
| 280 | -| Module MAC address | 0x2A23 | Read | 8 bytes | Default: 0000xxxxxxxxxxxx (hex); physical address of the module | |
|
| 281 | -| Module model | 0x2A24 | Read | 15 bytes | Default: EYGC40 | |
|
| 282 | -| Software version | 0x2A28 | Read | 4 bytes | Software/firmware version | |
|
| 283 | -| Manufacturer | 0x2A29 | Read | 10 bytes | Default: "BLE Module" | |
|
| 284 | - |
|
| 285 | - |
|
| 286 | -## Notes and Usage Tips |
|
| 287 | - |
|
| 288 | -- Use the `OUTPUT_IND` pulse to synchronize reads from UART if the host MCU sleeps or polls. |
|
| 289 | -- Before sending UART data while the module is in low-power mode, pull `WAKEUP` low for at least 10 μs. |
|
| 290 | -- After changing configuration values that require a reboot (for example the module name), cycle power or issue a software reboot to apply changes. |
|
| ... | ... | \ No newline at end of file |
Chip-cn-dat/GC-dat/GC-dat.md
| ... | ... | @@ -0,0 +1,5 @@ |
| 1 | + |
|
| 2 | + |
|
| 3 | +# GC-dat |
|
| 4 | + |
|
| 5 | +- [[GC4-dat]] - [[GC-dat]] |
|
| ... | ... | \ No newline at end of file |
Chip-cn-dat/GC-dat/GC4-dat/2026-02-07-17-33-34.png
| ... | ... | Binary files /dev/null and b/Chip-cn-dat/GC-dat/GC4-dat/2026-02-07-17-33-34.png differ |
Chip-cn-dat/GC-dat/GC4-dat/GC4-dat.md
| ... | ... | @@ -0,0 +1,299 @@ |
| 1 | +# GC4-dat |
|
| 2 | + |
|
| 3 | +GC40 is a low-power Bluetooth (BLE) module based on a cost-effective System-on-Chip (SoC). It supports Bluetooth 4.0. |
|
| 4 | + |
|
| 5 | +## Overview |
|
| 6 | + |
|
| 7 | +- Voltage range: 2.0 V to 3.6 V (typical 3.3 V) |
|
| 8 | +- Frequency range: 2402 MHz to 2480 MHz (programmable) |
|
| 9 | +- Modulation: GFSK |
|
| 10 | +- Data rate: 1 Mbps |
|
| 11 | +- Operating temperature: -30 °C to 85 °C |
|
| 12 | +- Dimensions: 18.8 mm × 15.1 mm |
|
| 13 | +- Antenna impedance: 50 Ω |
|
| 14 | +- Antenna: PCB antenna (on-board) |
|
| 15 | + |
|
| 16 | +## Applications |
|
| 17 | + |
|
| 18 | +- 2.4 GHz low-power Bluetooth systems |
|
| 19 | +- Mobile phone accessories |
|
| 20 | +- Sports and leisure equipment |
|
| 21 | +- Consumer electronics |
|
| 22 | +- Human-computer interaction devices (keyboard, mouse, remote) |
|
| 23 | +- USB transceiver dongles |
|
| 24 | +- Healthcare and medical devices |
|
| 25 | + |
|
| 26 | +## Electrical and RF Specifications |
|
| 27 | + |
|
| 28 | +| Parameter | Value | |
|
| 29 | +|---|---:| |
|
| 30 | +| Supply voltage | 2.0 V – 3.6 V (typical 3.3 V) | |
|
| 31 | +| Operating frequency | 2402 MHz – 2480 MHz (programmable) | |
|
| 32 | +| Frequency accuracy | ±20 ppm | |
|
| 33 | +| Modulation | GFSK | |
|
| 34 | +| Data rate | 1 Mbps | |
|
| 35 | +| Max TX power | 7.9 dBm (programmable) | |
|
| 36 | +| RX sensitivity | -94 dBm | |
|
| 37 | +| Sleep current | 8 μA | |
|
| 38 | +| RX current | 12 mA | |
|
| 39 | +| TX current | 20 mA (at 7.9 dBm) | |
|
| 40 | +| Typical range | 100 m (open space) | |
|
| 41 | +| Operating temperature | -30 °C – 85 °C | |
|
| 42 | +| Size | 18.8 mm × 15.1 mm | |
|
| 43 | + |
|
| 44 | +## Pin Definitions |
|
| 45 | + |
|
| 46 | +| No. | Pin | Type | Description | |
|
| 47 | +|---:|---|---|---| |
|
| 48 | +| 1 | VCC | Power | Power input, 2.0 V – 3.6 V (typ. 3.3 V) | |
|
| 49 | +| 2 | GND | Ground | Connect to GND | |
|
| 50 | +| 3 | UART_RX | Digital I/O | UART receive | |
|
| 51 | +| 4 | UART_TX | Digital I/O | UART transmit | |
|
| 52 | +| 5 | OUTPUT_IND | Digital I/O | Data output indicator: outputs a 460 μs low pulse before UART data is sent | |
|
| 53 | +| 6 | CONN_IND | Digital I/O | Connection status indicator: HIGH after reset, LOW when a BLE connection is established | |
|
| 54 | +| 7 | WAKEUP | Digital I/O | WAKE pin: in low-power mode pull this low to enable UART communication (see note) | |
|
| 55 | +| 8 | GPIO0 | Digital I/O | Configurable as input or output | |
|
| 56 | +| 9 | GPIO1 | Digital I/O | Configurable as input or output | |
|
| 57 | +| 10 | GND | Ground | Connect to GND | |
|
| 58 | +| 11 | GND | Ground | Connect to GND | |
|
| 59 | + |
|
| 60 | +## Schematic |
|
| 61 | + |
|
| 62 | + |
|
| 63 | + |
|
| 64 | + |
|
| 65 | + |
|
| 66 | + |
|
| 67 | + |
|
| 68 | + |
|
| 69 | +## Indicator & Wake Behavior |
|
| 70 | + |
|
| 71 | +- After reset, the module's `CONN_IND` pin outputs a HIGH level. When a Bluetooth connection is established, `CONN_IND` goes LOW. |
|
| 72 | +- After a connection is established, when the module receives a BLE data packet, `OUTPUT_IND` will first output a 460 μs low pulse to notify the external MCU that data will be sent, and then the module transmits the data over UART. |
|
| 73 | +- In low-power mode the external MCU must pull `WAKEUP` low for at least 10 μs to wake the BLE module before sending UART data. |
|
| 74 | + |
|
| 75 | + |
|
| 76 | +## AT Commands |
|
| 77 | + |
|
| 78 | +Notes: |
|
| 79 | +- All commands and responses use ASCII. |
|
| 80 | +- Each command must end with <CR><LF> (carriage return + line feed) unless otherwise noted. |
|
| 81 | +- If a command is accepted the module responds with the appropriate reply (OK or the requested data); otherwise it responds with: ERROR<CR><LF>. |
|
| 82 | + |
|
| 83 | +1) Mode switch (command/transparent modes) |
|
| 84 | + |
|
| 85 | +- Default after power-up: transparent (data) mode. To enter command mode after power-up, send: AT+MODE=0<CR><LF>. |
|
| 86 | + |
|
| 87 | +Examples: |
|
| 88 | +- Query current mode: Send: AT+MODE<CR> |
|
| 89 | + - Response: +MODE:<para><CR><LF> |
|
| 90 | + - para = 0 (command mode) or 1 (transparent/data mode) |
|
| 91 | +- Query supported parameters: Send: AT+MODE?<CR> |
|
| 92 | + - Response: +MODE:<para><CR><LF> |
|
| 93 | + - para = 0,1 |
|
| 94 | +- Set mode: Send: AT+MODE=<para><CR> |
|
| 95 | + - para = 0 or 1 |
|
| 96 | + - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 97 | + |
|
| 98 | +2) Advertising (scan) enable |
|
| 99 | + |
|
| 100 | +- Default: advertising enabled. |
|
| 101 | + |
|
| 102 | +Examples: |
|
| 103 | +- Query current advertising state: Send: AT+SCAN<CR> |
|
| 104 | + - Response: +SCAN:<para><CR><LF> |
|
| 105 | + - para = 0 (advertising disabled) or 1 (advertising enabled) |
|
| 106 | +- Query supported parameters: Send: AT+SCAN?<CR> |
|
| 107 | + - Response: +SCAN:0,1<CR><LF> |
|
| 108 | + - (0 = disable advertising; 1 = enable advertising). This setting only applies when the module is not connected. |
|
| 109 | +- Set advertising state: Send: AT+SCAN=<para><CR> |
|
| 110 | + - para = 0 or 1 |
|
| 111 | + - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 112 | + |
|
| 113 | +3) Connection interval (link interval) |
|
| 114 | + |
|
| 115 | +- Supported range: 10 ms to 2000 ms, in 10 ms increments. Changes take effect immediately. |
|
| 116 | + |
|
| 117 | +Examples: |
|
| 118 | +- Query current interval: Send: AT+LINKINV<CR> |
|
| 119 | + - Response: +LINKINV:<para><CR><LF> (current interval in ms) |
|
| 120 | +- Query supported parameters: Send: AT+LINKINV?<CR> |
|
| 121 | + - Response: +LINKINV:<para><CR><LF> |
|
| 122 | +- Set interval: Send: AT+LINKINV=<para><CR> |
|
| 123 | + - para = multiple of 10 (ms) |
|
| 124 | + - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 125 | + |
|
| 126 | +4) UART baud rate |
|
| 127 | + |
|
| 128 | +- Default: 9600, 8N1. |
|
| 129 | +- Supported baud rates: 9600, 19200, 38400, 57600, 115200. |
|
| 130 | + |
|
| 131 | +Examples: |
|
| 132 | +- Query current baud: Send: AT+UART<CR> |
|
| 133 | + - Response: +UART:<para><CR><LF> (current baud) |
|
| 134 | +- Query supported rates: Send: AT+UART?<CR> |
|
| 135 | + - Response: +UART:<para><CR><LF> |
|
| 136 | +- Set baud: Send: AT+UART=<para><CR> |
|
| 137 | + - para = 9600,19200,38400,57600,115200 |
|
| 138 | + - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 139 | + |
|
| 140 | +5) TX power configuration |
|
| 141 | + |
|
| 142 | +- Ten levels available: |
|
| 143 | + |
|
| 144 | +| Level | TX Power (dBm) | |
|
| 145 | +|---:|---:| |
|
| 146 | +| 0 | -19.5 dBm | |
|
| 147 | +| 1 | -16.0 dBm | |
|
| 148 | +| 2 | -13.3 dBm | |
|
| 149 | +| 3 | -9.6 dBm | |
|
| 150 | +| 4 | -5.0 dBm | |
|
| 151 | +| 5 | -3.1 dBm | |
|
| 152 | +| 6 | 0.0 dBm | |
|
| 153 | +| 7 | 3.3 dBm | |
|
| 154 | +| 8 | 6.3 dBm | |
|
| 155 | +| 9 | 7.9 dBm (default) | |
|
| 156 | + |
|
| 157 | +Examples: |
|
| 158 | +- Query current power: Send: AT+RFPW<CR> |
|
| 159 | + - Response: +RFPW:<para><CR><LF> |
|
| 160 | +- Query supported values: Send: AT+RFPW?<CR> |
|
| 161 | + - Response: +RFPW:<para><CR><LF> |
|
| 162 | +- Set power level: Send: AT+RFPW=<para><CR> |
|
| 163 | + - para = 0..9 |
|
| 164 | + - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 165 | + |
|
| 166 | +6) Module name |
|
| 167 | + |
|
| 168 | +- Default name: GCBT40. Maximum length: 18 bytes. Changes take effect after reboot. |
|
| 169 | + |
|
| 170 | +Examples: |
|
| 171 | +- Query name: Send: AT+NAME<CR> |
|
| 172 | + - Response: +NAME:<para><CR><LF> |
|
| 173 | +- Set name: Send: AT+NAME=<para><CR> |
|
| 174 | + - para = new name (up to 18 bytes) |
|
| 175 | + - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 176 | + |
|
| 177 | +7) Advertising interval |
|
| 178 | + |
|
| 179 | +- Supported values: 100, 200, 500, 1000, 2000 (ms). Range: 100 ms to 2000 ms. Changes while advertising take effect immediately. |
|
| 180 | + |
|
| 181 | +Examples: |
|
| 182 | +- Query current advertising interval: Send: AT+ADVT<CR> |
|
| 183 | + - Response: +ADVT:<para><CR><LF> |
|
| 184 | +- Query supported values: Send: AT+ADVT?<CR> |
|
| 185 | + - Response: +ADVT:<para><CR><LF> |
|
| 186 | +- Set advertising interval: Send: AT+ADVT=<para><CR> |
|
| 187 | + - para = 100,200,500,1000,2000 |
|
| 188 | + - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 189 | + |
|
| 190 | +8) Query MAC address |
|
| 191 | + |
|
| 192 | +- Send: AT+GMAC<CR> |
|
| 193 | + - Response: +GMAC:<para><CR><LF> (MAC address) |
|
| 194 | + |
|
| 195 | +9) Low-power (standby) modes |
|
| 196 | + |
|
| 197 | +- Default: normal mode. |
|
| 198 | + |
|
| 199 | +Examples: |
|
| 200 | +- Query standby mode: Send: AT+STBY<CR> |
|
| 201 | + - Response: +MODE:<para><CR><LF> |
|
| 202 | + - 0 = normal mode |
|
| 203 | + - 1 = low-power mode |
|
| 204 | +- Query supported parameters: Send: AT+STBY?<CR> |
|
| 205 | + - Response: +MODE:<para><CR><LF> (para = 0,1,2) |
|
| 206 | +- Set standby mode: Send: AT+STBY=<para><CR> |
|
| 207 | + - para = 0,1,2 |
|
| 208 | + - Mode 2 = deep sleep: after wake the module auto-resets and mode returns to the previous 0 or 1 |
|
| 209 | + - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 210 | + |
|
| 211 | +10) RF test (single-carrier transmit) |
|
| 212 | + |
|
| 213 | +- Send: AT+TEST=P,C<CR> |
|
| 214 | + - P = TX power level (0..9) |
|
| 215 | + - C = channel index; frequency = 2402 + C*2 MHz |
|
| 216 | + - OK<CR><LF> on success; ERROR<CR><LF> on failure |
|
| 217 | + |
|
| 218 | +11) Restore factory defaults |
|
| 219 | + |
|
| 220 | +- Send: AT+DEFA<CR> |
|
| 221 | + - Response: OK<CR><LF> |
|
| 222 | + - The module will automatically reboot after this command |
|
| 223 | + |
|
| 224 | + |
|
| 225 | +## BLE Services and Characteristics (Commands) |
|
| 226 | + |
|
| 227 | +Below is a concise, developer-friendly summary of the module's BLE services and characteristics. All UUIDs are 16-bit. |
|
| 228 | + |
|
| 229 | +### 1. Data Services (Service UUID: 0xFF10) |
|
| 230 | + |
|
| 231 | +| Characteristic | UUID | Properties | Length | Function | |
|
| 232 | +|---|---:|---|---:|---| |
|
| 233 | +| Bluetooth data channel | 0xFF11 | Write | 20 bytes | Data written here is forwarded to the UART output | |
|
| 234 | +| UART data channel | 0xFF12 | Notify | 20 bytes | Data from UART is sent to the connected mobile device via notifications | |
|
| 235 | + |
|
| 236 | +### 2. Configuration Service (Service UUID: 0xFF20) |
|
| 237 | + |
|
| 238 | +| Characteristic | UUID | Properties | Function / Notes | |
|
| 239 | +|---|---:|---|---| |
|
| 240 | +| Connection interval config | 0xFF21 | Write | Configure connection interval; supported in multiples of 10 ms. Write the corresponding value to set. On success the status channel returns OK; otherwise ERROR. Query: send '=' to read current config (reply via status channel). Send '?' to query supported values. | |
|
| 241 | +| Rename module | 0xFF22 | Write | Set module name (max 18 characters). Reboot required to apply. | |
|
| 242 | +| UART baud rate config | 0xFF23 | Write | Supported baud rates: 9600, 19200, 38400, 57600, 115200. Query: send '=' to read current value; send '?' to read supported values. | |
|
| 243 | +| TX power config | 0xFF24 | Write | Power levels 0–9 (see table below). Default is level 9 (7.9 dBm). Query: '=' current, '?' supported. | |
|
| 244 | +| Low-power mode enable | 0xFF25 | Write | 0 = normal mode, 1 = low-power mode. Query supported values with '?'. | |
|
| 245 | +| Advertising/connection interval | 0xFF26 | Write | Supports multiples of 10 ms. Write value to set. Query: '=' current, '?' supported. | |
|
| 246 | +| Status reply (operation result) | 0xFF2F | Notify | Returns status for configuration operations. Query replies return the requested data; config operations return OK or ERROR. | |
|
| 247 | + |
|
| 248 | +TX power levels mapping (level -> dBm): |
|
| 249 | + |
|
| 250 | +| Level | TX Power (dBm) | |
|
| 251 | +|---:|---:| |
|
| 252 | +| 0 | -19.5 dBm | |
|
| 253 | +| 1 | -16.0 dBm | |
|
| 254 | +| 2 | -13.3 dBm | |
|
| 255 | +| 3 | -9.6 dBm | |
|
| 256 | +| 4 | -5.0 dBm | |
|
| 257 | +| 5 | -3.1 dBm | |
|
| 258 | +| 6 | 0.0 dBm | |
|
| 259 | +| 7 | 3.3 dBm | |
|
| 260 | +| 8 | 6.3 dBm | |
|
| 261 | +| 9 | 7.9 dBm (default) | |
|
| 262 | + |
|
| 263 | +### 3. GPIO Control Service (Service UUID: 0xFF50) |
|
| 264 | + |
|
| 265 | +| Characteristic | UUID | Properties | Function | |
|
| 266 | +|---|---:|---|---| |
|
| 267 | +| GPIO0 output control | 0xFF51 | Write | Write 0 or 1 to set GPIO0 output | |
|
| 268 | +| GPIO0 mode control | 0xFF52 | Write | 0 = input mode, 1 = output mode | |
|
| 269 | +| GPIO0 status | 0xFF53 | Read | Read GPIO0 state: 0 = low, 1 = high | |
|
| 270 | +| GPIO1 output control | 0xFF54 | Write | Write 0 or 1 to set GPIO1 output | |
|
| 271 | +| GPIO1 mode control | 0xFF55 | Write | 0 = input mode, 1 = output mode | |
|
| 272 | +| GPIO1 status | 0xFF56 | Read | Read GPIO1 state: 0 = low, 1 = high | |
|
| 273 | +| Data storage | 0xFF58 | Read/Write | Read or write up to 18 bytes for persistent storage (retained after power loss) | |
|
| 274 | +| GPIO status notification | 0xFF5F | Notify | Notifies external device of GPIO status changes | |
|
| 275 | + |
|
| 276 | +## 4. Device Information Service (Service UUID: 0x180A) |
|
| 277 | + |
|
| 278 | +| Characteristic | UUID | Properties | Length | Default / Notes | |
|
| 279 | +|---|---:|---|---:|---| |
|
| 280 | +| Module MAC address | 0x2A23 | Read | 8 bytes | Default: 0000xxxxxxxxxxxx (hex); physical address of the module | |
|
| 281 | +| Module model | 0x2A24 | Read | 15 bytes | Default: GC40 | |
|
| 282 | +| Software version | 0x2A28 | Read | 4 bytes | Software/firmware version | |
|
| 283 | +| Manufacturer | 0x2A29 | Read | 10 bytes | Default: "BLE Module" | |
|
| 284 | + |
|
| 285 | + |
|
| 286 | +## Notes and Usage Tips |
|
| 287 | + |
|
| 288 | +- Use the `OUTPUT_IND` pulse to synchronize reads from UART if the host MCU sleeps or polls. |
|
| 289 | +- Before sending UART data while the module is in low-power mode, pull `WAKEUP` low for at least 10 μs. |
|
| 290 | +- After changing configuration values that require a reboot (for example the module name), cycle power or issue a software reboot to apply changes. |
|
| 291 | + |
|
| 292 | + |
|
| 293 | + |
|
| 294 | + |
|
| 295 | +## ref |
|
| 296 | + |
|
| 297 | +- [[GC-dat]] |
|
| 298 | + |
|
| 299 | +- [[GC4]] |
|
| ... | ... | \ No newline at end of file |
Chip-dat/TI-dat/TI-Network-dat/TI-network-dat.md
| ... | ... | @@ -11,6 +11,7 @@ |
| 11 | 11 | |
| 12 | 12 | ## 2.4Ghz |
| 13 | 13 | |
| 14 | +- [[CC2652-dat]] - [[szrfstar]] - [[TI-RF-dat]] - [[TI-dat]] - [[TI-network-dat]] |
|
| 14 | 15 | |
| 15 | 16 | CC2500 |
| 16 | 17 |
Chip-dat/TI-dat/TI-dat.md
| ... | ... | @@ -31,6 +31,7 @@ |
| 31 | 31 | |
| 32 | 32 | - [[ULN2803-dat]] |
| 33 | 33 | |
| 34 | +- [[TI-network-dat]] |
|
| 34 | 35 | |
| 35 | 36 | - [[USB-ESD-dat]] - TPD2EUSB30, TPD2EUSB30A, TPD4EUSB30 |
| 36 | 37 |