Hi 
i am trying to decode a UDP packet but it does not work somehow
I tried byteconvertor and still nothing
the UDP comes from
https://www.perle.com/products/iolan-ds-terminal-server.shtml#features
and it sends Raw serial data over UDP.
anyone knows how to
thank you
AH
the code
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
this is the output in the log
		 
	 

			
			i am trying to decode a UDP packet but it does not work somehow
I tried byteconvertor and still nothing
the UDP comes from
https://www.perle.com/products/iolan-ds-terminal-server.shtml#features
and it sends Raw serial data over UDP.
anyone knows how to
thank you
AH
the code
			
				B4X:
			
		
		
		Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form
    Dim UDPSocket1 As UDPSocket
End Sub
Sub AppStart (Form1 As Form, Args() As String)
    UDPSocket1.Initialize("UDP",2000, 20000)
MainForm = Form1
    MainForm.SetFormStyle("UNIFIED")
    MainForm.Show
End Sub
Sub UDP_PacketArrived (Packet As UDPPacket)
    Dim msg As String
    msg = BytesToString(Packet.Data, Packet.Offset, Packet.Length, "UTF8")
    Log(msg)
    Log("PACKET LENGTH:" & Packet.Length)
    Log("PACKET OFFSET:" & Packet.Offset)
    Log("PACKET STRING:" & Packet.toString)
End Subthis is the output in the log

 
				 
 
		 
 
		 
 
		 
 
		
 
 
		 
 
		 
 
		