Shop OBEX P1 Docs P2 Docs Learn Events
Wrong packet size when sending UDP — Parallax Forums

Wrong packet size when sending UDP

jstjohnzjstjohnz Posts: 91
edited 2010-12-14 14:30 in Accessories
Update: problem found, see new thread re bug in spi driver

Has anyone tried sending udp packets using the brilldea spi driver? I am seeing some outgoing packets being too short. I am trying to send 680-byte packets, but if I look at the ethernet data with wireshark I see that about half of my packets are 680 bytes, the rest are too short. The pattern of packet lengths is consistent and repeats every 12 packets.


For debugging, I just have this:
repeat
temp:=wiz.txUDP (0,@mybuffer) 'send a udp packet on socket 0 from mybuffer
waitcnt (cnt+second/4) '1/4 sec delay

The buffer contains a properly formatted 680-byte packet. It sends one packet every quarter second, as expected.

Comments

  • jstjohnzjstjohnz Posts: 91
    edited 2010-12-14 14:30
    I just noticed there is a newer version of the driver, and a comment re problems with udp packets > 1472 bytes. I will see if the new driver has any effect.
Sign In or Register to comment.