locked For Laurie VK3AMA & or Coder, Receiving UDP Rebroadcast from JTAlert into my Visual Basic Program


Thomas Mize KJ4GK
 

Here is what is so weird, using this same code, it receives the package JT Alert Sends out after making a contact just PERFECT! No weird Characters or anything. I have searched for over a month trying to figure this out else where so I am at my last change here.

Here is an example what I am receiving using the code I am using:

????WSJT-X???FT8N4JRS-15FT8 ?
?KJ4GKEM83dsEM84????????WSJT-X f??????~ CQ P49X FK52????WSJT-X???FT8N4JRS-15FT8 ?
?KJ4GKEM83dsEM84????????WSJT-X f???????~VE2WAT W0TLE R-07????WSJT-X f??????????M~WI0K AF4MT RR73????WSJT-

Even if I phrase it with regex to allow only letters and numbers to come through it still doesn't make since. It isn't coming through properly.

Here is my Visual Basic Code. I am using Visual Studio 2008

This is in my Timer1_Tick.................................................

  Try
            Dim RemoteIpEndPoint As IPEndPoint = New IPEndPoint(IPAddress.Any, 2334)
            Dim message As String = String.Empty
 
           Dim receiveBytes As Byte() = udpClient.Receive(RemoteIpEndPoint)
            message = System.Text.ASCIIEncoding.ASCII.GetString(receiveBytes)
 
            Dim byte0 As Byte() = New Byte(1472) {} '64999
            byte0(0) = 0
            message = message.Replace(System.Text.ASCIIEncoding.ASCII.GetString(byte0, 0, 1), String.Empty)
            RichTextBox1.Text &= message
 
        Catch
        End Try


This is in my form load:.........................
  udpClient.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, True)
        udpClient.Client.Bind(New IPEndPoint(IPAddress.Any, 2334))
 
        udpClient.Client.ReceiveTimeout = 100

This is being declared at the top.........................
Dim udpClient As UdpClient = New UdpClient()



I know you don't program in Visual Basic but there are similarities from what language to another and I was wondering  why It is receiving the UDP Packet from JT Alert after making a contact perfect but the constant packets of the decoded information that is being rebroadcast form JT Alert is looking like this.

I am been working on this so hard for over a month I am willing to even pay money for someone to help me.

Join Support@HamApps.groups.io to automatically receive all group messages.