panjanek / EdiManager

Command line utility for controlling Edimax plugs and cameras remotely through Edimax cloud service
8 stars 2 forks source link

EdiManager commands does not work with Edimax IC-9110W #1

Open lawin1 opened 8 years ago

lawin1 commented 8 years ago

EdiManager can access IC-9110W, but camera doesn't respond to "image" or "web" commands. For exmaple: D:\EdiManager-master\build\net45>EdiManager.exe 74da(hidden) image -p (hidden) -m snapshot.jpg Using Edimax UDP cloud service at 122.248.252.67:8766 Device 74DA(hidden) is online at (hidden) Alias : IC-6C52F5 Type : IPCamera Model : IC9110W Ip : (hidden) Relay : (hidden) RelayId : (hidden) Status : 1070 Complete HTTP response received with status 401, contentType: text/html, body size:351. Access to 74DA(hidden) is forbiden. HttpStatus:401 - Access denied

panjanek commented 8 years ago

Hello Unfortunatelly I had no example IC-9110W device to test, so it is possible that it uses slighty different communication protocol than the devices I tested and so the EdiManager.exe tool won't work. Status 1070 means that the link throught the cloud service to the camera was estabilished, but after that, the camera did not allow to download photo that should normally be available at URL http:///mobile.jpg and returned "401 Forbidden" status. Maybe:

Regards, Maciej / panjanek

2016-03-28 15:13 GMT+02:00 lawin1 notifications@github.com:

EdiManager can access IC-9110W, but camera doesn't respond to "image" or "web" commands. For exmaple: D:\EdiManager-master\build\net45>EdiManager.exe 74da image -p -m snapshot.jpg Using Edimax UDP cloud service at 122.248.252.67:8766 Device 74DA is online at Alias : IC-6C52F5 Type : IPCamera Model : IC9110W Ip : Relay : RelayId : Status : 1070 Complete HTTP response received with status 401, contentType: text/html, body size:351. Access to 74DA is forbiden. HttpStatus:401 - Access denied

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/panjanek/EdiManager/issues/1

lawin1 commented 8 years ago

Thank you for explicit answer. I am sure that password is correct. This URL http://camera-ip/mobile.jpg on local LAN shows camera image. And yes, option -vvvvv shows more info, but it shows that everything is correct except when it reaches the final step: HttpStatus:401 - Access denied. A simple wget script is not enough in my case, because IP cam is connected behind a very restrictive firewall over 3G mobile internet. So I did one experiment. Installed Bluestacks App Player, official EdiView II from GooglePlay Store and captured packets with Wireshark (http://blog.guntram.de/?p=37). I don't understand what your code do, but for example I see one difference. EdiManager access this link "/camera-cgi/public/getSysteminfo.cgi?action=list&group=SystemInfo", but EdiView II - "/camera-cgi/pnv/param.cgi?action=listall". Another interesting observation. Official EdiView II during the first stages also receives "401 - Unauthorized" but tries to connect again. I would like to give you an exerpt from Wireshark log but can't post it here as I am not sure that I have removed all instances of password, MAC and PIN. How can I send you safely a Wireshark log?

panjanek commented 7 years ago

Thank you for your thorough investigation of this issue. Sorry It took me so long to respond. I suspect that downloading photo from IC-9110W may require sending different form of authentication token that the EdiManager sends now, or maybe there is a bug in the camera firmware that requires to make two requests to download the image to succeed. If you still have the communication logs you can send it to my dropbox folder using this file request link: https://www.dropbox.com/request/KU4QTeyRXtMFPaw0fdeu As far as I understand this dropbox feature, uploaded files will be visible only for me.