내 zolertia z1 센서에 웹 서버를 설치하고 싶습니다. http://wismote.org/doku.php?id=development:sample_codezolertia z1 웹 서버용 tunslip과 연결
을 내가 같은 프로그램을 tunslip 실행하면 : : 여기 단계 다음
"sudo를 ./tunslip -B 115200 -s는/dev/ttyUSB0를 192.168.1.1 255.255.255.0"
결과는 다음과 같습니다 :
slip started on ``/dev/ttyUSB0''
opened device ``/dev/tun0''
ifconfig tun0 inet `hostname` up
route add -net 192.168.1.0 netmask 255.255.255.0 dev tun0
ifconfig tun0
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.1.1 P-t-P:127.0.1.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tun0의 경로가 열렸지 만 시리얼 라인과 연결된 센서가 감지되지 않습니다. 끝에 "route add -net 192.168.1.2 netmask 255.255.255.255 dev tun0"이 없으며 그 이유를 모르겠습니다. TAP 또는 TUN 장치의 플래그를 변경해야하는지 모르겠습니다.
"로그인"으로 센서에 로그인하려고하면. 그것은 잘 작동합니다. 이 프로그램은 입니다.
나는 이것을 contiki와 우분투 12.04.4 LTS x86_64의 가상 이미지에서 시도했다. 두 OS에서 같은 결과를 얻었습니다.