Various code to manage motor hardware
anjoy-motor drives the zoom/focus/iris lens motors and the
pan/tilt head of Anjoy AF camera modules over their motor-MCU UART
(Pelco-D-style frames), and decodes the MCU's live position reports.
Protocol recovered from a live MTF45-4G_AF.
zenointel-sd2n4g drives the pan/tilt stepper head of the
Zenointel SD-2N-4G (Goke GK7205V510) directly over memory-mapped PL061 GPIO — no
vendor kernel module and no vendor app, so it also runs under OpenIPC. The GPIO
map, half-step phase table and per-axis config were reverse-engineered from the
stock firmware (motor.ko/gpioStep.ko). The lens is fixed — no motorized
zoom/focus on this model.
pelcodtui is an ncurses interface for Pelco-D PTZ controller
settings and manual movement. Camera profiles describe controller-specific
commands without hard-coding them in the application.
Learning approach for autofocus
-
XM AF Module description Function Command List on p.6-10
-
Driver Manuals on stepper motor drivers - http://www.relmon.com/en/index.php/list/13/33.html
-
Some code for ms41929 motor driver - https://download.csdn.net/download/u011212383/10668636
-
Driver for ms32006 - https://github.com/song7788/driver_for_ms32006