User's Manual

Chengdu Ebyte Electronic Technology Co., Ltd E104-BT05 User Manual
Copyright ©20122019Chengdu Ebyte Electronic Technology Co.,Ltd
24
5.46 Read/Set PWM3 duty cycle
Command
Respond
Parameter
RequestAT+PWM3?
+OK=[para]
Para: 0~100% ASCII
0 close PWM
SetAT+PWM3=[para]
+OKsuccess
+ERR=[NUM]
Description: Be effective at once, save when power off.
5.47 Request/Set PWM output cycle
Command
Respond
Parameter
RequestAT+PWMFRQ?
+OK=[para]
Para: 5000T~25T ASCII
T=0.01ms
Example:
Set 5 ms cycle
AT+PWMFRQ=500
SetAT+PWMFRQ=[para]
+OKsuccess
+ERR=[NUM]error
Description:
1. Be effective at once, save when power off.
2. 4 PWM output frequencies are identical.
PWM Period calculating method description:
Assuming that the required target cycle is t ,and the input parameter is para (i.e. "AT+PWMFRQ=para"), then
t=T*para,means para=t/T.
For example, the setting cycle is 5ms: then para=5ms/0.01ms=500.
6. UUID description
Channel name
UUID
HANDLE
Property
Description
BLE DATA BUFF
0xFFF1
default
33
Read only,
inform
This channel is for receiving UART data and it returns to Bluetooth
master by informing. The biggest data length for a single packet is 20
bytes.
NOTE: If IPHONE or Android mobile phone is set as the master, the
Notification function should be activated for receiving module data.
CENTER DATA
BUFF
0xFFF2
default
37
Read, write
This channel is for master to transmit data.
The biggest data length for a single packet is 20 Bytes
The transmitted data will be outputted via serial port.
BLE DATA
CONFIG
0xFFF3
default
40
Read, write
inform
Air Configuration Channel