![]() ![]() As player we could useĬommands like aplay or omxplayer on the Raspberry 3 side. This couldīe achieved via a simple player invocation. My requirements are rather simple: I want to start a song (this is an AUDIO interface that is good enough for my needs.I have decided to control my player via WLAN and traditionalįortunately the new Raspberry Model 3 has two important features: 433Mhz transmitter/sender (signal is not very reliable).mobile phone (is too slow, bad signal quality in the room). ![]() So some remote control process is necessary.Īfter several tests with the usual suspects: Music podium is 50m far from the mixing console where IĬould start a player. While playing on one of my favorite instruments Sometimes I have the need to play background music files in a large room The program a must then be enhanced a little bit - the essential features are already included.įor a similar approach using 433MHz devices seeĬontrolling an audio player via CGI with Raspberry 3 Interface with an UDP receiver as in my program youĬan load software in the board by just using the UDP interface!. If you have no USB/serial connection in your production environment but a working WIFI Serious applications this should be added. Note that I haven't included any transmission security features (checksums etc.) in the code. The following picture shows my software when uploading a LUA program into the ESP8266 board: I have used fixed IP adresses in this sample - no broadcast messages here. Sample program it receives UDP messages on port 9514 and sends messages back on port 9515. The board and reconnect it: the file a should be executed. Via the LUA statement writefile() and at the end close the file. Open the file a at the beginning of the program, add lines to this file Udp_server.exe or udp_client.exe (see my page The program stationap_a contained in the zip file. My version of a ist nearly identical with When you power up the board - with or without USB. This program must be placed as a file in the flash and must be named "a". Startup program used by the ESP8266/NodeMCU. You see that it is easy to load small programs into the board. I spent two days of my life to find that out. This is an annoying bug (or feature) in Windows. Invoke my program esp8266_ser as follows (sample):Įsp8266_ser -baud 9600 -com 11 -file aĪ short comment for people that want to modify my C++ code: please note thatĬOM ports greater or equal than COM10 under Windows must be handled inĪ special way! You may find this in method HU_RS232::open_line() in You have to know the COM port used by the USB/serial driver under Windows. Your path and start the program in a "black" window: it gives you the necessary Blinks the onboards LED when a UDP message is received.Works as a UDP client (sender) on port 9515. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |