telmomarques / xiaomi-360-1080p-hacks

Hacks for the Xiaomi Mi 360 1080p camera (MJSXJ02CM).
761 stars 129 forks source link

How to control camera via telnet? #10

Closed funivan closed 4 years ago

funivan commented 5 years ago

Thanks for the hack. All works fine. I downgrade the firmware and install this hack. Then successfully login via telnet.

Here is my question: how can I turn the camera to the right or left from the telnet? Or execute other commands, for example, enable sleep mode. Thanks.

telmomarques commented 5 years ago

Hi, unfortunately I didn't have time to look at that, yet. There might be some way of accessing the GPIO directly, not sure.

CleverNamesTaken commented 5 years ago

I want to spend some more time looking at the GPIO, but uh... you can turn on and off the LED by controlling the content of /sys/class/gpio/gpio78/value OFF echo 0 > /sys/class/gpio/gpio78/value ON echo 1 > /sys/class/gpio/gpio78/value

I want to try to take a look at actually controlling the direction of the camera, but I need to find some time to investigate.

telmomarques commented 5 years ago

Nice work @CleverNamesTaken , thank you for the share!

Jialn commented 4 years ago

Thanks for the share. Is there any more progress now?

telmomarques commented 4 years ago

Duplicate of #21. @Jialn please see that issue, someone has made progress.

thewh1teagle commented 4 years ago

I want to spend some more time looking at the GPIO, but uh... you can turn on and off the LED by controlling the content of /sys/class/gpio/gpio78/value OFF echo 0 > /sys/class/gpio/gpio78/value ON echo 1 > /sys/class/gpio/gpio78/value

I want to try to take a look at actually controlling the direction of the camera, but I need to find some time to investigate.

Just want to update that you can control every led.

for yellow led:

ON :

echo 1 > /sys/class/gpio/gpio36/value

OFF:

echo 0 > /sys/class/gpio/gpio36/value

for blue led:

ON :

echo 1 > /sys/class/gpio/gpio78/value

OFF:

echo 0 > /sys/class/gpio/gpio78/value