Repository navigation
hi3518ev200_lite_baolian-11r6w25-hx20y: IR lamps, a pelco command, and iwlist - #224
Conversation
…d iwlist gpio 63 boots as an ADC input and picks the night lamps, high for IR and low for white, measured on the camera in OpenIPC/firmware#2675. Select IR on every boot: the white lamps flash every few seconds unless the light sensor is covered. pelco moves the mount on the RS-485 header. The kernel has no ttyAMA1 and could not turn the transceiver round if it had, so it drives UART1's registers with the sequence that panned the mount on that camera. CFG80211_WEXT lets iwlist scan with the mt7601u, which the WebUI's Wi-Fi page relies on. This device has its own kernel config, so it needs its own line.
PR Summary by QodoEnable Baolian IR lamps, Pelco-D PTZ, and Wi-Fi scanning
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1.
|
…the bus Speed is matched by shape: ash read 08 as octal and failed in the checksum with the transceiver already in send, holding the bus. Any failed write now stops the script, a UART that never drains is reported instead of treated as sent, and the transceiver goes back to listening on every way out.
Three things the reporter of OpenIPC/firmware#2675 needs on the Baolian 11R6W25-HX20Y. The first two come from tests on that camera; the third does not have camera results yet.
Night lamps. gpio 63 boots as
SAR_ADC_CH1and, once muxed, picks the lamps: high for IR, low for white. The camera's own light sensor switches them on and off. Reported on the camera: the white lamps flash every 4-5 seconds unless the sensor hole is covered, somuxes.shselects IR on every boot. gpio 9 and gpio 64 had no visible effect, so they stay out of it.pelco. Moves the mount on the RS-485 header (board pins 4 and 5):pelco left|right|up|down [speed], thenpelco stop. The 4.9 kernel leaves UART1 disabled, and its pl011 driver has no RS-485 direction handling, so the script drives UART1's registers with the sequence that panned the mount on that camera.CONFIG_CFG80211_WEXT=y. This device has its own kernel config, so it needs its own copy of OpenIPC/firmware#2760. Without it,iwlistcan't scan with the MT7601U and the WebUI's Wi-Fi page stays empty.Testing
pelco: UART1 emitted these frames, the direction pin ended low, and bad arguments exited before touching the UART:08or64is refused before any hardware write. A failed UART write and a UART that never drains both exit 1, and gpio 47 ends low.mt7601uandcfg80211load,muxes.shleaves gpio 63 as a high output, andpelcois installed as an executable.iwlistscan. The reporter will test the image once it's published. QEMU doesn't model the pin mux.