lj2057@163.com [nuttx]
2018-01-10 15:19:09 UTC
Hi Group,
I received an email from NuttX fan, he was asking about NuttX TCP/IP stack stability and reliability and he hoped I could help test it. Now I was running NuttX on Atmel SAMV71 Xplained Pro and DHCPC was enabled, but my board failed to get IP address from the router. Here is the log information (enabled debug feature in sam_emac.c and dhcpc.c):
dhcpc_request: Received OFFER from c0a80101
dhcpc_request: Send REQUEST
sam_txavail_work: ifup: 1
sam_transmit: d_len: 298 txhead[0]: 1
sam_interrupt_work: isr: 00000080 pending: 00000080
sam_interrupt_work: isr: 00000000 pending: 00000000
sam_interrupt_work: isr: 00000002 pending: 00000002
sam_recvframe: Entry rxndx[0]: 6
sam_recvframe: packet 6-11 (590)
sam_recvframe: rxndx: 11 d_len: 590
sam_receive: IPv4 frame
sam_recvframe: Entry rxndx[0]: 11
sam_recvframe: Exit rxndx[0]: 11
dhcpc_request: Received NAK
dhcpc_request: Broadcast DISCOVER
sam_txavail_work: ifup: 1
sam_transmit: d_len: 291 txhead[0]: 2
sam_interrupt_work: isr: 00000080 pending: 00000080
sam_interrupt_work: isr: 00000000 pending: 00000000
sam_interrupt_work: isr: 00000002 pending: 00000002
sam_recvframe: Entry rxndx[0]: 11
sam_recvframe: packet 11-12 (60)
sam_recvframe: rxndx: 12 d_len: 60
sam_receive: ARP frame
sam_recvframe: Entry rxndx[0]: 12
sam_recvframe: Exit rxndx[0]: 12
sam_interrupt_work: isr: 00000000 pending: 00000000
sam_interrupt_work: isr: 00000002 pending: 00000002
sam_recvframe: Entry rxndx[0]: 12
sam_recvframe: packet 12-1 (590)
sam_recvframe: rxndx: 1 d_len: 590
sam_receive: IPv4 frame
sam_recvframe: Entry rxndx[0]: 1
sam_recvframe: Exit rxndx[0]: 1
--------------------------------------------------------------------------------
It seemed that SAMV71 received broadcast from the router, but when tried to send message to router, it got no ACK.
If anyone could give a hint there I'd appreciated it!
Thanks & Best Regards
I received an email from NuttX fan, he was asking about NuttX TCP/IP stack stability and reliability and he hoped I could help test it. Now I was running NuttX on Atmel SAMV71 Xplained Pro and DHCPC was enabled, but my board failed to get IP address from the router. Here is the log information (enabled debug feature in sam_emac.c and dhcpc.c):
dhcpc_request: Received OFFER from c0a80101
dhcpc_request: Send REQUEST
sam_txavail_work: ifup: 1
sam_transmit: d_len: 298 txhead[0]: 1
sam_interrupt_work: isr: 00000080 pending: 00000080
sam_interrupt_work: isr: 00000000 pending: 00000000
sam_interrupt_work: isr: 00000002 pending: 00000002
sam_recvframe: Entry rxndx[0]: 6
sam_recvframe: packet 6-11 (590)
sam_recvframe: rxndx: 11 d_len: 590
sam_receive: IPv4 frame
sam_recvframe: Entry rxndx[0]: 11
sam_recvframe: Exit rxndx[0]: 11
dhcpc_request: Received NAK
dhcpc_request: Broadcast DISCOVER
sam_txavail_work: ifup: 1
sam_transmit: d_len: 291 txhead[0]: 2
sam_interrupt_work: isr: 00000080 pending: 00000080
sam_interrupt_work: isr: 00000000 pending: 00000000
sam_interrupt_work: isr: 00000002 pending: 00000002
sam_recvframe: Entry rxndx[0]: 11
sam_recvframe: packet 11-12 (60)
sam_recvframe: rxndx: 12 d_len: 60
sam_receive: ARP frame
sam_recvframe: Entry rxndx[0]: 12
sam_recvframe: Exit rxndx[0]: 12
sam_interrupt_work: isr: 00000000 pending: 00000000
sam_interrupt_work: isr: 00000002 pending: 00000002
sam_recvframe: Entry rxndx[0]: 12
sam_recvframe: packet 12-1 (590)
sam_recvframe: rxndx: 1 d_len: 590
sam_receive: IPv4 frame
sam_recvframe: Entry rxndx[0]: 1
sam_recvframe: Exit rxndx[0]: 1
--------------------------------------------------------------------------------
It seemed that SAMV71 received broadcast from the router, but when tried to send message to router, it got no ACK.
If anyone could give a hint there I'd appreciated it!
Thanks & Best Regards