Wall's background music RS485 serial control communication protocol

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

Wall's background music RS485 serial control communication protocol
Wall's background music RS485 serial control communication protocolFigure

1, Physical layer protocol

2-7 bits: playing resources 0-1bit: current playback status

to configure:

Baud rate9600bps(Default)
Data bits8Position
Verification methodNone
Stop position1Position

Two, LogicLayer protocol

Each communication requires sending a string of data, Package data frame header, data End of frame, As follows:. Initial symbol:

numberIDData lengthData packetVerification codeEnd symbolByte
1Byte2Byte1Byte<2561Byte1Data frame description

Initial symbol

Output data from the upper computerSending data from the lower computer: 0XFA, number: 0XFC
IDEach product has onenumberIDAfter 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 followingData packet
The number of data is determined by the length of the dataVerification code.
Adopt and verifyNumber+data length+data, IDEnd symbol=CRC
Three0xFE

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

FA 00 01 01 01 03 FE

Feedback received:

Instructions(1B)Parameters1(<128)Parameters2(<128)
0x02modeledition

2.Baud rate query

FA 00 01 01 07 09 FE

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

FA 00 01 01 0C 0E FE

Get feedback:

Instructions(1B)Parameters1(1B)Parameters2(1B)Parameters3(1B)Parameters4(1B)Parameters5(2B)
0x0d3-7bitMenu location1-2bitSound source status0bit 2-7bitCurrent volume1bitPower on/off status0bitSilent state4-7bit:Play mode0-3bit:Sound effect mode2-7bit:Play resources0-1bit:Current playback statusThe 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

FA 00 01 01 13 15 FE

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

FA 00 01 01 17 19 FE

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)

FA 00 01 01 8B 8D FE

Get feedback:

Instructions(1B)Parameters1 (1B) ...
0x8cNumber (All - Music)

Note: Parameters have24Number, View correspondingPlay resources - All - Music, Memory - Music, SDCard - Music……

8.Search for the number of music resources

FA 00 01 01 4A 4C FE

Get feedback:

Instruction(1B)Parameters1 (2B) ...
0x4ANumber (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)
0x814-7bit:Play mode0-3bit:Sound effect mode2-7bit:Play resources0-1bit:Current playback statusThe 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)
0x754-7bit:Play mode0-3bit:Sound effect mode2-7bit:Play resources0-1bit:Current playback statusThe file number being played Song name

Note::

Parameters1 explain
4-7bit Play mode:
0x00Sequential playback (H6)
0x01All loops
0x02Single tune circulation
0x03Random playback
0-3bit Environmental sound effects:
0x00Ordinary
0x01Rock and roll
0x02popular
0x03Dance music
0x04Hip hop
0x05Classical
0x06Super bass
0x07voice
0x08sir
0x09Gentle
Parameters2 explain
2-7bit Play resources:
0x01Current playlist
0x02Local music
0-1bit Play status:
0x01Play normally
0x02Pause
0x03stop it

11.Search for detailed music information with specified serial numbers on the music interface (Old)

Instructions(1B)Parameters1(1B)Parameters2(2B)
0x82Play resourcesFile 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)
0x83File numberSong name

12.Search for detailed music information with specified serial numbers on the music interface

Instructions(1B)Parameters1(1B)Parameters2(2B)
0x73Play resourcesFile 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)
0x73Play resourcesFile numberSong name

13.Search for detailed information about the music being played by the music player

FA 00 01 01 84 86 FE

Get feedback:

Instructions(1B)Parameters1(2B)Parameters2 (2B) Parameters3 (2B) Parameters4 (character string) Parameters5 (character string) Parameters6 (character string)
0x85Current file numberThe current playback progressThe entire duration of the songSong nameFile nameSinger 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)
0x89Play resourcesSong 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)
0x814-7bit:Play mode0-3bit:Environmental sound effects2-7bit:Play resources0-1bit:Current playback statusThe 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)
0x69room numberRoom 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)
0x74Single 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)
0x74Single partition status, Corresponding to single partition status

Single partition status:

Parametersexplain
Bit0~1Corresponding partition values. 0x00~0x11Corresponding to 4 partitions.
Bit2~6Corresponding partition volume values0x00~0x0Fcorresponding0~15Grade
Bit7Partition switch, 0x00Close, 0x01Open

3.Error feedback instruction

Instructions(1B)Parameters(1B)
0x99Error type

Parameter table

ParametersError type
0x01Instruction error
0x02Verification code error
0x03Length error
0x05Abnormal error
Related Tags
Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.