AirNav Systems Forum
AirNav RadarBox and RadarBox24.com => AirNav RadarBox and RadarBox24.com Discussion => Topic started by: Harry on March 22, 2008, 05:34:29 PM
-
Hi All,
With the use of version 1.5 I don't get any data from port 7879? Did I miss something about the data being send via ports? (BTW I did a search on port and on 7879, but couldn't find anything.
Harry
-
One you connect to the port, the data will be sent after 5 minutes. As the port is delayed.
This is a change from earlier versions where data which was 5 minute delayed will always be output. Now once you connect it starts to store data and begins outputting after 5 Min's.
-
I having a telnet session open for about 30 minutes, but still no data.
Harry
One you connect to the port, the data will be sent after 5 minutes. As the port is delayed.
This is a change from earlier versions where data which was 5 minute delayed will always be output. Now once you connect it starts to store data and begins outputting after 5 Min's.
-
Thats weird, we are running a few apps here with it. Close down RadarBox and open it again and connect and wait 5 mins.
If it doesn't work msg us and we will flag it as bug and have a look.
-
I having a telnet session open for about 30 minutes, but still no data.
Harry
One you connect to the port, the data will be sent after 5 minutes. As the port is delayed.
This is a change from earlier versions where data which was 5 minute delayed will always be output. Now once you connect it starts to store data and begins outputting after 5 Min's.
I can confirm that both port 7879 and 30003 do give data with V1.5, no question about it.
You can either use Windows Hyperterminal or run telnet in "DOS" from the Windows | Start | Run menu.
With Hyperteminal, you want:
Connect using TCP/IP
Host Address: localhost
Port: either 7879 or 30003 depending on what data you want.
Using telnet, once you have the DOS window, type:
open localhost 7879
or
open localhost 30003
See the attached files below for examples of data from the ports.
[attachment deleted by admin]
-
Ok, thanks. I restarted my pc and now I'm seeing data from port 7879.
My last question for today: did the format of the output changed during version 1.4 /1.5?
Harry
I having a telnet session open for about 30 minutes, but still no data.
Harry
One you connect to the port, the data will be sent after 5 minutes. As the port is delayed.
This is a change from earlier versions where data which was 5 minute delayed will always be output. Now once you connect it starts to store data and begins outputting after 5 Min's.
I can confirm that both port 7879 and 30003 do give data with V1.5, no question about it.
You can either use Windows Hyperterminal or run telnet in "DOS" from the Windows | Start | Run menu.
With Hyperteminal, you want:
Connect using TCP/IP
Host Address: localhost
Port: either 7879 or 30003 depending on what data you want.
Using telnet, once you have the DOS window, type:
open localhost 7879
or
open localhost 30003
See the attached files below for examples of data from the ports.
-
there has been no change.
-
Ok. Still there is something strange going on.
After closing down the telnet session and restarting a telnet session I do not get any data from the port. ( I can connect, but no data will appear) I have to restart my pc to get the data coming again.
Further I have been using a program to feed my website with hex codes for over 6 months now. After the switch to 1.5 my program isn't working any more. This morning (before 1.5) is was working and after the upgrade it doesn't.
Is it normal to do a restart to get the telnet version working again?
Harry
there has been no change.
-
You have to wait another 5 minutes each time you give the telnet command. Don't quite know how this works, but it is obviously a security restriction.
There is no need to restart your PC each time.
-
That sounds like a bug, that if you disconnect it won't let you see the data again unless you restart RadarBox. We will take a look at that.
You should though be able to get the hex codes as the data structure has not changed.
-
That sounds like a bug, that if you disconnect it won't let you see the data again unless you restart RadarBox. We will take a look at that.
You should though be able to get the hex codes as the data structure has not changed.
I’m not that technical, but maybe the follow makes some sense.
Sequence of starting programs makes a difference.
First I start my own developed program. Program will feed my site OK. A telnet session only will give <MODESMESSAGE></MODESMESSAGE> as output.
If I fist start telnet and then my own program, my program will not process the data (this is because it will only get <MODESMESSAGE></MODESMESSAGE> as input.
I’m still not sure if it is related or not, but closing down the telnet or my program : radarbox give network connection green, but the tab network will give network (0). If I go to the tab Network and uncheck Get flight from network and then I check this option again. The network will stay empty,
Closing down Radarbox will give an error.
Restarting Radarbox will give me back the network traffic. This moment I see on the tab Network (762).
A telnet session will give me or nothing or only: <MODESMESSAGE></MODESMESSAGE>
After restarting the pc everything seems to be back to normal and I can reproduce the above.
My program uses this code to make the connection
For opening:
m_socClient = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
Dim ip As IPAddress = IPAddress.Parse(host)
Dim iPortNo As Integer = port
Dim ipEnd As IPEndPoint = New IPEndPoint(ip.Address, iPortNo)
m_socClient.BeginConnect(ipEnd, AddressOf OnConnected, Nothing)
For closing connection:
Dim ar As IAsyncResult
Try
m_socClient.EndReceive(ar)
Catch ex As Exception
System.IO.File.AppendAllText("error.txt", ex.Message & vbNewLine)
End Try
Try
m_socClient.Shutdown(SocketShutdown.Both)
Catch ex As Exception
System.IO.File.AppendAllText("error.txt", ex.Message & vbNewLine)
End Try
Try
m_socClient.Close()
Catch ex As Exception
System.IO.File.AppendAllText("error.txt", ex.Message & vbNewLine)
End Try
Try
Dim e As New EventArgs
RaiseEvent evtDisconnected(Me, e)
Catch ex As Exception
' Trace.TraceError("ERROR in PortListener: " & ex.Message)
System.IO.File.AppendAllText("error.txt", ex.Message & vbNewLine)
End Try
-
Harry, just out of interest, are you running RadarBox recorder as well?
-
Harry, just out of interest, are you running RadarBox recorder as well?
No.
-
OK, no idea what the problem might be then.
The only time I had the disappearance of the Network traffic was with V1.4 I think - a previous version anyway. V1.5 is very stable for me.
-
Thanks Harry we will flag that as bug.
-
Thanks for that. It seems that connecting with telnet give good results (if you do not start another program). If I connect , for example with php), I dont; get good data:
$fp = fsockopen("127.0.0.1","7879", $errno, $errstr, 1);
while (!feof($fp))
$buff1=fgets($fp, 2048);
echo $buff1;
......
Thanks Harry we will flag that as bug.