Xiaomi console access

luckylz

Active Member
Joined
Apr 8, 2015
Messages
414
Reaction score
107
Country
China
I will try usleep later.

Code:
sleep 1 <-- wait for 1 second

usleep 1 <-- wait for 1 micro-second

1 second = 1000,000 us
 
Last edited:

funnel

Active Member
Joined
Apr 21, 2015
Messages
122
Reaction score
111
Country
Slovenia
Guys, "usleep ms" works great, don't make it so complicated :)

Can you give an example script? Usleep doesn't work for me.

it just outputs

-ambsh: usleep: command not found!
 

luckylz

Active Member
Joined
Apr 8, 2015
Messages
414
Reaction score
107
Country
China
I test usleep, like:
Code:
t gpio 6 sw out1
usleep 400
t gpio 6 sw out0
... ...
but the LED twinkle very very very fast ! even I set a long value
Code:
t gpio 6 sw out1
usleep 400000
t gpio 6 sw out0
... ...
so I just use the milisecond script
 

nutsey

Well-Known Member
Joined
May 12, 2015
Messages
619
Reaction score
571
Location
Turkey
Country
Russian Federation
Can you give an example script? Usleep doesn't work for me.

it just outputs

-ambsh: usleep: command not found!
I was playing with beeps after telnet session and it worked for me, but now I can't reproduce that. So I guess it doesn't work with default settings, sorry for misinforming.
 

luckylz

Active Member
Joined
Apr 8, 2015
Messages
414
Reaction score
107
Country
China
Thanks for @funnel
I test with Yi Cam to play the Jingle Bells rythom
attached the autoexec just for fun
 

Attachments

  • autoexec-jinglebells.zip
    517 bytes · Views: 53

intoi

Member
Joined
May 25, 2015
Messages
56
Reaction score
6
Country
Philippines
I wonder if it's possible to controll the LED brightness or turn off some of them to conserve battery.
 

ReNDaR

Member
Joined
Mar 28, 2015
Messages
45
Reaction score
5
Country
Philippines
^you can do that on the app.
 

intoi

Member
Joined
May 25, 2015
Messages
56
Reaction score
6
Country
Philippines
Oh really??! ofcourse I know that :D . I'm was thinking of more controll than just Turning all the lights ON and OFF or just leave the red lights on when video recording. More like, less brightness on the power LED ring or turning some of the power LED ring off.
 

Andy_S

Active Member
Joined
May 5, 2015
Messages
621
Reaction score
193
Country
Czech Republic
you can desolder some LEDs :D
 

Andy_S

Active Member
Joined
May 5, 2015
Messages
621
Reaction score
193
Country
Czech Republic
Well, it was a joke. They are placed on flex cable which is basically plastic and that isn't too much heat resistant...
 

intoi

Member
Joined
May 25, 2015
Messages
56
Reaction score
6
Country
Philippines
Aren't flex cables made of high temp material? Similar to a Kapton tape?
And by the looks of it, LEDs can easily be desoldered.

aWVSkP7.jpg
 

Andy_S

Active Member
Joined
May 5, 2015
Messages
621
Reaction score
193
Country
Czech Republic
well, if you feel up for it, then as i said, be my guest :)
 

valdi99

Member
Joined
May 29, 2015
Messages
42
Reaction score
6
Country
Poland
Can I set certain shutter speed to lets say 1/60sec. in video mode, and auto-gain/auto ISO?
What would be the command in autoexec.ash?
 

luckylz

Active Member
Joined
Apr 8, 2015
Messages
414
Reaction score
107
Country
China
Aren't flex cables made of high temp material? Similar to a Kapton tape?
And by the looks of it, LEDs can easily be desoldered.
wifi-enhanced.png
Hi, @intoi, what's this use for? wifi enhancement?
 

intoi

Member
Joined
May 25, 2015
Messages
56
Reaction score
6
Country
Philippines
No, I was just trying to minimize the wifi signal interference with the mic or the circuitry inside which I suspect to be making the crackling noise. I'm not sure if a ferite bead/choke will work but as soon as I found one I'll replace it with that. I don't like that there is a plactic there considering the cam heats up a lot.
 

Andy_S

Active Member
Joined
May 5, 2015
Messages
621
Reaction score
193
Country
Czech Republic
intoi, can you provide example of that cracking noise? Most preferably in as silent room as possible so only the cracking will be recorded.
Try these situations:
• wifi off, camera stationary
• wifi on, camera stationary
• shaking the camera in hand

believe it or not, but i have quite good ears and i may be able to tell whats causing it. I should receive my camera soon, but since this is intermittent problem, i may not have it.
 

intoi

Member
Joined
May 25, 2015
Messages
56
Reaction score
6
Country
Philippines
@Andy_S - I am uploading sample clips to g-drive. Will post the link once done uploading.

EDIT: here is the link:
https://drive.google.com/folderview...hSeDNvQzFFQmhrQjV0ZllJMWdRbGJKSm8&usp=sharing



intoi, can you provide example of that cracking noise? Most preferably in as silent room as possible so only the cracking will be recorded.
Try these situations:
• wifi off, camera stationary
• wifi on, camera stationary
• shaking the camera in hand

believe it or not, but i have quite good ears and i may be able to tell whats causing it. I should receive my camera soon, but since this is intermittent problem, i may not have it.
 

Andy_S

Active Member
Joined
May 5, 2015
Messages
621
Reaction score
193
Country
Czech Republic
thanks, downloaded.will listen to them in a short while when i get to my pc.
 
Top