kmscript allow integrateto any device, to do that first you must agree the Terms of Integration
- kmscript software to arm-box
- the kmscript start by bat(windows) or sh(unix)
- you can add the play.bat or play.sh to OS startup
- if Startup Script and Script Variable are set, will run immediately without prompt
- to ready for user, just login to kmscript and setup that thing
- kmscript work without installer also no register, so just zip the kmscript to user
- kmscript software to Raspberry Pi/ Orange Pi
- boot and login to Raspberry Pi
- start the Terminal(or the shell)
- download the kmscript follow the start
- by default Raspberry Pi OS same as Ubuntu
- kmscript supported the Raspberry Pi / Orange Pi all GPIOpin and Camera
- kmscript also supported the Orange Pi(or all Pi with OTG enabled) turn the USB-OTG as physical keyboard and mouse device, see ab.VKM2
- for example the Pi Zerodebian/ubuntu ROM change nothing, just get an macro usb cableconnects the macro usb to OTG(the Pi) the other end to USB(the PC/Mobile), then change the keyboard engine to ab.VKM2
- but the Pi Lite2must change the dts to enable the OTG, for example the sun50i-h6-orangepi-lite2.dts, make sure the usb@5100000 is:
usb@5100000 {
compatible = "allwinner,sun50i-h6-musb\0allwinner,sun8i-a33-musb";
reg = < 0x5100000 0x400 >;
clocks = < 0x04 0x74 >;
resets = < 0x04 0x35 >;
interrupts = < 0x00 0x17 0x04 >;
interrupt-names = "mc";
phys = < 0x33 0x00 >;
phy-names = "usb";
extcon = < 0x33 0x00 >;
status = "okay";
dr_mode = "otg";
phandle = < 0x75 >;
};
- download the Camera engine form Marketif need, for example: kms-update-Camera-linux-armhf.zip
- then overwrite the kms directory, for exmaple:
cd /root/kms/../
unzip /tmp/kms-update-Camera-linux-armhf.zip
- let kmscript auto start by system boot, you have to append the command to /etc/rc.local before "exit 0", for example:
/root/kms/play.sh &
exit 0
- kmscript ROM for arm-box
- get the ROM and the device(arm-board)
- write the ROM to SD/TF card, such by win32diskimager
- plug the card into device
- boot from SD card
- get device IP somewhere, such the wifi router
- or start local kmscript with scanparameter to get the ip address
- browser http://IP:8181 to access the kmscript in the device
- enable the administrator account
- open the libjp.json with text editor, such notepad
- set the password(the value in administrator)
- save the file, login with that password will have max permissions(such Device CMD)
- by default, that password is empty mean disabled
- kmscript with exist project
- the kmscript allow set and get the Variable by channel for exist project
- the channel are HTTP protocol, keep-alive is option, cookies are not required
- the channel url always /module/kms/Channel, for example:
http://127.0.0.1:8181/module/kms/Channel?_fn=set&save_key=$A&value=123&pwd=567890
http://127.0.0.1:8181/module/kms/Channel?_fn=get&load_key=$A
http://127.0.0.1:8181/module/kms/Channel?_fn=wake - the channel set need an pwd, that value is password of administrator(see above), to set work must enable the administrator
- the wake call for end the waitfunction(as succeed, ignored if current step not in wait), for example:
- step1, Variable Checkthe $A > 0, goto step3 if succeed, continue if failed
- step2, wait 10000ms, goto step1 if succeed
- step3, do thing, after all goto step1 again
- (option) to keep-alive an long time connection, see HTTP keep-alive, to change the server timeout is value of ServerReadTimeOutMS in libjp.json
UI: li_tag