-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
raspberry pi image #1
Comments
Hi Henk The MIDI interface is defined as an optical interface. That means that there is no electrical connection between two MIDI apparatus (or any other). I am in the midst of converting this program to an ESP8266. I think that will make things easier. You would need an ESP8266, and a MIDI shield (Arduino). Due to too many projects at the moment, however, this will take some time. Regards |
Hello Arjen WIth some delay... thanks for your reply. I have setup a raspberry pi two, got the webserver and website up and running and can access it from my ipad. The pogram is running and reacting to inputs, but is unable to detect my ME-5. The program also displays a no hardware port message.
Regards |
Hi Henk As for troubleshooting have a look at amidi. my code uses it too in the PHP files. In the command line try It returns the hardware if found and the port used Not sure but you could try and run the PHP file in the php directory from the command line: php detect_ME5.php let me know the output(s). You may have to setup some user rights. Regards Arjen |
Hello Arjen, Thanks for your reply. To go over your suggestions one by one:
|
Hi Henk. What I see from your last post is this:
We'll have to go into some deeper debugging: Just to make sure PHP is up and running type php -v (-v = version) should output something like: PHP 7.0.27-0+deb9u1 (cli) (built: Jan 5 2018 13:51:52) ( NTS ) Then try the following: amidi -p hw:2,0,0 -S "F0 41 00 1F 11 10 00 7F 7F 00 F7" -d It should output a lot of HEX values often started with F0. This command might 'hang' in the end so press CTRL and C same time. In my case it then responds with '2240 bytes read'. Now go into /var/www/html/php Copy detect_ME5.php to some other filename, e.g. henk.php (should end in .php) Edit that file. I like vi but most people will use nano. Wherever it says // echo ... (something) remove the '//' (=comment) EXCEPT for the last few lines in the pogram: // $hexvalues = explode(" ", $response); // echo print_r($hexvalues); Just leave these as is. Then try again: php henk.php And send me the output. I may find out what is wrong. Probably some user rights. Still with me? :-) |
Hello Arjen, Yes, I'm still with you.
So clearly no contact with the ME-5 and no use in going any further than that. Regards, Henk |
mmh Starting to suspect your Midi interface. |
What kind of midi I/F you got? You might have the two DIN plugs in the back of the ME5 the other way around? try to switch these. Midi is pretty ambiguous about that, Midi out should be connected to Midi in and vice versa. |
The black box upper left (Old Philips power supply box) is my raspberry. |
Hey Arjen, Maybe it's my midi interface that's not compatible. I didn't know what you meant with "an optical interface" (and couldn't find anything about that on the internet) and got one localy secondhand. I have something visual similair to what you have, but probably a different brand and model with a different chip. I'll send you picture's tomorrow. The plugs are inserted in the correct port... they have been switched back and forth during the last testing to make shure I didn't make a logical error. And after cleaning the in- and output with contact spray (again, after buying it a couple of months ago) the same testing was done again. Do you know the brand, model and/or chip of yours? |
There are no markings further on my Midi interface. |
Maybe your Midi IF can send but not receive. try the following command to change patch to the 3rd :
(zero's between the quotes C0 02 == C-zero zero-two) The 02 is the patchnumber so if that works try another number (in hex) like "0F". Your patchnumber should change. |
... and offcourse thanks for your help so far. regards, Henk |
Hello Arjen, New developments: I saw you're midicable and I recognised the markings from some webshops, including Aliexpress. I got another usb-midicable (see picture) with the same negative results, but...
|
Ok, one step at a time apparently.. Let me check my setup. Quoting Arnold: I'll be back (you imagine the Austrian accent yourself) :-) |
Could you check the following: Go into the /var/www/html directory Then list all files: (these are all letters as in Luke Susan (minus) Albert Luke Luke) drwxrwxrwx 9 www-data www-data 4096 Mar 14 2023 . Never mind the extra files I have in this directory, I tried several solutions one or the other way. Then edit a short PHP file: nano whoami.php And enter the following lines:
Save it. Do an ls -all and check the owner of this file whoami.php. sudo chown www-data:www-data whoami.php check again with ls -all Now take another pc/phone/tablet and open the webpage on your raspberry, you'll need its IP address. I Hope the raspberry is somehow connected to your home network? In my case the IP is 192.168.1.93 In the webbrowser URL field I type It should return www-data To think of it now, I saw one of the 1st pictures you posted that you are running the website from the raspberry itself. I have not tested that, might give problems so first try and connect from outside the raspberry. |
Hello Arjen, I'm doing it step by step: ls -all doesn't give me a complete file list, but just a fragment (see lsall_2.jpg). Except for the syx directory all other owners are root, not www-data. It went into the php directory and ran ls-all again (see lsall_1.jpg), with the same result... root owner instead of www-data. So I need to change the owner of the entire /var/www/html directory to www-data as a first step. I have tried te webpage on earlier testing occasions on my ipad, so not only directly from the raspberry pi. regards, |
Well... Did that work? I think you have to change the owner/group of the syx directory
check your groups as well: (guess your username is henk so where it says pi type henk)
and
|
It was late when I changed the owner and today was busy, so I haven't tested it yet. I will change the syx directory on the next occasion. And I was also thinking about my default user not being www-data... so as your mentioned that has to be checked and (probably) corrected too... regards, Henk |
The default user does not have to be www-data. That is the user when you login to the webpage. My username is 'pi' on the raspberry and that works fine. |
Hello Arjen, I had a bit of time and found some new energy and gave it anohter trie. I've changed the syx folder owner to www-data and I've added www-data to the audio subgroup (was missing). Again no succes when running the site localy or on my ipad, and switching between both usb-midi cables . The message "no hardware found" is now replaced by "trying to connect". I leave it as it is for now, because it takes too much time and causes too much frustration right now. I have to dive too deep into unknown territory for me, where I just want to be able to control my ME-5 and create the patches I need. regards Henk |
Thanks for trying. I was hoping you would get it operable. Alas. |
Hello Arjen,
Regards, Henkj.
The text was updated successfully, but these errors were encountered: