// kGroupAddress = 127.0.0.1
// kOutPort = 61880

Dim d As new Datagram
Dim clearMessage As String

clearMessage = ChrB(&hAD) + ChrB(&hBC) + ChrB(&hCB) + ChrB(&hDA)
clearMessage = clearMessage + ChrB(&h0) + ChrB(&h0) + ChrB(&h0) + ChrB(&h2)
clearMessage = clearMessage + ChrB(&h0) + ChrB(&h0) + ChrB(&h0) + ChrB(&h3)
clearMessage = clearMessage + ChrB(&h2)  //  + ChrB(&h0)

d.Address = kGroupAddress
d.Port = kOutPort 
d.Data = clearMessage

UdPSocket1.Write( d )

This did not produce any effect.  So then, I thought perhaps I needed another 
UDP socket as #1 was connected to port 2237.

Dim d As new Datagram
Dim clearMessage As String

clearMessage = ChrB(&hAD) + ChrB(&hBC) + ChrB(&hCB) + ChrB(&hDA)
clearMessage = clearMessage + ChrB(&h0) + ChrB(&h0) + ChrB(&h0) + ChrB(&h2)
clearMessage = clearMessage + ChrB(&h0) + ChrB(&h0) + ChrB(&h0) + ChrB(&h3)
clearMessage = clearMessage + ChrB(&h2)  //  + ChrB(&h0)

d.Address = kGroupAddress
d.Port = kOutPort 
d.Data = clearMessage

UdPSocket2.Write( d )

But still no result.

What am i missing here?

73, Ed
W1KOK 





> On Mar 26, 2019, at 1:33 PM, Bill Somerville <g4...@classdesign.com> wrote:
> 
> On 26/03/2019 19:54, Ed Stokes wrote:
>> OK… I think I get it now.
>> 
>> I am using 127.0.0.1 and port 61880 shows up in my debugger when I look at 
>> the datagram.
>> 
>> Is this the IP and port to which I should send the message?
>> 
> Hi Ed,
> 
> yes, that is correct. The Address and Port properties of the Datagram object 
> you get from UDPSocket.Read are the address and port of the sender and that's 
> what you should set in the reply Datagram (same two properties) to route it 
> back to the right WSJT-X instance.
> 
> Your first code sample was using the wrong UDPSocket.Write function, you need 
> the one that takes a Datagram type argument and you supply that with the 
> Address, Data, and Port properties set as above.
> 
> 73
> Bill
> G4WJS.
> 
> 
> 
> _______________________________________________
> wsjt-devel mailing list
> wsjt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wsjt-devel

_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to