surv_camera
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| surv_camera [2024/02/27 09:43] – [Configuration] memeruiz | surv_camera [2024/04/09 23:31] (current) – [Configuration] memeruiz | ||
|---|---|---|---|
| Line 142: | Line 142: | ||
| ln -s camera1 / | ln -s camera1 / | ||
| chown -R www-data: | chown -R www-data: | ||
| + | |||
| + | === UART + Wanderer === | ||
| + | |||
| + | In motioneyeOS things are a bit different: | ||
| + | |||
| + | For activating the UART raspberry pi zero w port: | ||
| + | |||
| + | Edit / | ||
| + | |||
| + | Add this: | ||
| + | |||
| + | dtoverlay = miniuart-bt | ||
| + | |||
| + | / | ||
| + | |||
| + | With this configuration two uart units are activated | ||
| + | |||
| + | Bluetooth is not necessary to be disabled. Apparently it is already disabled on MotionEyeOS. Also the console is not redirected to the serial. | ||
| + | |||
| + | Test with a loopback cable between tx and rx and with this test program: | ||
| + | |||
| + | |||
| + | import serial | ||
| + | test_string = "Test serial port ..." | ||
| + | port_list = ["/ | ||
| + | for port in port_list: | ||
| + | try: | ||
| + | serialPort = serial.Serial(port, | ||
| + | print (" | ||
| + | bytes_sent = serialPort.write(test_string) | ||
| + | print (" | ||
| + | loopback = serialPort.read(bytes_sent) | ||
| + | if loopback == test_string: | ||
| + | print (" | ||
| + | else: | ||
| + | print (" | ||
| + | serialPort.close() | ||
| + | except IOError: | ||
| + | print (" | ||
| + | |||
| + | == Wanderer == | ||
| + | |||
| + | For the serial connection to the wanderer we used: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | It must be converted to python2 along with several dependencies | ||
| + | |||
| + | It works! | ||
| + | |||
| + | == references == | ||
| + | |||
| + | https:// | ||
| + | https:// | ||
| + | |||
surv_camera.1709027039.txt.gz · Last modified: 2024/02/27 09:43 by memeruiz
