BT4C

From ElectroDragon
Revision as of 05:04, 8 January 2020 by Chao (talk | contribs) (GPIO Control UUID:0xFF50)
Jump to navigation Jump to search

Specifications

  • Voltage range 2.0V-3.6V DC
  • Frequency range 2402MHz to 2480MHz programmable configuration
  • Frequency error +/- 20ppm
  • Modulation method GFSK
  • Data transmission rate: 1Mbps
  • Transmission distance: 100m
  • Output power 7.9dBm Max programmable configuration
  • Receive sensitivity -94dBm
  • Sleep current 8uA
  • Receive current 12mA
  • Emission current 20mA 7.9dBm
  • Working temperature -30 ℃-85 ℃
  • Size 18.8mm x 15.1mm
  • Antenna impedance 50ohm
  • Antenna interface PCB PCB onboard antenna

Bluetooth End

  • BT Service - UUID:0xFF11
  • Serial - UUID:0xFF12

Config UUID:0xFF20

configure the connection interval channel (service UUID: 0xFF21)

  • Executable: write
  • Configuration operation: Supports connection interval configuration of integer multiples of 10ms.
  • Directly write the corresponding data to configure. If the configuration is successful, the status response channel returns OK, otherwise it returns ERROR.
  • Query operation:
  • Send '=' to query the current configuration. The result is returned by the status reply channel.
  • Send '?' To query the currently supported configuration values. The result is returned by the status reply channel.

Rename module name channel (service UUID: 0xFF22)

  • Executable: write
  • Configuration operation: Support module name modification up to 18 characters. The restart takes effect.

configure the serial baud rate channel (service UUID: 0xFF23)

  • Executable: write
  • Configuration operation: Support the following serial port speed configuration: 9600, 19200, 38400, 57600, 115200
  • Query operation:
  • Send '=' to query the current configuration. The result is returned by the status reply channel.
  • Send '?' To query the currently supported configuration values. The result is returned by the status reply channel.

Configure the transmit power channel (service UUID: 0xFF24)

  • The transmission power is divided into ten levels, which are 0 level-19.5dbm, level 1-16dbm, level 2-13.3dbm, level 3-9.6dbm, level 4-5dbm,
  • Level 5-3.1dbm, Level 6 0dbm, Level 7 3.3dbm, Level 8 6.3dbm, Level 9 7.9dbm. The transmit power defaults to 9 levels of 7.9dbm.
  • Executable: write
  • Configuration operation: Support the following power level configuration: 0 ~ 9.
  • Query operation:
  • Send '=' to query the current configuration. The result is returned by the status reply channel.
  • Send '?' To query the currently supported configuration values. The result is returned by the status reply channel.

low power mode enable channel (service UUID: 0xFF25)

  • Executable: write
  • Configuration operation: Support normal and low power modes Operation: 0 is normal mode, 1 is low power mode.
  • Query operation:
  • Send '?' To query the currently supported configuration values. The result is returned by the status reply channel.

configure the broadcast interval channel (service UUID: 0xFF26)

  • Executable: write
  • Configuration operation: Supports all connection interval configurations with integer multiples of 10ms.
  • Directly write the corresponding data to configure. If the configuration is successful, the status response channel returns OK, otherwise it returns ERROR.
  • Query operation:
  • Send '=' to query the current configuration. The result is returned by the status reply channel.
  • Send '?' To query the currently supported configuration values. The result is returned by the status reply channel.
  • ==== status reply service channel (service UUID: 0xFF2F) ====

What you can do: notifications Function: Returns the configured operating status. The query operation returns the query results. The configuration operation returns the operation result. OK indicates that the operation was successful, and ERROR indicates that the operation failed or the configuration value is not supported.

GPIO Control UUID:0xFF50

GPIO0 output control channel (service UUID: 0xFF51)

  • Executable: write
  • Configuration operation: write 0 or 1
  • Function: GPIO port output 0 or 1

GPIO0 mode control channel (service UUID: 0xFF52)

  • Executable: write
  • Configuration operation: write 0 or 1
  • Function: Control GPIO output or input mode, 0 is input mode, 1 is output mode

GPIO0 status channel (service UUID: 0xFF53)

  • Executable operation: read
  • Function: read the status of GPIO0, 0 is low level, 1 is high level

GPIO1 output control channel (service UUID: 0xFF54)

  • Executable: write
  • Configuration operation: write 0 or 1
  • Function: GPIO1 output 0 or 1

GPIO1 mode control channel (service UUID: 0xFF55)

  • Executable: write
  • Configuration operation: write 0 or 1
  • Function: Control GPIO1 output or input mode, 0 is input mode, 1 is output mode

GPIO1 status channel (service UUID: 0xFF56)

  • Executable operation: read
  • Function: read the status of GPIO1, 0 is low level, 1 is high level

data storage channel (service UUID: 0xFF58)

  • Executable operations: read, write
  • Configuration operation: Any data can be written, and previously written data can be read
  • Function: data storage, module power-down data retention, length 18 bytes

GPIO status reply service channel (service UUID: 0xFF5F)

  • What you can do: notifications
  • Function: return GPIO port status

Device Info UUID:0x180A

1) Module MAC address (service UUID: 0x2A23) Executable operation: read Number of bytes: 8 Default: 0000xxxxxxxxxxxx (hex) Description: Module physical address 2), module model (service UUID: 0x2A24) Executable operation: read Number of bytes: 15 Default: GCBT40 Description: Module model 3) Software version (Service UUID: 0x2A28) Executable operation: read Number of bytes: 4 Default: None Note: Software version 4) Manufacturer (Service UUID: 0x2A29) Executable operation: read Number of bytes: 10 Default: BLE Module