Re: Latest CDC-ECM Jackdaw
It may be the buffer somewhere higher up in the stack. As in when writing debug data out, it just overwrites
its own buffer.
By comparison the USB-Ethernet side is very much more "lock-step". So instead of seeing packet corruption
you are more likely to see the stick just drops 802.15.4 frames as it had no space to write them when they were received.
-Colin
-----Original Message-----
From: Robert Quattlebaum [mailto:darco <at> deepdarc.com]
Sent: September 1, 2010 11:10 PM
To: Colin O'Flynn
Cc: ticso <at> cicely.de; 'Wouter Horré'; 'David Kopf'; 'Bernd Walter'; 'Contiki developer mailing list'
Subject: Re: Latest CDC-ECM Jackdaw
On Sep 1, 2010, at 2:56 PM, Colin O'Flynn wrote:
> Hi Robert,
>
>> I've also updated a lot of the USB busy-wait-loops to time out after a brief period so that it won't lock up
>>
>
> This was partially kept like that for “debugging reasons”. Basically if those loops fail to clear, it
would often mean the USB bus had something go wrong. The current code didn’t do a lot of error handling so
in reality it should have probably detected something else happened that is resulting in the transaction
not finishing. If the loops stay forever you could attach a JTAG-2 and see what the state of the USB
registers was and maybe get an idea what went wrong!
Speaking of USB issues... I was seeing some weird behavior on the virtual COM port, which may be indicative
of similar bad behavior on the CDC-ECM-DATA interfaces. It is most visible when I turn on IPv4 traffic on
the port so that I can see the "Packet is not IPv6, dropping" error messages:
> eth2low: Packet is not IPv6, dro33�eth2low: Packet is not IPv6, dropping
> eth2low: Packet is�x����O����eth2low: Packet is not IPv6, dropping
> eth2low: Packet is not IP��x��eth2low: Packet is not IPv6, dropping
> eth2low: Packet is not IP�eth2low: Packet is not IPv6, dropping
> eth2low: Packet is not IPv6, dropping
> eth2low: Packet is not IPv6, dropping
> eth2low: Packet is not IPv6, dro33�eth2low: Packet is not IPv6, dropping
> eth2low: Packet is not IPv6, dropping
> eth2low: Packet is not IPv6, dro33�eth2low: Packet is not IPv6, dropping
> eth2low: Packet is not IPv6, dro33�eth2low: Packet is not IPv6, dropping
Any idea what might be causing this weird corruption? I've looked over the code a few times, and nothing
stands out to me that might be the cause of this. I'm worried that similar corruption may be happening to
ethernet packets as well, although I don't believe I have seen this in practice.
__________________
Robert Quattlebaum
Jabber: darco <at> deepdarc.com
eMail: darco <at> deepdarc.com
www: http://www.deepdarc.com/
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Contiki-developers mailing list
Contiki-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/contiki-developers