Wrong packet size when sending UDP
jstjohnz
Posts: 91
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.
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