How to connect a YX5300 serial mp3 player module to esp32? - mp3

I'm pretty new to IOT and esp32 but so far managed to learn by myself, however, when I tried connecting a YX5300 serial mp3 module to my esp32 I have struggled to even make the #include libraries work.
I am using vscode along with platformio and I installed the "SerialMP3Player" library in my project to make it work.
After installing the library to my project i got errors saying that the "SoftwareSerial" library needs to be installed aswell, so I installed it and now, after doing that, my current error is this:
the build error i recieved after installing both libraries
So my question is what to do now? continue to find and install libraries that pop up in build errors or am i just missing something obvious?
Also, is it even possible to connect this module to an esp32 board? I only came across examples using arduino board variants.
Thanks!

The SoftwareSerial library is meant for Microchip Atmega microcontrollers. Most likely nobody has ever bothered to use this device's library (SerialMP3Player) with other devices, you might be the first to port it to ESP32 - if you feel up to the task.
After a quick look this doesn't seem very difficult - the code looks to be quite well abstracted and only talks to the SoftwareSerial library. You'd need to replace that with something that works on ESP32. I'd suggest a regular old HardwareSerial which uses a hardware UART - there are plenty of those on ESP32.

Related

Cross compile to esp-idf

I would like to use this library in ESP32:
https://github.com/CoolProp/CoolProp.git
It needs to be cross compiled.
And I have searched half the internet but no luck.
Anyone? Somewhere?
This library is for Mac, Windows or Linux. If you wish to port it to ESP32, it'll be a challenge - to put it mildly. There are no instructions for such work. You need to know (or learn) the code, the tools, the platform and figure it out.

How can I use WebRTC in a desktop application for voice chat?

I am trying to add voice chat between peers using my software - desktop application to desktop application over a network. My software is compatible with Windows and OSX. The difficulty is that there seems to be very little documentation on using the native API, and all the tutorials I've come across are out of date.
I started off by building the libraries and linking them in a new project, but as I mentioned, the tutorials I have found on the Internet are several years out of date, so I didn't get far with that.
So instead I built the native code, following these instructions https://webrtc.org/native-code/development/, and have successfully used peerconnection_client and -_server, which work great.
My problem now is that the peerconnection_client is more complicated than what I need, and I'm finding it difficult extracting the relevant parts (I want to remove the GUI, connect to a peer programmatically, and only transmit audio). And even if I do manage to strip down the peerconnection_client code, to just make voice calls through a terminal, it would still be lot of code to then embed into my program because it isn't linked to libraries, but raw code.
Has anyone else tried using WebRTC for native desktop applications in this way before? Is there any up to date documentation for this I can use? Any help would be greatly appreciated.
Best solution is to use this project :
CEF project
You will get mac os, windows and linux implementation from one project.
You can always update your cef library's to stay on road.
You can also use Firefox variant :
Firefox implementation
There is a lot of other ways like :
QT framework.
https://www.qt.io/
I've worked on a couple Voice/Video/Screen over IP projects using native C++ API, and my advice is: don't do it unless you have tons of time on your hands. Native API/samples is very much abandonware - Google devs keep it in sync with Chrome, but you're on your own, you'll have to dig through WebRTC & Chrome issues and PRs when your code stops working after updating to a newer release branch.
The only documentation is the source code itself, there's plenty of comments, but it's still very hard to figure things out. And those things tend to change from one release to another

My libprotobuf.a work for Mac Os but not for iOS Device

I am working with Cocos2dx and trying to use protobuf for communication with the server by JAVA.
I have just downloaded google protocol buffer v3.3.0 and follow the installation document. After installing it, I got a static library libprotobuf.a file, I used it for running on a Mac-Desktop, it works perfectly, but when I change to build on a iOS device, it's not working.
Errors when building for iOS device
I have spent many hours to find a solution and or dynamic library C++ of protobuf 3.3.0, however, I have nothing at all.
I really need someone's help. Could you give me some solutions, please!

Build libpcap for Python 2.7.x in windows 7

I've tried several different things and crawled around on lots of forums looking for an answer to this question.
My goal is to simply parse through a wireshark .pcap-ng trace file using Python. From what I can gather, it seems like I need a libpcap wrapper for Python or perhaps WinCap (PyCapy?)
I'm relatively new to Python, so if you all have any pointers on how to install this module please let me know. Earlier I had a 32bit version of Python installed and found a win32 installer and was able to parse through .pcap files but I really want to be able to parse through the .pcapng files. Thanks guys,
~Kyte
Sadly, this is Windows, so WinPcap won't help; libpcap 1.1.0 and later can read pcap-ng files, but there is currently no version of WinPcap based on a version of libpcap with pcap-ng support.
I.e., currently, the first piece of software to try would be VirtualBox, Parallels Workstation, or VMware Workstation, and the next piece of software to try would be some Linux distribution running on your Windows machine under the virtualization software. Sorry.
(Yes, I have to find the time to do some libpcap infrastructure work to make it easier for the WinPcap people to make their remote capture support work with newer versions of libpcap. Sadly, there are only 24 hours in a day, and a ton of other things to do competing for the hours that remain after such frivolities as eating and sleeping. :-))
A workaround for that particular issue would be either to save a capture from Wireshark in pcap format rather than pcap-ng format or to use Wireshark tools such as editcap (which can handle pcap-ng files on Windows, as they don't use libpcap/WinPcap to read capture files) to convert from pcap-ng to pcap.
There are a couple of Python wrappers for libpcap/WinPcap - python-libpcap and Pcapy. The python-libpcap page has a daemon and a penguin on it, so they're only advertising BSD and Linux support; it might work on other UN*Xes, as there shouldn't be major differences in the way you hook into libpcap, but might not work on Windows. Pcapy, however, explicitly mentions WinPcap and Win32 binaries.
Do try out the pcap binary that #dirkloss compiled for Python 2.7 | Windows.
Here
I tried it , but I'm getting this error- SO qn

How to fetch MIDI input-data in C++?

I've already googled the **** out of the web in search of a simple way to get data from a connected midi device. I'm using I Visual Studio 2010 on a Win7 64bit PC.
I've already tried libaries like Improv, JDKSmidi, Portmidi
All their example programs compiled with errors and Portmidi did not really provide a useful documentation.
All I want to do, is to read midi input on windows in my program. (Maybe even without an extern libary?)
Take a look at rtmidi. It is small (2 headers and one .cpp file) and very easy to use.
http://www.music.mcgill.ca/~gary/rtmidi/
If you are on windows, you may use Windows multimedia API.
It's quite simple.
MSDN MIDI Reference
There are several articles on codeproject :
http://www.codeproject.com/Articles/2771/Wrapper-Library-for-Windows-MIDI-API
http://www.codeproject.com/Articles/36313/MIDI-Star