JRSim_UIX
Member
- Joined
- Dec 7, 2015
- Messages
- 83
- Reaction score
- 16
- Country
- United Kingdom
I've found a bug with 1.2.13 (Stock & Custom) only when the camera is in Wifi Station Mode.
I've tried both - https://github.com/reaper7/XIAOMI_YI_MODE_SWITCH or https://dashcamtalk.com/forum/threads/camera-wifi-in-client-mode-working-ash-script-inside.12239/ to setup cameras to connect to router.
This is breaking Ponerine, C&C and my Brahma Xiaomi 360 app and any app that connects to try to take more than 1 photo when the camera is in Station Mode.
As I have no idea on how to customise or build firmware I thought I'd post the issue here.
I'm also reaching out to Xiaomi on the bug.
So in Stock firmware - reset camera all settings running 23L XY.
I connect the camera to my router.
and push this command via a socket to the camera to take a photo
{"msg_id":769,"token":1}
I expect to get the following back
{"rval":0,"msg_id":769}
{ "msg_id": 7, "type": "start_photo_capture" ,"param":"precise quality;off"}
{ "msg_id": 7, "type": "precise_capture_data_ready" }
{ "msg_id": 7, "type": "photo_taken" ,"param":"/tmp/fuse_d/DCIM/127MEDIA/YDXJ0373.jpg"}
{ "msg_id": 7, "type": "vf_start" }
but instead I only get back
{"rval":0,"msg_id":769}
This is fine it takes a photo..
but the second time I sent the cmd to take a photo it returns with
{"rval":-21,"msg_id":769}
and no photo is taken - I can't take any more unless I fully disconnect close the socket and create a new socket to connect to the camera - I shouldn't need to do this and I should get those additional messages above but I don't
Now in stock 1.2.13
If I change wifi mode on boot to ON.
Then it all works fine!
Woohooo a fix..
But the other problem is if I'm using Frieds custom firmware 1.2.13
https://dashcamtalk.com/forum/threads/xiaomi-yi-custom-firmware-with-lastest-revision.13557/
If I change wifi mode on boot to ON.
Then the wifi no longer connects to the router..
Also I tested the apps connecting direct to the camera in AP mode and I can't recreate the issue on either firmware and it works fine but this is a problem... As I'm writing software to connect to multiple cameras..
So this is why the Official Xiaomi app works - it's only when you swap the cameras into Station Mode the problem occurs.
I've tried both - https://github.com/reaper7/XIAOMI_YI_MODE_SWITCH or https://dashcamtalk.com/forum/threads/camera-wifi-in-client-mode-working-ash-script-inside.12239/ to setup cameras to connect to router.
This is breaking Ponerine, C&C and my Brahma Xiaomi 360 app and any app that connects to try to take more than 1 photo when the camera is in Station Mode.
As I have no idea on how to customise or build firmware I thought I'd post the issue here.
I'm also reaching out to Xiaomi on the bug.
So in Stock firmware - reset camera all settings running 23L XY.
I connect the camera to my router.
and push this command via a socket to the camera to take a photo
{"msg_id":769,"token":1}
I expect to get the following back
{"rval":0,"msg_id":769}
{ "msg_id": 7, "type": "start_photo_capture" ,"param":"precise quality;off"}
{ "msg_id": 7, "type": "precise_capture_data_ready" }
{ "msg_id": 7, "type": "photo_taken" ,"param":"/tmp/fuse_d/DCIM/127MEDIA/YDXJ0373.jpg"}
{ "msg_id": 7, "type": "vf_start" }
but instead I only get back
{"rval":0,"msg_id":769}
This is fine it takes a photo..
but the second time I sent the cmd to take a photo it returns with
{"rval":-21,"msg_id":769}
and no photo is taken - I can't take any more unless I fully disconnect close the socket and create a new socket to connect to the camera - I shouldn't need to do this and I should get those additional messages above but I don't
Now in stock 1.2.13
If I change wifi mode on boot to ON.
Then it all works fine!
Woohooo a fix..
But the other problem is if I'm using Frieds custom firmware 1.2.13
https://dashcamtalk.com/forum/threads/xiaomi-yi-custom-firmware-with-lastest-revision.13557/
If I change wifi mode on boot to ON.
Then the wifi no longer connects to the router..
Also I tested the apps connecting direct to the camera in AP mode and I can't recreate the issue on either firmware and it works fine but this is a problem... As I'm writing software to connect to multiple cameras..
So this is why the Official Xiaomi app works - it's only when you swap the cameras into Station Mode the problem occurs.
Last edited: