Alan Carvalho de Assis
2014-05-02 12:19:23 UTC
Hi everybody,
I'm testing netnsh on Viewtool board and I'm facing some strange
behavior. I'm using the default viewtool netnsh configuration.
It is important to explain I'm connecting the Ethernet cable linking
the viewtool board with my computer directly, there is not a
router/hub/switch involved.
The development machine is running Linux (Ubuntu 12.04 LTS) and I
configured the Wired Connection to Share with other computers (it runs
some kind of DHCP server locally).
Ubuntu configures the eth0 interface with IP 10.42.0.1 then in NuttX I
configured eth0 with IP 10.42.0.2 (using serial console to configure
NuttX IP) :
nsh> ifconfig eth0 10.42.0.2 up
cmd_ifconfig: Host IP: 10.42.0.2
stm32_ifdown: Taking the network down
stm32_ifup: Bringing up: 10.42.0.2
stm32_phyinit: Duplex: FULL Speed: 100 MBps
cmd_ifconfig: Gateway: default
cmd_ifconfig: Netmask: Default
Then on Ubuntu I can ping the board correctly:
$ ping 10.42.0.2
PING 10.42.0.2 (10.42.0.2) 56(84) bytes of data.
64 bytes from 10.42.0.2: icmp_req=1 ttl=64 time=0.230 ms
64 bytes from 10.42.0.2: icmp_req=2 ttl=64 time=0.122 ms
64 bytes from 10.42.0.2: icmp_req=3 ttl=64 time=0.125 ms
64 bytes from 10.42.0.2: icmp_req=4 ttl=64 time=0.125 ms
64 bytes from 10.42.0.2: icmp_req=5 ttl=64 time=0.132 ms
64 bytes from 10.42.0.2: icmp_req=6 ttl=64 time=0.127 ms
^C
--- 10.42.0.2 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 4998ms
rtt min/avg/max/mdev = 0.122/0.143/0.230/0.040 ms
But then I try to connect using telnet it "connect", but doesn't enter
on telnet session:
$ telnet 10.42.0.2
Trying 10.42.0.2...
Connected to 10.42.0.2.
Escape character is '^]'.
nsh_telnetmain: Session [4] Started
This moment the NuttX session in the serial console became
unresponsive, I noticed it divides the typed characters in two parts
(even and odd characters position). For example, if I type "ifconfig"
it will create two command lines: icni and fofg:
nsh>
NuttShell (NSH)
nsh> ifconfignsh: fconfig: command not found
nsh> ifconfignsh: fconfig: command not found
nsh> ifconfignsh: iconfig: command not found
nsh> ifconfig
nsh: ifconfigifconfigifconfigifconfig: command not found
nsh> ifconfignsh: ifconfigifconfig: command not found
nsh> icni
nsh: ifconfigicni: command not found
nsh> nsh: fofg: command not found
nsh>
nsh> fofgnsh: icni: command not found
nsh>
nsh: fofg: command not found
nsh> nsh>
nsh> fcnfgnsh: icori: command not found
nsh> ifconfignsh: fconfig: command not found
nsh> ifconfignsh: fconfig: command not found
nsh>
nsh: fcnfgifconfigifconfig: command not found
nsh> nsh>
nsh> nsh>
nsh> fofgnsh: icni: command not found
nsh> icni
nsh: fofgicni: command not found
nsh> nsh: fofg: command not found
nsh>
nsh> fofgnsh: icni: command not found
nsh> insh>
nsh: fofgi: command not found
nsh> nsh>
nsh> nsh>
nsh>
nsh> nsh: a: command not found
nsh>
nsh>
nsh> nsh: a: command not found
nsh> icni
nsh: icni: command not found
nsh> nsh: fofg: command not found
nsh>
nsh> ifconfigeth0 HWaddr 00:e0:de:ad:be:ef at UP
IPaddr:10.42.0.2 DRaddr:10.42.0.1 Mask:255.255.255.0
nsh>
eth0 HWaddr 00:e0:de:ad:be:ef at UP
IPaddr:10.42.0.2 DRaddr:10.42.0.1 Mask:255.255.255.0
nsh>
Finally I realized it and typed iiffccoonnffiigg, although as you can
see only 1 letter of each appeared in the last typed command, but when
I pressed enter again it executed the second line.
I enabled Network debug in NuttX, but didn't realize what is wrong.
Did you already face this kind of issue? How to track this issue to
find a solution?
Best Regards,
Alan
------------------------------------
Yahoo Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/nuttx/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/nuttx/join
(Yahoo! ID required)
<*> To change settings via email:
nuttx-digest-***@public.gmane.org
nuttx-fullfeatured-***@public.gmane.org
<*> To unsubscribe from this group, send an email to:
nuttx-unsubscribe-***@public.gmane.org
<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/
I'm testing netnsh on Viewtool board and I'm facing some strange
behavior. I'm using the default viewtool netnsh configuration.
It is important to explain I'm connecting the Ethernet cable linking
the viewtool board with my computer directly, there is not a
router/hub/switch involved.
The development machine is running Linux (Ubuntu 12.04 LTS) and I
configured the Wired Connection to Share with other computers (it runs
some kind of DHCP server locally).
Ubuntu configures the eth0 interface with IP 10.42.0.1 then in NuttX I
configured eth0 with IP 10.42.0.2 (using serial console to configure
NuttX IP) :
nsh> ifconfig eth0 10.42.0.2 up
cmd_ifconfig: Host IP: 10.42.0.2
stm32_ifdown: Taking the network down
stm32_ifup: Bringing up: 10.42.0.2
stm32_phyinit: Duplex: FULL Speed: 100 MBps
cmd_ifconfig: Gateway: default
cmd_ifconfig: Netmask: Default
Then on Ubuntu I can ping the board correctly:
$ ping 10.42.0.2
PING 10.42.0.2 (10.42.0.2) 56(84) bytes of data.
64 bytes from 10.42.0.2: icmp_req=1 ttl=64 time=0.230 ms
64 bytes from 10.42.0.2: icmp_req=2 ttl=64 time=0.122 ms
64 bytes from 10.42.0.2: icmp_req=3 ttl=64 time=0.125 ms
64 bytes from 10.42.0.2: icmp_req=4 ttl=64 time=0.125 ms
64 bytes from 10.42.0.2: icmp_req=5 ttl=64 time=0.132 ms
64 bytes from 10.42.0.2: icmp_req=6 ttl=64 time=0.127 ms
^C
--- 10.42.0.2 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 4998ms
rtt min/avg/max/mdev = 0.122/0.143/0.230/0.040 ms
But then I try to connect using telnet it "connect", but doesn't enter
on telnet session:
$ telnet 10.42.0.2
Trying 10.42.0.2...
Connected to 10.42.0.2.
Escape character is '^]'.
nsh_telnetmain: Session [4] Started
This moment the NuttX session in the serial console became
unresponsive, I noticed it divides the typed characters in two parts
(even and odd characters position). For example, if I type "ifconfig"
it will create two command lines: icni and fofg:
nsh>
NuttShell (NSH)
nsh> ifconfignsh: fconfig: command not found
nsh> ifconfignsh: fconfig: command not found
nsh> ifconfignsh: iconfig: command not found
nsh> ifconfig
nsh: ifconfigifconfigifconfigifconfig: command not found
nsh> ifconfignsh: ifconfigifconfig: command not found
nsh> icni
nsh: ifconfigicni: command not found
nsh> nsh: fofg: command not found
nsh>
nsh> fofgnsh: icni: command not found
nsh>
nsh: fofg: command not found
nsh> nsh>
nsh> fcnfgnsh: icori: command not found
nsh> ifconfignsh: fconfig: command not found
nsh> ifconfignsh: fconfig: command not found
nsh>
nsh: fcnfgifconfigifconfig: command not found
nsh> nsh>
nsh> nsh>
nsh> fofgnsh: icni: command not found
nsh> icni
nsh: fofgicni: command not found
nsh> nsh: fofg: command not found
nsh>
nsh> fofgnsh: icni: command not found
nsh> insh>
nsh: fofgi: command not found
nsh> nsh>
nsh> nsh>
nsh>
nsh> nsh: a: command not found
nsh>
nsh>
nsh> nsh: a: command not found
nsh> icni
nsh: icni: command not found
nsh> nsh: fofg: command not found
nsh>
nsh> ifconfigeth0 HWaddr 00:e0:de:ad:be:ef at UP
IPaddr:10.42.0.2 DRaddr:10.42.0.1 Mask:255.255.255.0
nsh>
eth0 HWaddr 00:e0:de:ad:be:ef at UP
IPaddr:10.42.0.2 DRaddr:10.42.0.1 Mask:255.255.255.0
nsh>
Finally I realized it and typed iiffccoonnffiigg, although as you can
see only 1 letter of each appeared in the last typed command, but when
I pressed enter again it executed the second line.
I enabled Network debug in NuttX, but didn't realize what is wrong.
Did you already face this kind of issue? How to track this issue to
find a solution?
Best Regards,
Alan
------------------------------------
Yahoo Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/nuttx/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/nuttx/join
(Yahoo! ID required)
<*> To change settings via email:
nuttx-digest-***@public.gmane.org
nuttx-fullfeatured-***@public.gmane.org
<*> To unsubscribe from this group, send an email to:
nuttx-unsubscribe-***@public.gmane.org
<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/