Barco Clickshare
MLaletas
Posts: 226
So I am failing miserably with integrating a barco clickshare I cant even open the IP connection let alone fool with the API. Wanted to see if anyone has any advice and if they have personal experience with the device.
0
Comments
Managing your connection with IP is pretty important. I wrote a series of functions I drag into each program for such things. For example with most HTTP you want to just open the connection, send the message and get out. Other connections that may stay alive longer need to be managed as well.
Line 109 (14:40:42):: CIpEvent::OffLine 0:6:1
Line 110 (14:41:02):: IPSocketManConnectTask 'tcp-client:1:6' exiting
Line 111 (14:41:02):: CIpEvent::OnLine 0:6:1
Line 112 (14:41:07):: SENT: GET /v1.0/DeviceInfo/Sharing HTTP/1.1Host: 10.10.1.39:4000
Line 113 (14:41:07):: CIpEvent::OffLine 0:6:1
Here's a sample for an HTTP connection to an Axis IP camera. In this case when you want to control the camera a button is pushed and it send the IP_CLIENT_OPEN then when yu get the online notification it would trigger this function. You have to watch what happens in WireShark and see all the parameters that are being passed and include them in your code then one at a time comment them out to see what the device really doesn't need and then send it the minimum required, it's a real PITA. In this example I could probably have removed more but after a while you end up saying F' it, it's good enough and move on to the real work at hand of controlling the device. Sometimes you think you should be done with the module but you've really only figured out how to talk to the friggin thing.
But I was tested some functions of ClickShare API and it's working.
P.S. My coding ability is not very will....so.... just for your reference....
Just curious - are you sendind CR,LF after the lines in the GET command?
Kuoweiliao I hope you didn't go through the trouble of doing all that for me, I will test out the file you made and post the results and thank you for going through all that.
I have a module posted on the mod pedia forum that uses MD5 too. EPCII or Etherner Power Controller or something like that. I think it include the module that does the MD5 encryption too that I got from AMX_Jeff.
I'm sure if mush got any usefull feedback from AMX he would have posted what he got. Duet users might have a better answer