1 首先是串口收不到数据,开始以为是芯片问题,后来对比两版的原理图发现,此版取消了串口芯片的使能插座,导致CAN的芯片使能浮空,影响串口接收。用0欧电阻接地后一切OK.
ssid="singlechip-home"
Cell 03 - Address: 38:83:45:AF:F9:3E
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=26/70 Signal level=-84 dBm
Encryption key:on
ESSID:"singlechip-home"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000070463872
Extra: Last beacon: 450ms ago
IE: Unknown: 000F73696E676C65636869702D686F6D65
IE: Unknown: 010882848B960C121824
IE: Unknown: 030106
IE: Unknown: 0706555320010D14
IE: Unknown: 2A0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 32043048606C
IE: Unknown: 2D1A6E1003FF00000000000000000000000000000000000000000000
IE: Unknown: 331A6E1003FF00000000000000000000000000000000000000000000
IE: Unknown: 3D16060D0200000000000000000000000000000000000000
IE: Unknown: 3416060D0200000000000000000000000000000000000000
IE: Unknown: DD180050F2020101030003A4000027A4000042435E0062322F00
IE: Unknown: DD0900037F01010000FF7F
IE: Unknown: DD8A0050F204104A0001101044000102103B0001031047001000000000000010000000388345AFF93E1021000754502D4C494E4B1023000E544C2D57523734314E2F3734324E10240003312E3010420003312E301054000800060050F20400011011001D576972656C657373204E20526F757465722057523734314E2F3734324E100800020086103C000101
root@at91sam9x5ek:~# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
root@at91sam9x5ek:~# ifconfig wlan0 192.168.1.3
root@at91sam9x5ek:~# route add default gw 192.168.1.1 dev wlan0
root@at91sam9x5ek:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
root@at91sam9x5ek:~# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 14:E6:E4:21:C1:11
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4816 errors:0 dropped:193 overruns:0 frame:0
TX packets:4735 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3177476 (3.0 MiB) TX bytes:4782029 (4.5 MiB)
root@at91sam9x5ek:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=59 ttl=64 time=1042.249 ms
64 bytes from 192.168.1.1: seq=60 ttl=64 time=42.918 ms
64 bytes from 192.168.1.1: seq=61 ttl=64 time=28.599 ms
64 bytes from 192.168.1.1: seq=62 ttl=64 time=37.782 ms
64 bytes from 192.168.1.1: seq=65 ttl=64 time=117.674 ms
从PC传输文件到板子速度为300KB
从板子上传文件到PC速度为600KB
5 下一步增加USB摄像头。。。。。
6 花了几个小时移植好了网络摄像头
主要遇到的问题就是编译生成的input_uvc.so output_http.so 为X86的,结果导致程序无法运行
root@at91sam9x5ek:/mjpg-streamer# ./mjpg_streamer -i "/mjpg_streamer/input_uvc.s
o -d /dev/video2" -o "/mjpg_streamer/output_http.so -w /www"
MJPG Streamer Version: svn rev: exported
ERROR: could not find input plugin
Perhaps you want to adjust the search path with:
# export LD_LIBRARY_PATH=/path/to/plugin/folder
dlopen: /mjpg_streamer/input_uvc.so: cannot open shared object file: No s
uch file or directory
折腾半天后,重新更改Makefile 问题解决。
root@at91sam9x5ek:/mjpg_streamer# ./mjpg_streamer -i "/mjpg_streamer/input_uvc.s
o -d /dev/video1" -o "/mjpg_streamer/output_http.so -w /www"
MJPG Streamer Version: svn rev: exported
i: Using V4L2 device.: /dev/video1
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: MJPEG
Adding control for Pan (relative)
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Tilt (relative)
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Pan Reset
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Tilt Reset
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Pan/tilt Reset
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Focus (absolute)
UVCIOC_CTRL_ADD - Error: Invalid argument
mapping control for Pan (relative)
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Tilt (relative)
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Pan Reset
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Tilt Reset
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Pan/tilt Reset
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Focus (absolute)
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for LED1 Mode
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for LED1 Frequency
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Disable video processing
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Raw bits per pixel
UVCIOC_CTRL_MAP - Error: Invalid argument
o: www-folder-path...: /www/
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled
zc3xx: probe 2wr ov vga 0x0000
用浏览器登录
http://192.168.1.3:8080/?action=stream
文章评论(0条评论)
登录后参与讨论