![]() ![]() Typical usage is within public transportation and access control.ĭESFire cards are considered secure. DESFire is like a memory card with access control. Incoming characters from the serial (Serial Monitor) are accommodated for processing and then sent to the mp3 player module.MiFare DESFire are iso14443A compliant contactless smartcards, and support all layers including iso14443-4. These cards are so-called “stored value” cards, so you cannot install and execute your own program code on DESFire cards. Serial.println("Select storage device to TF card.") Serial.println("Hardware Serial dan Software Serial begin.") Unsigned long previousMillisCR = 0 //-> save the last time the data was received from the serial mp3 module.Ĭonst long intervalCR = 100 //-> interval for updating data received from serial mp3 player. - Millis variables for receiving feedback data from the Serial MP3 Player Module. Static int8_t Send_buf = //-> Buffer to receive response. Please comment in the comments column of this project video if these commands work or not in your module. Maybe these commands can work in modules with the YX5300 chip. Because the module that I use uses a chip AA19HFA440-94 (Although in the shop where this module was purchased writing YX5300 chip). Maybe the module I'm using doesn't support these commands. But I tried it on my module and it doesn't work. Additional byte commands from several references. Play with volume : 7E FF 06 22 00 0F 02 EF -> Set the volume to 15(0x0f is 15) and play the second song Play with volume : 7E FF 06 22 00 1E 01 EF -> Set the volume to 30 (0x1E is 30) and play the first song #define CMD_PLAY_W_VOL 0X22 //-> Play with volume. Set DAC : 7E FF 06 1A 00 00 01 EF -> DAC no output. Set DAC : 7E FF 06 1A 00 00 00 EF -> Start up DAC output. Set single cycle play : 7E FF 06 19 00 00 01 EF -> Close single cycle play. ![]() Set single cycle play : 7E FF 06 19 00 00 00 EF -> Start up single cycle play. #define CMD_SET_SNGL_CYCL 0X19 //-> Set single cycle play. ![]() #define CMD_SHUFFLE_PLAY 0x18 //-> Shuffle play. Cycle play with folder name : 7E FF 06 17 00 01 02 EF -> 01 folder cycle play #define CMD_FOLDER_CYCLE 0X17 //-> Cycle play with folder name. #define CMD_STOP_PLAY 0X16 //-> Stop playing continuously. Play with folder and file name : 7E FF 06 0F 00 01 02 EF -> Play the song with the directory: /01/002xxx.mp3 Play with folder and file name : 7E FF 06 0F 00 01 01 EF -> Play the song with the directory: /01/001xxx.mp3 #define CMD_PLAY_FOLDER_FILE 0X0F //-> Play with folder and file name. #define CMD_PAUSE 0X0E //-> Playback is paused #define CMD_PLAY 0X0D //-> Resume playback #define CMD_WAKE_UP 0X0B //-> Chip wakes up #define CMD_SLEEP_MODE 0X0A //-> Chip enters sleep mode Select device : 7E FF 06 09 00 00 02 EF -> Select storage device to TF card. #define CMD_SEL_DEV 0X09 //-> Select device. Single Cycle Play : 7E FF 06 08 00 00 01 EF -> Single cycle play the first song. #define CMD_SNG_CYCL_PLAY 0X08 //-> Single Cycle Play. Set volume : 7E FF 06 06 00 00 1E EF -> Set the volume to 30 (0x1E is 30) (Set volume is 06). #define CMD_SET_VOLUME 0X06 //-> Set volume. #define CMD_VOLUME_DOWN 0X05 //-> Volume decrease one. #define CMD_VOLUME_UP 0X04 //-> Volume increased one. Play with index : 7E FF 06 03 00 00 02 EF -> Play the second song. Play with index : 7E FF 06 03 00 00 01 EF -> Play the first song. ![]() #define CMD_PLAY_W_INDEX 0X03 //-> Play with index. #define CMD_PREV_SONG 0X02 //-> Play previous song. #define CMD_NEXT_SONG 0X01 //-> Play next song. Link to download the MP3 Player Module Document is available in the video description. - The byte commands are based on the table contained in the MP3 Player Module Document. SoftwareSerial mp3(5,4) //-> SoftwareSerial mp3 (RX_Pin, TX_Pin) TX YX5300 MP3 Player Module RX(GPIO 5 / D1) SoftwareSerial NodeMCU ESP8266. RX YX5300 MP3 Player Module TX(GPIO 4 / D2) SoftwareSerial NodeMCU ESP8266. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |