View previous topic :: View next topic |
Author |
Message |
PaulKTM
Joined: 28 Feb 2008 Posts: 20 Location: Huntsville, AL
|
Posted: Sat Oct 12, 2013 11:11 am Post subject: UDP Broadcast |
|
|
I am having trouble with a UDP broadcast, I have a Arduino Ethernet (no Arduino code used) and I have a program that asks for a time update from NIST (via UDP) and that part works great. Now I do some other things in the program waiting for a flag (event when a voltage gets to a certain level) and then the program is to broadcast (255.255.255.255 on port 32111) the time the event occured. If I run Wireshark I can see the UDP packets on the network, however on the simple (VB6 is one and C is the other program) listening program I never see the data come into that port. I am hard pressed to understand why. The viewing of the network packets in Wireshark appears fine, and no errors and the data is in place. I am only sending a 18 byte message and it is at a low data rate. I am on Win7 Pro 64bit, but have tried on XP with same results. I am uising the latest version of BASCOM also. I have used UDP broadcast in several VB6 programs and the listener programs all work fine, just not with this setup. Thanks, Paul _________________ Paul Traufler |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sat Oct 12, 2013 7:52 pm Post subject: firewall? |
|
|
You see it in wireshark so it is send. Have you checked the firewall of your Windows machine? |
|
Back to top |
|
|
PaulKTM
Joined: 28 Feb 2008 Posts: 20 Location: Huntsville, AL
|
Posted: Sun Oct 13, 2013 11:59 am Post subject: |
|
|
Well the machine I'm running Wireshark on is the one that can see the packets, it is the VB6 program that does not see them. So I doubt any firewall setting would affect this. The C program has the same issue, as does Easy TC/IP and Hercules. Bottom line is ONLY Wireshark see's the packets. While I was doing some testing in Hercules I pressed Send button (I had "hello" in the send data) by mistake and the C program that listens to the UDP port did display the "hello" sent, I was thinking some and then I noticed the C program was getting the UDP packets from the Arduino then. So if I send some data to the Arduino things work! I'm really perplexed by this one! _________________ Paul Traufler |
|
Back to top |
|
|
Arera
Joined: 23 Sep 2007 Posts: 386 Location: Wuppertal, Germany
|
Posted: Tue Oct 15, 2013 1:28 pm Post subject: |
|
|
Just an idea:
Do you terminals wait for a CR/LF or any other termination of the incomming message? |
|
Back to top |
|
|
Arera
Joined: 23 Sep 2007 Posts: 386 Location: Wuppertal, Germany
|
Posted: Tue Oct 15, 2013 1:30 pm Post subject: |
|
|
Just an idea:
Do you terminals wait for a CR/LF or any other termination of the incomming message? |
|
Back to top |
|
|
PaulKTM
Joined: 28 Feb 2008 Posts: 20 Location: Huntsville, AL
|
Posted: Tue Oct 15, 2013 1:36 pm Post subject: |
|
|
NO, but I do add CR LF at the end anyway. On XP it works fine, so I guess it is a Win7 Pro (64bit) thing. _________________ Paul Traufler |
|
Back to top |
|
|
|