-
-
Notifications
You must be signed in to change notification settings - Fork 18
Supported commands and event send from module
Tomáš Kováčik edited this page Sep 22, 2020
·
4 revisions
Serial command | Parameter Description | Instruction Description Function | Responce |
---|---|---|---|
BT+PR\r\n | Pairing | ||
BT+AC\r\n | The last paired device connected (connect to last device?) | ||
BT+DC\r\n | Disconect | ||
BT+CA\r\n | Answare the call | ||
BT+CJ\r\n | To reject a call | ||
BT+CE\r\n | Hang up the phone | ||
BT+CR\r\n | Last number redial | ||
COM+PP\r\n | Music Play / Pause | ||
COM+PN\r\n | next track/ FM next station | ||
COM+PV\r\n | previous piece/ FM On one | ||
COM+VP\r\n | Volume Up | ||
COM+VD\r\n | Volume down | ||
COM+VOLx\r\n | x: 0x00 - 0xAF | Set the volume | correct: VOLx\n / error: ERR\n |
COM+MVOL\r\n | Query current volume | correct: VOLx\n (x:0-15) / error: ERR\n | |
COM+PWD\r\n | Shutdown | ||
COM+PWDS\r\n | Soft-Off | ||
COM+PWOS\r\n | Soft Power | ||
COM+MC\r\n | Switching to the next operating mode | ||
COM+MBT\r\n | Bluetooth mode | ||
COM+MSD\r\n | TF/SDcard Mode (if available) | ||
COM+MAX\r\n | AUX Mode (if available) | ||
COM+MFM\r\n | FM Mode (if available) | ||
COM+MUD\r\n | USB Disk mode (if available) | ||
COM+IQ\r\n | Query the current mode | ||
COM+MPM0\r\n | Repeat All Tracks (TF/USB disk mode) | correct: PLAY_ALL\n / error: ERR\n | |
COM+MPM1\r\n | Single loop (TF/USB disk mode) | correct: PLAY_ONE\n / error: ERR\n | |
COM+MPMC\r\n | The current inquiry MP3 Play Mode (TF/USB disk mode) | correct: PLAY_ALL\n / PLAY_ONE\n | |
COM+SMPXXXX\r\n | Play selections (TF/USB disk mode) | XXXX: 0001-9999, 0001 Represents the 1 first | |
COM+MRMP3\r\n | Query currently playing MP3 Song number | correct: music_mun = x\n , x: 1-9999 / error: ERR\n | |
COM+MMMP3\r\n | Query current mode MP3 The number of songs (TF/USB disk mode) | correct: MMMPx\n,x: 1-1999 / error: ERR\n | |
COM+MRUSB\r\n | Query currently playing USB Disc song number | correct: music_mun = x\n,x: 1-1999 / error: ERR\n | |
FM+SC\r\n | FM start station search | ||
FM+ST\r\n | FM Stop station search | ||
FM+GF\r\n | Get the current radio frequency | FM_FQ = 875 ~ 1081 | |
COM+SFMXX\r\n | Select FM preset 01-99 | correct: FM_FQ = 998\n / error: ERR\n | |
COM+SETFMXXXX\r\n | XXX : 875 to 1081 | set up FM frequency to XXXX (0875-1080) | correct: OK\n / error: ERR\n |
COM+MRFM\r\n | Query current FM frequency (FM Mode) | correct: FM_FQ = xxx\n. xxx: 0875-1081(87.5-108.1Mhz) / error: ERR\n | |
COM+MMFM\r\n | Query currently selected preset (FM Mode) | correct: MFMxx \ n,xx: 01-99 / error: ERR\n | |
COM+MFFMXX\r\n | Inquire FM of xx No.(of preset??) A frequency corresponding to (FM Mode) | correct: FM_FQ = xxx\n, error: ERR\n |
tested on 1.2 board almost all works, check notes below table
Serial command | Parameter Description | Instruction Description Function | Responce |
---|---|---|---|
COM+SNAME+XXX\r\n | XXX: New name, max 16chars | Modify the bluetooth name, take efect after restart of chip | correct: OK\n / error: ERR\n |
COM+SPIN+YYY\r\n | YYYY: New pin,max 16chars | Modify Bluetooth pairing secret code | correct: OK\n / error: ERR\n |
COM+TONExx\r\n | XX: ON or OFF | enable/disable info voice, really it just set volume to really low, can hear with high volume | correct: OK\n / error: ERR\n |
COM+MTONE\r\n | Query voice state | TONEON\r\n : voice info enabled, TONEOFF\r\n: voice info off | |
COM+GOBACKxx\r\n | xx : " ON "Even back open; " OFF "Off time even support,power-down to save power is turned back on by default even (???) | Power-on time even setting | |
COM+MGOBACK\r\n | Query back to even the set | ON: GOBACKON\r\n; shut down: GOBACKOFF\r\n | |
COM+CALLxx\r\n | xx : " ON "Open calls; xx : " OFF "Close call function enabled by default to support power-down save function calls | Call feature set | |
COM+MCALL\r\n | Query Call | ON: CALLON \ r \ n;OFF CALLOFF \ r \ n | |
COM+REBOOT\r\n | This is equivalent to power restart Restart | Restart | COM + REBOOT \ r \ n |
COM+MPM0\r\n | The default play mode PLAY_M0 | Repeat All Tracks (TF/USB disk mode) | correct: PLAY_M0\n / error: ERR\n |
COM+MPM1\r\n | Single loop (TF/USB disk mode) | correct: PLAY_M1\n / error: ERR\n | |
COM+MPM2\r\n | No single loop (TF/USB disk mode) | correct: PLAY_M2\n / error: ERR\n | |
COM+MPMC\r\n | The current inquiry MP3 Play Mode (TF/USB disk mode) | correct: All cycle: PLAY_M0\n / Single cycle: PLAY_M1\n / No single cycle: PLAY_M2\n |
Serial command | Parameter Description | Instruction Description Function | Responce |
---|---|---|---|
COM+MP3AUTOPLYxx | U plate/ TF Mode: xx : " ON "On Autoplay xx : " OFF "Turn off Autoplay support power-down to save the default open automatically play | Autoplay settings | COM + MP3AUTOPLYON \r\n Autoplay On COM + MP3AUTOPLYOFF\r\n Turn off Autoplay effective immediately |
COM+MMP3AUTOPLY | Query Autoplay Set up | COM + MP3AUTOPLY\r\n ON: MP3AUTOPLYON\n shut down: MP3AUTOPLYOFF\n |
Serial command | description | Bluetooth return information |
---|---|---|
AT+MR\r\n | Queries Bluetooth address | AD: 191919191919\r\n |
AT+MP\r\n | (droped in firmware V1.4) PIN Code query | PN: 0000\r\n |
AT+MN\r\n | Bluetooth name query | NA: BK3254\r\n |
AT+MO\r\n | Bluetooth connection status inquiry | connection succeeded: C1\r\n / no connection: C0\r\n |
AT+MV\r\n | Bluetooth playback status inquiry | Play: MB\r\n / time out: MA\r\n / disconnect: M0\r\n |
AT+MY\r\n | Bluetooth inquiry HFP status | disconnect: M0\r\n / connection: M1\r\n / Caller: M2\r\n / Outgoing: M3\r\n / calling: M4\r\n |
COM+MTONE\r\n | Query state of voice info | TONEON\r\n : voice info enabled, TONEOFF\r\n: voice info off |
COM+MGOBACK\r\n | Query set of back to even state | ON: GOBACKON\r\n; OFF: GOBACKOFF\r\n |
COM+MCALL\r\n | Query Call | ON: CALLON\r\n;OFF CALLOFF\r\n |
COM+MMP3AUTOPLY\r\n | Query Autoplay Set up | ON: MP3AUTOPLYON\n shut down: MP3AUTOPLYOFF\n |
NOTES: AT+MP droped in version 1.4, based on info in datasheet, untested if it's true
Serial command | description |
---|---|
ERROR\n | error |
OK\n | |
II\r\n | connection succeeded |
IA\r\n | disconnect |
PLAY_ALL\n | Repeat All Tracks (TF/SDcard Mode) - to firmware below V1.3 |
PLAY_M0\n | Repeat All Tracks (TF/SDcard Mode) - from firmware V1.4 |
PLAY_ONE\n | Repeat One Track (TF/SDcard Mode) - to firmware V1.3 |
PLAY_M1\n | Repeat One Track (TF/SDcard Mode) - from firmware V1.4 |
PLAY_M2\n | No repeat One Track (TF/SDcard Mode) - from firmware V1.4 |
MUSICPLYFINISH\n | Automatically after playing one song (TF/U Under disk mode) |
VOLx\n | The current volume x level |
FM_FQ = 1081\n | Tunner frequency |
music_mun = x\n | Song number |
IRx\n | Received key value by IR |
SY_PO\n | Bluetooth turned on |
ON\r\n | Bluetooth turned on |
SY_PF\n | Bluetooth off |
BT_AC\n | Bluetooth Even being back |
BT_WP\n | Bluetooth In pairing state |
BT_WC\n | Bluetooth connection is in wait state |
BT_CN\n | Bluetooth connected |
BT_PA\n | Bluetooth Now Playing |
BT_IC\n | Bluetooth A call |
BT_OC\n | Bluetooth Telephone shot |
BT_EC\n | Bluetooth He is busy |
SD_PA\n | SD Card playing status |
SD_PU\n | SD Card is paused |
UD_PA\n | U plate Playing status |
UD_PU\n | U plate In a suspended state |
FM_PA\n | FM You are listening state |
FM_PU\r\n | FM In a suspended state |
FM_SC\n | FM The state of being seized Taiwan |
AX_PA\n | AUX Playing status |
AX_PU\n | AUX In a suspended state |