Hi
Has anyone used a Jaycar XC3748 MP3 Player module (it appears to be a rebadged Keyestudio YX500-24SS)?
https://www.jaycar.com.au/arduino-compa ... vC2Z7HPWoG
https://wiki.keyestudio.com/KS0387_keye ... MP3_Module.
This works straight out of the box using the on-board buttons, but I'm interested in controlling it via the UART interface. First glance suggests this should be easy.....
Depending on website visited there is conflicting advice regarding what each Hex control message sent should consist of. Differences include the length of the message (for same command), reference number of the command, and all sorts.
It does sort of talk back to me. When a track finishes It sends out a hex dump which appears to be in line with what Keyestudio document. Other than that I can't seem to get it to respond over UART.
However there is little to explain how the control strings are sent and their format.
I did find an Arduino library "snippet" so as a last resort I could install the IDE etc, download to an Arduino and monitor whats going on at the pins, but hopefully someone out there has used one and can inform of how to send, or can confirm what needs to be done to send the Hex commands.
I have the module connected to a terminal program so I can send commands as individual Hex bytes or a string of bytes, I just need to know "how". What is the format etc. I'm probably overlooking something simple...
Regards
Jaycar XC3748 Serial Control
-
chipfryer27
- Valued Contributor
- Posts: 1924
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 417 times
- Been thanked: 642 times
Re: Jaycar XC3748 Serial Control
Hi,
Can you not work out what the commands are from the Arduino code. If you do not want to install the IDE if you post the link to the code I can have a look for you. I do this a lot as I prefer PIC's than Arduino but it saves reinventing the wheel.
Regards,
Bob
Can you not work out what the commands are from the Arduino code. If you do not want to install the IDE if you post the link to the code I can have a look for you. I do this a lot as I prefer PIC's than Arduino but it saves reinventing the wheel.
Regards,
Bob
-
chipfryer27
- Valued Contributor
- Posts: 1924
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 417 times
- Been thanked: 642 times
Re: Jaycar XC3748 Serial Control
Hi Bob
This is their manual which documents the library and gives a snippet of the code. Note the example command code here does differ from that from the Keyestudio document.
I've not found enough code to make a useful guess at what it is doing and "how", other than potentially installing Arduino etc. As mentioned I've seen various versions of the commands to send, but not the format. For example do I send each Hex byte individually, or as part of a string? Are they comma separated? I have tried some obvious combinations but get no response.
Any help figuring out what is actually being sent appreciated. Other than controlling it I think it's a great little module. Built in amp/headphone jack and a digital out too. Cost was next to nothing, quite literally as I used Jaycar points to buy it during a recent trip
Regards
This is their manual which documents the library and gives a snippet of the code. Note the example command code here does differ from that from the Keyestudio document.
I've not found enough code to make a useful guess at what it is doing and "how", other than potentially installing Arduino etc. As mentioned I've seen various versions of the commands to send, but not the format. For example do I send each Hex byte individually, or as part of a string? Are they comma separated? I have tried some obvious combinations but get no response.
Any help figuring out what is actually being sent appreciated. Other than controlling it I think it's a great little module. Built in amp/headphone jack and a digital out too. Cost was next to nothing, quite literally as I used Jaycar points to buy it during a recent trip
Regards
Re: Jaycar XC3748 Serial Control
Hi,
Unfortunately I do not have the module but looking at the manual I would expect to send out a string in hex.
For next song just send 7E FF 06 01 00 00 00 EF
I would not have any spaces, the only thing is the manual does not give the baud rate, the snippet shows 9600 but I think that is for the debug messages. I will have a look at the Arduino library later to see what it is.
Bob
Unfortunately I do not have the module but looking at the manual I would expect to send out a string in hex.
For next song just send 7E FF 06 01 00 00 00 EF
I would not have any spaces, the only thing is the manual does not give the baud rate, the snippet shows 9600 but I think that is for the debug messages. I will have a look at the Arduino library later to see what it is.
Bob
Re: Jaycar XC3748 Serial Control
Hi,
Here is the github for the library, you can open with Notepad++ or text editor so don't need to install the IDE. There is quite a lot of info in the .h file and it is well commented unlike a lot of Arduino code.
https://github.com/MajicDesigns/MD_YX5300
The baud is 9600, 8,N,1
Bob
Here is the github for the library, you can open with Notepad++ or text editor so don't need to install the IDE. There is quite a lot of info in the .h file and it is well commented unlike a lot of Arduino code.
https://github.com/MajicDesigns/MD_YX5300
The baud is 9600, 8,N,1
Bob
-
chipfryer27
- Valued Contributor
- Posts: 1924
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 417 times
- Been thanked: 642 times
Re: Jaycar XC3748 Serial Control
Hi
I have tried sending out Hex strings in pretty much every way you can think on except the correct way...
Also using both the "Jaycar" and "KeyeStudio" versions.
I'm probably either overthinking or overlooking something obvious....
Regards
I have tried sending out Hex strings in pretty much every way you can think on except the correct way...
I'm probably either overthinking or overlooking something obvious....
Regards
-
chipfryer27
- Valued Contributor
- Posts: 1924
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 417 times
- Been thanked: 642 times
Re: Jaycar XC3748 Serial Control
Hi Bob
Thanks for the link, appreciated.
I shall have another try when I'm not so focused on a Rioja
Regards
Thanks for the link, appreciated.
I shall have another try when I'm not so focused on a Rioja
Regards
-
chipfryer27
- Valued Contributor
- Posts: 1924
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 417 times
- Been thanked: 642 times
Re: Jaycar XC3748 Serial Control
Hi
Sorted......
I was overthinking and overlooking that FC already has a MP3 component (thanks Martin for reminder) and Flowcode allows you to simulate it by simply pugging it in and selecting the comm port..... so no need to try and send strings and figure it out. Simply stepping through has it working a treat.
Thanks again for all the help.
Regards
Sorted......
I was overthinking and overlooking that FC already has a MP3 component (thanks Martin for reminder) and Flowcode allows you to simulate it by simply pugging it in and selecting the comm port..... so no need to try and send strings and figure it out. Simply stepping through has it working a treat.
Thanks again for all the help.
Regards