小R科技-WIFI机器人网·机器人创意工作室

 找回密码
 立即注册
楼主: liuviking

【机器人创意工作室教程六】外网远程控制WIFI智能小车机器人(wifi模块作为客户端接入)

  [复制链接]
发表于 2016-6-4 18:44:44 | 显示全部楼层
Mar 17 11:35:04 Robot-Link syslog.info syslogd started: BusyBox v1.19.4Mar 17 11:35:04 Robot-Link kern.notice kernel: klogd started: BusyBox v1.19.4 (2014-03-17 04:29:05 PDT)Mar 17 11:35:04 Robot-Link kern.notice kernel: [    0.000000] Linux version 3.3.8 (liuviking@ubuntu) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #13 Tue Mar 18 00:02:57 PDT 2014Mar 17 11:35:04 Robot-Link kern.debug kernel: [    0.000000] MyLoader: sysp=3dd7cb87, boardp=f0717c55, parts=4852ecbeMar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] bootconsole [early0] enabledMar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] CPU revision is: 00019374 (MIPS 24Kc)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] SoC: Atheros AR9330 rev 1Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHzMar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] Determined physical RAM map:Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000]  memory: 02000000 @ 00000000 (usable)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] Initrd not found or empty - disabling initrdMar 17 11:35:04 Robot-Link kern.warn kernel: [    0.000000] Zone PFN ranges:Mar 17 11:35:04 Robot-Link kern.warn kernel: [    0.000000]   Normal   0x00000000 -> 0x00002000Mar 17 11:35:04 Robot-Link kern.warn kernel: [    0.000000] Movable zone start PFN for each nodeMar 17 11:35:04 Robot-Link kern.warn kernel: [    0.000000] Early memory PFN rangesMar 17 11:35:04 Robot-Link kern.warn kernel: [    0.000000]     0: 0x00000000 -> 0x00002000Mar 17 11:35:04 Robot-Link kern.debug kernel: [    0.000000] On node 0 totalpages: 8192Mar 17 11:35:04 Robot-Link kern.debug kernel: [    0.000000] free_area_init_node: node 0, pgdat 802d61e0, node_mem_map 81000000Mar 17 11:35:04 Robot-Link kern.debug kernel: [    0.000000]   Normal zone: 64 pages used for memmapMar 17 11:35:04 Robot-Link kern.debug kernel: [    0.000000]   Normal zone: 0 pages reservedMar 17 11:35:04 Robot-Link kern.debug kernel: [    0.000000]   Normal zone: 8128 pages, LIFO batch:0Mar 17 11:35:04 Robot-Link kern.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768Mar 17 11:35:04 Robot-Link kern.debug kernel: [    0.000000] pcpu-alloc: [0] 0 Mar 17 11:35:04 Robot-Link kern.warn kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128Mar 17 11:35:04 Robot-Link kern.notice kernel: [    0.000000] Kernel command line:  board=TL-WR703N console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrdMar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)Mar 17 11:35:04 Robot-Link kern.warn kernel: [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.Mar 17 11:35:04 Robot-Link kern.warn kernel: [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytesMar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] Writing ErrCtl register=00000000Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] Readback ErrCtl register=00000000Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] Memory: 29116k/32768k available (2115k kernel code, 3652k reserved, 406k data, 208k init, 0k highmem)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] NR_IRQS:51Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.080000] pid_max: default: 32768 minimum: 301Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.080000] Mount-cache hash table entries: 512Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.090000] NET: Registered protocol family 16Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.100000] MIPS: machine is TP-LINK TL-WR703N v1Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.350000] bio: create slab <bio-0> at 0Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.360000] Switching to clocksource MIPSMar 17 11:35:04 Robot-Link kern.info kernel: [    0.360000] NET: Registered protocol family 2Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.370000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.370000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.370000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.380000] TCP: Hash tables configured (established 1024 bind 1024)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.390000] TCP reno registeredMar 17 11:35:04 Robot-Link kern.info kernel: [    0.390000] UDP hash table entries: 256 (order: 0, 4096 bytes)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.400000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)Mar 17 11:35:04 Robot-Link kern.info kernel: [    0.400000] NET: Registered protocol family 1Mar 17 11:35:04 Robot-Link kern.debug kernel: [    0.410000] PCI: CLS 0 bytes, default 32Mar 17 11:35:04 Robot-Link kern.info kernel: [    9.910000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)Mar 17 11:35:04 Robot-Link kern.info kernel: [    9.920000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)Mar 17 11:35:04 Robot-Link kern.info kernel: [    9.920000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)Mar 17 11:35:04 Robot-Link kern.info kernel: [    9.930000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)Mar 17 11:35:04 Robot-Link kern.info kernel: [    9.940000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)Mar 17 11:35:04 Robot-Link kern.info kernel: [    9.950000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)Mar 17 11:35:04 Robot-Link kern.info kernel: [    9.950000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)Mar 17 11:35:04 Robot-Link kern.info kernel: [   10.070000] PPP generic driver version 2.4.2Mar 17 11:35:04 Robot-Link kern.info kernel: [   10.310000] ip_tables: (C) 2000-2006 Netfilter Core TeamMar 17 11:35:04 Robot-Link kern.info kernel: [   10.430000] NET: Registered protocol family 24Mar 17 11:35:04 Robot-Link kern.info kernel: [   10.450000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) DriverMar 17 11:35:04 Robot-Link kern.info kernel: [   10.460000] ehci-platform ehci-platform: Generic Platform EHCI ControllerMar 17 11:35:04 Robot-Link kern.info kernel: [   10.460000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1Mar 17 11:35:04 Robot-Link kern.info kernel: [   10.500000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000Mar 17 11:35:04 Robot-Link kern.info kernel: [   10.520000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00Mar 17 11:35:04 Robot-Link kern.info kernel: [   10.520000] hub 1-0:1.0: USB hub foundMar 17 11:35:04 Robot-Link kern.info kernel: [   10.520000] hub 1-0:1.0: 1 port detectedMar 17 11:35:04 Robot-Link kern.info kernel: [   10.550000] nf_conntrack version 0.5.0 (458 buckets, 1832 max)Mar 17 11:35:04 Robot-Link kern.info kernel: [   10.790000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) DriverMar 17 11:35:04 Robot-Link kern.info kernel: [   10.900000] usb 1-1: new high-speed USB device number 2 using ehci-platformMar 17 11:35:04 Robot-Link kern.info kernel: [   10.920000] i2c /dev entries driverMar 17 11:35:04 Robot-Link kern.info kernel: [   10.960000] Linux video capture interface: v2.00Mar 17 11:35:04 Robot-Link kern.info kernel: [   11.320000] gspca_main: v2.14.0 registeredMar 17 11:35:04 Robot-Link kern.info kernel: [   11.340000] usbcore: registered new interface driver uvcvideoMar 17 11:35:04 Robot-Link kern.info kernel: [   11.340000] USB Video Class driver (1.1.1)Mar 17 11:35:04 Robot-Link kern.info kernel: [   11.360000] uvcvideo: Found UVC 1.00 device USB2.0 Camera (1871:0142)Mar 17 11:35:04 Robot-Link kern.info kernel: [   11.370000] input: USB2.0 Camera as /devices/platform/ehci-platform/usb1/1-1/1-1:1.0/input/input0Mar 17 11:35:07 Robot-Link kern.info kernel: [   15.780000] device eth0 entered promiscuous modeMar 17 11:35:07 Robot-Link daemon.notice netifd: Interface 'lan' is now upMar 17 11:35:07 Robot-Link daemon.notice netifd: Interface 'loopback' is now upMar 17 11:35:07 Robot-Link user.notice firewall: Reloading firewall due to ifup of lan (br-lan)Mar 17 11:35:12 Robot-Link kern.info kernel: [   21.060000] device wlan0 entered promiscuous modeMar 17 11:35:12 Robot-Link kern.info kernel: [   21.100000] br-lan: port 2(wlan0) entered forwarding stateMar 17 11:35:12 Robot-Link kern.info kernel: [   21.100000] br-lan: port 2(wlan0) entered forwarding stateMar 17 11:35:14 Robot-Link kern.info kernel: [   23.100000] br-lan: port 2(wlan0) entered forwarding stateMar 17 11:35:16 Robot-Link authpriv.info dropbear[904]: Running in backgroundMar 17 11:35:18 Robot-Link user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!Mar 17 11:35:18 Robot-Link user.notice dnsmasq: Allowing 127.0.0.0/8 responsesMar 17 11:35:21 Robot-Link daemon.info dnsmasq[950]: started, version 2.66 cachesize 150Mar 17 11:35:21 Robot-Link daemon.info dnsmasq[950]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-authMar 17 11:35:21 Robot-Link daemon.info dnsmasq-dhcp[950]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12hMar 17 11:35:21 Robot-Link daemon.info dnsmasq[950]: using local addresses only for domain lanMar 17 11:35:21 Robot-Link daemon.warn dnsmasq[950]: no servers found in /tmp/resolv.conf.auto, will retryMar 17 11:35:21 Robot-Link daemon.info dnsmasq[950]: read /etc/hosts - 1 addressesMar 17 11:35:21 Robot-Link daemon.info dnsmasq-dhcp[950]: read /etc/ethers - 0 addressesMar 17 11:35:22 Robot-Link user.info MJPG-streamer [955]: starting applicationMar 17 11:35:22 Robot-Link user.info MJPG-streamer [955]: enabling daemon modeMar 17 11:35:22 Robot-Link user.info sysinit: enabling daemon modeforked to background (958)Mar 17 11:35:22 Robot-Link user.info MJPG-streamer [958]: MJPG Streamer Version: svn rev: exportedMar 17 11:35:22 Robot-Link user.info MJPG-streamer [958]: Using V4L2 device.: /dev/video0Mar 17 11:35:22 Robot-Link user.info MJPG-streamer [958]: Desired Resolution: 320 x 240Mar 17 11:35:22 Robot-Link user.info MJPG-streamer [958]: Frames Per Second.: 15Mar 17 11:35:22 Robot-Link user.info MJPG-streamer [958]: Format............: MJPEGMar 17 11:35:22 Robot-Link user.info MJPG-streamer [958]: init_VideoIn failedMar 17 11:35:22 Robot-Link daemon.notice ser2net[957]: ser2net startupMar 17 11:48:21 Robot-Link daemon.info hostapd: wlan0: STA 1c:4b:d6:92:24:74 IEEE 802.11: authenticatedMar 17 11:48:21 Robot-Link daemon.info hostapd: wlan0: STA 1c:4b:d6:92:24:74 IEEE 802.11: associated (aid 1)Mar 17 11:48:21 Robot-Link daemon.info dnsmasq-dhcp[950]: DHCPREQUEST(br-lan) 192.168.1.228 1c:4b:d6:92:24:74 Mar 17 11:48:21 Robot-Link daemon.info dnsmasq-dhcp[950]: DHCPACK(br-lan) 192.168.1.228 1c:4b:d6:92:24:74 OINVQ8RJ03JYYKAMar 17 11:50:13 Robot-Link daemon.info hostapd: wlan0: STA 1c:4b:d6:92:24:74 IEEE 802.11: disassociatedMar 17 11:50:16 Robot-Link daemon.info hostapd: wlan0: STA 1c:4b:d6:92:24:74 IEEE 802.11: authenticatedMar 17 11:50:16 Robot-Link daemon.info hostapd: wlan0: STA 1c:4b:d6:92:24:74 IEEE 802.11: associated (aid 1)Mar 17 11:50:16 Robot-Link daemon.info dnsmasq-dhcp[950]: DHCPREQUEST(br-lan) 192.168.1.228 1c:4b:d6:92:24:74 Mar 17 11:50:16 Robot-Link daemon.info dnsmasq-dhcp[950]: DHCPACK(br-lan) 192.168.1.228 1c:4b:d6:92:24:74 OINVQ8RJ03JYYKA
回复 支持 反对

使用道具 举报

发表于 2016-6-4 18:53:01 | 显示全部楼层
[img][/img]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-6-4 19:02:44 | 显示全部楼层

图片没有显示出来。但从你的这个日志看:Robot-Link user.info MJPG-streamer [958]: init_VideoIn failed
基本可以肯定你的摄像头不支持Mjpeg输出导致的。
回复 支持 反对

使用道具 举报

发表于 2016-6-4 19:59:32 | 显示全部楼层
谢谢楼主!感觉你真的很热心!我不知道怎么传图片啊,然后我给你发了淘宝的链接,说要省核才能通过
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-6-4 20:11:13 | 显示全部楼层
mimichen 发表于 2016-6-4 19:59
谢谢楼主!感觉你真的很热心!我不知道怎么传图片啊,然后我给你发了淘宝的链接,说要省核才能通过

看过了,那个摄像头不行。
回复 支持 反对

使用道具 举报

发表于 2016-6-4 20:18:59 | 显示全部楼层
liuviking 发表于 2016-6-4 20:11
看过了,那个摄像头不行。

知道啦,多谢楼主 ~~thank you~
回复 支持 反对

使用道具 举报

发表于 2016-6-9 23:07:16 | 显示全部楼层
请问:为什么每次设置到wwan设置时, 点击过确定修改后,就一直在配置 ,然后就没结果了,再也进不去了,只能重启WiFi模块后才能登陆  
回复 支持 反对

使用道具 举报

发表于 2016-6-10 15:53:21 | 显示全部楼层
楼主,这个视频为啥用别人的网络看不成,必须自己的网络才能看成哦。用别人的网络倒是可以实现控制,就是视频看不到,用自己的网络可以看见视频。谢谢
回复 支持 反对

使用道具 举报

发表于 2016-6-29 18:14:00 | 显示全部楼层
liuviking 发表于 2014-5-10 23:15
可以加密码。
修改/etc/init.d/mjpg-streamer文件
start函数里面,增加:

如此設定後 , 還是不用密碼就連上畫面了
查看系統日志如下
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1008]: starting application
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1008]: enabling daemon mode
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1011]: MJPG Streamer Version: svn rev: exported
Jun  4 05:36:23 Robot-Link user.info sysinit: enabling daemon modeforked to background (1011)
Jun  4 05:36:23 Robot-Link daemon.notice ser2net[1010]: ser2net startup
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1011]: Using V4L2 device.: /dev/video0
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1011]: Desired Resolution: 320 x 240
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1011]: Frames Per Second.: 15
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1011]: Format............: MJPEG
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1011]: www-folder-path...: /web/
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1011]: HTTP TCP port.....: 8080
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1011]: username:password.: disabled
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1011]: commands..........: enabled
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1011]: starting input plugin input_uvc.so
Jun  4 05:36:23 Robot-Link user.info MJPG-streamer [1011]: starting output plugin: output_http.so (ID: 00)

想請教mjpg-streamer 的啟動指令是寫在那裡?
回复 支持 反对

使用道具 举报

发表于 2016-6-29 18:42:22 | 显示全部楼层
为什么我设置外网后,用校园网可以打开,用其他的网就不行呢?在学校实验室测试的,可以,用宿舍的网就不行?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

新品特惠推荐上一条 /2 下一条

QQ|QQ技术咨询1|QQ技术咨询2|商务合作微信1:xiaorgeek001|商务合作微信2:XiaoRGEEK|诚聘英才|Archiver|手机版|小R科技-WIFI机器人网·机器人创意工作室 ( 粤ICP备15000788号-6 )

GMT+8, 2024-11-22 23:38 , Processed in 1.115852 second(s), 19 queries .

Powered by XiaoR GEEK X3.4

© 2014-2021 XiaoR GEEK

快速回复 返回顶部 返回列表