
1, Physical layer protocol
2-7 bits: playing resources 0-1bit: current playback status
to configure:
| Baud rate | 9600bps(Default) |
| Data bits | 8Position |
| Verification method | None |
| Stop position | 1Position |
Two, LogicLayer protocol
Each communication requires sending a string of data, Package data frame header, data End of frame, As follows:. Initial symbol:
| number | IDData length | Data packet | Verification code | End symbol | Byte |
| 1Byte | 2Byte | 1Byte | <256 | 1Byte | 1Data frame description |
Initial symbol
| Output data from the upper computer | Sending data from the lower computer: 0XFA, number: 0XFC |
| IDEach product has one | numberIDAfter receiving frame data, each lower computer needs to make a judgment: Number with oneselfIDAre the numbers the sameIDIf they are the same, corresponding processing should be done, If. Number isIDIndicate broadcast instructions0x0000, All lower level computers need to handle it, Data length. |
| Indicate how many bytes of data are following | Data packet |
| The number of data is determined by the length of the data | Verification code. |
| Adopt and verify | Number+data length+data, IDEnd symbol=CRC |
| Three | 0xFE |
Detailed explanation of data packets, The data packet contains the instruction status information for this communication
The instructions are as follows:, All functional buttons are required:
If you feel that testing is inconvenient, you can change the decimal room number of the hostID, number (IDChange to) Or simply click reset1 . Or simply click reset. Can be usedIDExample sentences
1.Basic instructions
1.Equipment information query
Feedback received:
| Instructions(1B) | Parameters1(<128) | Parameters2(<128) |
| 0x02 | model | edition |
2.Baud rate query
Get feedback:
FC 00 01 04 08 00 25 80 B2 FE (The default baud rate is9600, Convert hexadecimal to decimal)
3.Search for device status
Get feedback:
| Instructions(1B) | Parameters1(1B) | Parameters2(1B) | Parameters3(1B) | Parameters4(1B) | Parameters5(2B) |
| 0x0d | 3-7bitMenu location1-2bitSound source status0bit | 2-7bitCurrent volume1bitPower on/off status0bitSilent state | 4-7bit:Play mode0-3bit:Sound effect mode | 2-7bit:Play resources0-1bit:Current playback status | The file number being played |
2.Music control instructions
1.Key command
Power on
FA 00 01 02 10 00 13 FE Get feedback: FC 00 01 03 03 00 00 07 FE
Shut down
FA 00 01 02 10 01 14 FE Get feedback: FC 00 01 03 03 01 01 09 FE
Play
FA 00 01 02 10 02 15 FE Get feedback: FC 00 01 03 03 02 01 0A FE
Pause
FA 00 01 02 10 03 16 FE Get feedback: FC 00 01 03 03 03 02 0C FE
Pause/Play
FA 00 01 02 10 04 17 FE Get feedback: FC 00 01 03 03 04 01 0C FE
Get feedback: FC 00 01 03 03 04 02 0D FE
stop it
FA 00 01 02 10 05 18 FE Get feedback: FC 00 01 03 03 05 03 0F FE
Volume- 03The result of volume modification
FA 00 01 02 10 06 19 FE Get feedback: FC 00 01 03 03 06 03 10 FE
Volume+ 07The result of volume modification
FA 00 01 02 10 07 1A FE Get feedback: FC 00 01 03 03 07 07 15 FE
Mute off (Turn off the mute effect)
FA 00 01 02 10 08 1b FE Get feedback: FC 00 01 03 03 08 01 10 FE
Silent on (Turn on the mute effect)
FA 00 01 02 10 09 1C FE Get feedback: FC 00 01 03 03 09 00 10 FE
Silent on/Close
FA 00 01 02 10 0A 1D FE Get feedback: FC 00 01 03 03 0A 00 11 FE
FA 00 01 02 10 0A 1D FE Get feedback: FC 00 01 03 03 0A 01 12 FE
Previous song (Song titleFeedback in string form)
FA 00 01 02 10 0B 1E FE Get feedback: FC 00 01 0C 03 0B 10 07 00
05 ED 8A B8 E6 B1 BD BA FE
BelowA song (Song titleFeedback in string form)
FA 00 01 02 10 0C 1F FE Get feedback: FC 00 01 12 03 0C 10 07 00
03 E9 A5 BF E7 8B BC E4 BC A0 E8 AF B4 42 FE
Switch audio source
FA 00 01 02 10 0D 20 FE Get feedback: FC 00 01 03 03 0D 00 14 FE (Local)
FC 00 01 03 03 0D 01 15 FE (External)
FC 00 01 03 03 0D 03 17 FE (Bluetooth)
2.Volume setting
FA 00 01 02 11 01 15 FE (Set the volume to01)
Get feedback:
FC 00 01 02 12 01 16 FE
3.Check the on/off status
Get feedback:
FC 00 01 02 14 00 17 FE Power on
FC 00 01 02 14 01 18 FE Shut down
4.Search for the current volume level
FA 00 01 01 15 17 FE
Get feedback:
FC 00 01 02 16 08 21 FE (The current volume is08)
5.Search for mute status
Get feedback:
FC 00 01 02 18 00 1B FE Silent on
FC 00 01 02 18 01 1C FE Mute off
6.Mute setting
Silent on
FA 00 01 02 19 00 1C FE Get feedback: FC 00 01 02 18 00 1B FE
Mute off
FA 00 01 02 19 01 1D FE Get feedback: FC 00 01 02 18 01 1C FE
7.Search for the number of music resources (Old)
Get feedback:
| Instructions(1B) | Parameters1 (1B) | ... |
| 0x8c | Number (All - Music) | … |
Note: Parameters have24Number, View correspondingPlay resources - All - Music, Memory - Music, SDCard - Music……
8.Search for the number of music resources
Get feedback:
| Instruction(1B) | Parameters1 (2B) | ... |
| 0x4A | Number (All - Music) | … |
Note: Parameters have30+NNumber of parameters (60+2NByte) , View corresponding)Play resources - All - Music, Memory - Music, SDCard music……
9.Check the status of the music player (Old)
FA 00 01 01 80 82 FE
Get feedback:
| Instructions(1B) | Parameters1(1B) | Parameters2(1B) | Parameters3(2B) | Parameters4(String) |
| 0x81 | 4-7bit:Play mode0-3bit:Sound effect mode | 2-7bit:Play resources0-1bit:Current playback status | The file number being played | Song name |
10.Check the status of the music player
FA 00 01 01 75 77 FE
Get feedback:
| Instructions(1B) | Parameters1(1B) | Parameters2(1B) | Parameters3(2B) | Parameters4(String) |
| 0x75 | 4-7bit:Play mode0-3bit:Sound effect mode | 2-7bit:Play resources0-1bit:Current playback status | The file number being played | Song name |
Note::
| Parameters1 | explain | |
| 4-7bit | Play mode: | |
| 0x00 | Sequential playback (H6) | |
| 0x01 | All loops | |
| 0x02 | Single tune circulation | |
| 0x03 | Random playback | |
| 0-3bit | Environmental sound effects: | |
| 0x00 | Ordinary | |
| 0x01 | Rock and roll | |
| 0x02 | popular | |
| 0x03 | Dance music | |
| 0x04 | Hip hop | |
| 0x05 | Classical | |
| 0x06 | Super bass | |
| 0x07 | voice | |
| 0x08 | sir | |
| 0x09 | Gentle | |
| Parameters2 | explain | |
| 2-7bit | Play resources: | |
| 0x01 | Current playlist | |
| 0x02 | Local music | |
| 0-1bit | Play status: | |
| 0x01 | Play normally | |
| 0x02 | Pause | |
| 0x03 | stop it |
11.Search for detailed music information with specified serial numbers on the music interface (Old)
| Instructions(1B) | Parameters1(1B) | Parameters2(2B) |
| 0x82 | Play resources | File number |
Example:: FA 00 01 04 82 01 00 00 88 FE Search for the first song of all music
Get feedback:
| Instructions(1B) | Parameters1(2B) | Parameters2 (String) |
| 0x83 | File number | Song name |
12.Search for detailed music information with specified serial numbers on the music interface
| Instructions(1B) | Parameters1(1B) | Parameters2(2B) |
| 0x73 | Play resources | File number |
Example:: FA 00 01 04 73 01 00 00 79 FE Search for the first song of all music
Get feedback:
| Instructions(1B) | Parameters1(1B) | Parameters2(2B) | Parameters3 (String) |
| 0x73 | Play resources | File number | Song name |
13.Search for detailed information about the music being played by the music player
Get feedback:
| Instructions(1B) | Parameters1(2B) | Parameters2 (2B) | Parameters3 (2B) | Parameters4 (character string) | Parameters5 (character string) | Parameters6 (character string) |
| 0x85 | Current file number | The current playback progress | The entire duration of the song | Song name | File name | Singer name |
14.Play mode settings
All loops
FA 00 01 02 86 01 8A FE Get feedback: FC 00 01 02 86 01 8A FE
Single tune circulation
FA 00 01 02 86 02 8B FE Get feedback: FC 00 01 02 86 02 8B FE
Random playback
FA 00 01 02 86 03 8C FE Get feedback: FC 00 01 02 86 03 8C FE
15.Sound effect settings
Ordinary
FA 00 01 02 87 00 8A FE Get feedback: FC 00 01 02 87 00 8A FE
Rock and roll
FA 00 01 02 87 01 8B FE Get feedback: FC 00 01 02 87 01 8B FE
popular
FA 00 01 02 87 02 8C FE Get feedback: FC 00 01 02 87 02 8C FE
Dance music
FA 00 01 02 87 03 8D FE Get feedback: FC 00 01 02 87 03 8D FE
Hip hop
FA 00 01 02 87 04 8E FE Get feedback: FC 00 01 02 87 04 8E FE
Classical
FA 00 01 02 87 05 8F FE Get feedback: FC 00 01 02 87 05 8F FE
Super bass
FA 00 01 02 87 06 90 FE Get feedback: FC 00 01 02 87 06 90 FE
voice
FA 00 01 02 87 07 91 FE Get feedback: FC 00 01 02 87 07 91 FE
sir
FA 00 01 02 87 08 92 FE Get feedback: FC 00 01 02 87 08 92 FE
Gentle
FA 00 01 02 87 09 93 FE Get feedback: FC 00 01 02 87 09 93 FE
16.Play songs with specified numbers
| Instructions(1B) | Parameters1(1B) | Parameters2(2B) |
| 0x89 | Play resources | Song number |
Example:: FA 00 01 04 89 01 00 00 8F FE Play the first song of all music
Get feedback:
| Instructions(1B) | Parameters1(1B) | Parameters2(1B) | Parameters3(2B) | Parameters4(String) |
| 0x81 | 4-7bit:Play mode0-3bit:Environmental sound effects | 2-7bit:Play resources0-1bit:Current playback status | The file number being played | Song name |
17.Check the room name and room number
FA 00 01 01 68 6A FE
Get feedback:
| Instructions(1B) | Parameters1(2B) | Parameters2(String) |
| 0x69 | room number | Room name (Will provide feedback, Invalid) |
18.Set room number
FA 00 01 03 6A 00 02 70 FE
Get feedback:
FC 00 01 03 6A 02 00 70 FE
19.Check the number of audio sources
FA 00 01 01 6B 6D FE
Get feedback:
FC 00 01 02 6C 03 72 FE (03Representing three types of audio sources)
20.Set up audio source
Local audio source
FA 00 01 02 6D 00 70 FE Get feedback: FC 00 01 03 03 00 00 07 FE
External audio source
FA 00 01 02 6D 01 71 FE Get feedback: FC 00 01 03 03 00 01 08 FE
Bluetooth audio source
FA 00 01 02 6D 03 73 FE Get feedback: FC 00 01 03 03 00 03 0A FE
Cloud music (H6-Think ahead)
FA 00 01 02 6D 07 77 FE Get feedback: FC 00 01 03 03 00 07 0E FE
21.Set up separate partitions
| Instructions(1B) | Parameters(1B) |
| 0x74 | Single partition status, Corresponding to multiple partition states |
FA 00 01 02 74 BD 34 FE
Set partition two, Open, Volume15Grade.
BDConverting to binary is 1 01111 01. Among them01Correspondingly, partition refers to. 01111Corresponding partition volume size. 1Corresponding switch
Get feedback:
| Instructions(1B) | Parameters(4B) |
| 0x74 | Single partition status, Corresponding to single partition status |
Single partition status:
| Parameters | explain |
| Bit0~1 | Corresponding partition values. 0x00~0x11Corresponding to 4 partitions. |
| Bit2~6 | Corresponding partition volume values0x00~0x0Fcorresponding0~15Grade |
| Bit7 | Partition switch, 0x00Close, 0x01Open |
3.Error feedback instruction
| Instructions(1B) | Parameters(1B) |
| 0x99 | Error type |
Parameter table
| Parameters | Error type |
| 0x01 | Instruction error |
| 0x02 | Verification code error |
| 0x03 | Length error |
| 0x05 | Abnormal error |
Leave a Reply