Xiaomi Yi Camera: GUI Control & Configure from PC (Win/Lin/Mac)

no idea what happen to me... maybe my notebook wifi is not stable today.

2 error happened.

C & C can't connect. must restart Yi Cam.
app-hang-1.png

File Download Failed for many times:
file-download-failed.png
 
luckylz: running two instances of C&C is not advised / recommended nor supported. It can and most probably will cause issues like this.
 
I'm not running 2 instances of C&C, but only print-screen together.
P.S. - my samsung tf card is 64GB within exfat mode. does the error related?
file-download-failed-1.png
 
next version will contain "debug" mode that will output all errors to a log so you can send it to me :)
i can't see how exfat would be a problem unless the cam has a problem with it.

PS: Enable expert mode and try tweaking chunk size, it may (probably will) increase the speed of file transfer for you.
 
dont know the possibilities, but is it possible to make an option to write an autoexec file und push it to sd card ?
for example
"write autoexec file" -> [] 1080p/60 at 30 mbit []1080p/60@30mbit []720p/30@30mbit []2k/30@ 30mbit
the user can choose what he want and can self configure his autoexec file.after chosen it, the file will be written on sdcard. I ask because i dont know these commands :-/
 
cabalus: That is already planned feature :) i needed to have the fileupload for that working first.
 
0.6.1 - Debug mode (expert)

- you can enable Debug mode under Expert menu which creates debug.txt with possible errors


I hope this will work as i couldn't test it properly, since ecqu's camera is offline now. But i tested it as much as possible...
Known problem - text in the menu (enable/disable) does not change unless you restart app. Can't properly do that without camera connected.
 
test 0.6.1 and I got the debug.txt
Code:
FileDChnk >'rem_size'<
 
the full debug is too long to post, I think this part can be usefull for you.

edited: silly me, I can upload it here.

Code:
JsonData >{u'rval': 0, u'msg_id': 15, u'param': u'0'}<
JsonData >{u'rval': 0, u'msg_id': 14}<
JsonData >{u'pwd': u'/var/www/DCIM', u'rval': 0, u'msg_id': 1283}<
JsonData >{u'rval': 0, u'msg_id': 1282, u'listing': [{u'100MEDIA/': u'0 bytes|2015-05-25 14:34:00'}]}<
JsonData >{u'pwd': u'/var/www/DCIM/100MEDIA', u'rval': 0, u'msg_id': 1283}<
JsonData >{u'rval': 0, u'msg_id': 1282, u'listing': [{u'YDXJ1155.mp4': u'391922457 bytes|2015-05-25 14:35:18'}, {u'YDXJ1156.mp4': u'147099554 bytes|2015-05-25 14:36:08'}, {u'YDXJ1157.mp4': u'494321168 bytes|2015-05-25 14:37:50'}]}<
JsonData >{u'msg_id': 7, u'type': u'battery', u'param': u'85'}<
JsonData >{u'type': u'battery', u'rval': 0, u'msg_id': 13, u'param': u'85'}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'fa463d353e68bd065972d0f154548278'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'f72ff56a5cb8f1eda2d836b37772e0d3'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'6c9ad051a00addb477bad38bd7188734'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'245737d0ca0db2ce6d0969794c6323c2'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'13a95890b5f0947d6f058ca9c30a3e01'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'13a95890b5f0947d6f058ca9c30a3e01'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'13a95890b5f0947d6f058ca9c30a3e01'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'13a95890b5f0947d6f058ca9c30a3e01'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'13a95890b5f0947d6f058ca9c30a3e01'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'13a95890b5f0947d6f058ca9c30a3e01'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'13a95890b5f0947d6f058ca9c30a3e01'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'13a95890b5f0947d6f058ca9c30a3e01'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'13a95890b5f0947d6f058ca9c30a3e01'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'13a95890b5f0947d6f058ca9c30a3e01'}]}<
JsonData >{u'rem_size': 8192, u'rval': 0, u'msg_id': 1285, u'size': 147099554}<
JsonData >{u'rval': -21, u'msg_id': 1285}<
FileDChnk >'rem_size'<
JsonData >{u'msg_id': 7, u'type': u'get_file_complete', u'param': [{u'bytes sent': 8192}, {u'md5sum': u'13a95890b5f0947d6f058ca9c30a3e01'}]}<
 

Attachments

  • debug.zip
    2.8 KB · Views: 3
Damnit, i forgot to debug outgoing messages as well... but this looks like network issues (weak wifi signal, interferrence, NIC issues, etc) that cause temporary delay which i didn't account for...
Try toying with the chunk size (decrease it at cost of lowering speed). And when i will have the camera available, i will try to rewrite it so it waits for "get_file_complete" message before sending another down request....
 
I just ordered the cam and stumbled on this thread. I am just amazed at the work that is going on, particularly Andy. The fact that you're doing all this without physical access to the cam is mind blowing.

I look forward to using the program once my cam arrives. Thank you to Andy and all others for your work.
 
@Andy_S, Sorry to trouble you again. I still have problem using C&C to download video.
even I download the same file using Chrome browser is much more faster than C&C.
I'm sooooo confusing about this.
Speed problem.png
 
What a coincidence, i am trying to boost the download speed right now :) I got up to 250kB for upload, but download is WAY slower :(.
 
well, right now i am at 130kB/s for download which is 6x faster, but still nowhere near chrome or droid app :/ No idea why tho :( gonna keep trying

330kB/s for upload. Gonna release updated version, pls test if you get better results. Best speed i got was on 4k chunk (which is thus now default)
 
Last edited:
Back
Top