Hello
I hope someone can help with the following issue about communication with Open ePhys through the http route.
I have several elements of this working perfectly according to the manual and helpful suggestions here. The openEphys is a 2022 working version on an up-to-date Windows computer.
I am using a MATLAB session to send http requests to openEphys. My goal is to insert a short text string into the openEphys data recording stream and let it acquire a timestamp marking the event. In practice the text string will be a unique filename for a single trial in a sequence of trials. Sending the trial filename allows us to identify sections of the openEphys recording. The accurate trial timing is then marked with recordings of onset/offset signals.
When the MATLAB session is on the same computer as the openEphys session, this all works well. I can interrogate the state of openEphys with calls such as
I can also send a text string with a call as suggested in the manual and find this string correctly in the recording/events/MessageCenter folder. So this pair of calls works fine:
out = webwrite(url, struct('text’,’MYFILE.name'), weboptions('RequestMethod','put','MediaType','application/json'));
When I try to do this remotely from another computer (Linux), I am finding that "read" requests work fine:
This returns correctly
However, "send" requests are rejected with a statement that 'put' is not an available option. I have turned off the Firewall and security on the Windows computer.
*****
out = webwrite(url, struct('text’,’MYFILE.name'), weboptions('RequestMethod','put','MediaType','application/json'));
*****
These lines fail.
It seems that something is blocking my requests. Is there any experience within the group about additional changes to settings on a Windows computer that are required to make remote control of openEphys work properly?
One additional thing I should mention is that the other computer is Linux box with a somewhat outdated version of Ubuntu (v14) and MATLAB (2016). There’s not much I can do about that, without a lot of rearranging.
In anticipation.......
Amdrew Parker