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

Title: No more data from port 7879?
Post 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
Title: Re: No more data from port 7879?
Post by: AirNav Support on March 22, 2008, 05:35:30 PM
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.
Title: Re: No more data from port 7879?
Post by: Harry on March 22, 2008, 05:37:22 PM
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.
Title: Re: No more data from port 7879?
Post by: AirNav Support on March 22, 2008, 05:43:04 PM
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.
Title: Re: No more data from port 7879?
Post by: Allocator on March 22, 2008, 06:00:40 PM
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]
Title: Re: No more data from port 7879?
Post by: Harry on March 22, 2008, 06:38:14 PM
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.


Title: Re: No more data from port 7879?
Post by: AirNav Support on March 22, 2008, 06:59:17 PM
there has been no change.
Title: Re: No more data from port 7879?
Post by: Harry on March 22, 2008, 09:32:41 PM
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.
Title: Re: No more data from port 7879?
Post by: Allocator on March 22, 2008, 09:44:12 PM
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.
Title: Re: No more data from port 7879?
Post by: AirNav Support on March 22, 2008, 09:45:17 PM
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.
Title: Re: No more data from port 7879?
Post by: Harry on March 23, 2008, 01:22:57 PM
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
Title: Re: No more data from port 7879?
Post by: Allocator on March 23, 2008, 02:05:28 PM
Harry, just out of interest, are you running RadarBox recorder as well?
Title: Re: No more data from port 7879?
Post by: Harry on March 23, 2008, 02:37:45 PM
Harry, just out of interest, are you running RadarBox recorder as well?

No.
Title: Re: No more data from port 7879?
Post by: Allocator on March 23, 2008, 02:45:23 PM
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.
Title: Re: No more data from port 7879?
Post by: AirNav Support on March 23, 2008, 04:09:12 PM
Thanks Harry we will flag that as bug.
Title: Re: No more data from port 7879?
Post by: Harry on March 24, 2008, 08:25:28 AM
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.