Location: Client/Server Troubleshooting

Discussion: here is the error when trying to connect to TCPIP route direct to BAMReported This is a featured thread

Showing 6 posts
desmogger
desmogger
here is the error when trying to connect to TCPIP route direct to BAM
Jan 13 2011, 2:27 PM EST | Post edited: Jan 13 2011, 2:27 PM EST
Rebex.Net.ProxySocketException: No connection could be made because the target machine actively refused it. ---> Rebex.Net.ProxySocketException: No connection could be made because the target machine actively refused it. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 10.175.64.98:9886
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at 328075837.13357030529.151169660(String , IPAddress , Int32 )
--- End of inner exception stack trace ---
at 328075837.13357030529.151169660(String , IPAddress , Int32 )
--- End of inner exception stack trace ---
at 328075837.13357030529.362804169(IAsyncResult , String )
at 328075837.13357030529.15613119759(IAsyncResult , Int32 )
at Rebex.Net.ProxySocket.Connect(String serverName, Int32 serverPort)
at 328075837.1960841591..ctor(Telnet , ShellChannelOptions , TerminalOptions , Int32 , Int32 )
at Rebex.Net.Telnet.Rebex.TerminalEmulation.IShellChannelFactory.CreateShellChannel(TerminalOptions options, Int32 columns, Int32 rows)
at Rebex.TerminalEmulation.TerminalControl.Bind(IShellChannelFactory factory)
at Rebex.TerminalEmulation.TelnetTerminalControl.Connect()
at AirVision.DataSources.Controls.TelnetControl.Connect(String host, Int32 port)
at AirVision.DataSources.Views.LoggerDownload.LoggerEmulationView.Connect()
Do you find this valuable?    
Keyword tags: None
NSCAPCD
NSCAPCD
1. RE: here is the error when trying to connect to TCPIP route direct to BAM
Mar 2 2011, 2:25 PM EST | Post edited: Mar 2 2011, 2:25 PM EST
How are you "talking" to the BAM bob? What is the hardware involved? Do you find this valuable?    
desmogger
desmogger
2. RE: here is the error when trying to connect to TCPIP route direct to BAM
May 5 2011, 9:59 AM EDT | Post edited: May 5 2011, 9:59 AM EDT
"How are you "talking" to the BAM bob? What is the hardware involved?"
We purchased the B&B RS-232 to RJ-45 Ethernet device. This device plugs into the back of the BAM. Our internal network is wired CAT5 in the trailer. The BAM is set-up through the terminal server (the B&B box) as IP 192.168.1.25. On our Wireless Cellular Router I set up a route on PORT 4000 that looks for IP address 192.168.1.25
Then when a request comes in from the outside (I'm not gonna give out that IP Address) say 123.123.123.45:4000 it is routed directly to the internal IP address 192.168.1.25
Note: You cannot use PORT 9887 as a rout as that is reserved for the 8832 data logger. You have to set-up a route for that also.
Check with the Help file that is usually built-in to your Cellular router for exact directions on setting up Static Routes.
Do you find this valuable?    
NSCAPCD
NSCAPCD
3. Check your port number
May 5 2011, 11:17 AM EDT | Post edited: May 5 2011, 11:17 AM EDT
Bob I'm looking again at your error message, Take a look at your top line the exception error, I see that the IP address in that error line has the ESC8832's emulation port number, 9886, associated with it. If youre trying to communicate directly thorugh the serial server youre right you do need to use 4000 on a TCP/IP route to talk "through" the B&B serial server to the BAM. Why dont you message me your phone # and I'll give you a call. I dont use a wireless celluar router , but right now it would be easier to talk directly. For example my BAM comm routes (as I have them set up in the Server Configuration) use the IP address of the Serial Server box with port 4000.

Have you ever tested the B&B box by using hyperterminal from a laptop that is within your local network? In other words, ethernet connect the laptop directly into the back of the wireless router so that it "shares" the same side of the router as the serial server. Using hyperterminal configure a session that where th eHOST address is the IP of the serial box, the prot is 4000, and Connect using is TCP/IP (Winsock). If "things" are configured properly you should connect and get a blank screen fairly quickly. Then, and after hitting 3 CR's, you should get an "*" (asterisk) indicating youre communicationg thru th ebox to the BAM. If you cant then you have an issue with either the way the BAM is configured (unlikely) or the B&B Serial Server box.

Which makes me ask which serial port on the BAM are you using to plug in the serial server?
Do you find this valuable?    
desmogger
desmogger
4. RE: Check your port number
May 5 2011, 3:24 PM EDT | Post edited: May 5 2011, 3:24 PM EDT
"Bob I'm looking again at your error message, Take a look at your top line the exception error, I see that the IP address in that error line has the ESC8832's emulation port number, 9886, associated with it. If youre trying to communicate directly thorugh the serial server youre right you do need to use 4000 on a TCP/IP route to talk "through" the B&B serial server to the BAM. Why dont you message me your phone # and I'll give you a call. I dont use a wireless celluar router , but right now it would be easier to talk directly. For example my BAM comm routes (as I have them set up in the Server Configuration) use the IP address of the Serial Server box with port 4000.

Have you ever tested the B&B box by using hyperterminal from a laptop that is within your local network? In other words, ethernet connect the laptop directly into the back of the wireless router so that it "shares" the same side of the router as the serial server. Using hyperterminal configure a session that where th eHOST address is the IP of the serial box, the prot is 4000, and Connect using is TCP/IP (Winsock). If "things" are configured properly you should connect and get a blank screen fairly quickly. Then, and after hitting 3 CR's, you should get an "*" (asterisk) indicating youre communicationg thru th ebox to the BAM. If you cant then you have an issue with either the way the BAM is configured (unlikely) or the B&B Serial Server box.

Which makes me ask which serial port on the BAM are you using to plug in the serial server?"
We are not having any problems with the Direct Communication to the BAM now in fact we have been getting data hourly. Make sure you do set it to direct poll at 30 minutes after the hour The BAM is very busy at top of the hour and if you poll at top of the hour it will surely get confused and you will end up not getting anything back.
Do you find this valuable?    
desmogger
desmogger
5. RE: Check your port number
May 5 2011, 3:29 PM EDT | Post edited: May 5 2011, 3:29 PM EDT
Current Date: 5/5/2011 1:52 PM

Daily Parameter Report

5/5/2011

0 1 2 3 4 5 6 7 8 9 10 11 12 Summary
Parameter SiteName Avg Max RDS
CO TRACE MCMILLAN .043 .044 .044 .044 .044 .044 .044 .044 .043 9
NO MCMILLAN 0 0 0
NO2 MCMILLAN 0 0 0
NOX MCMILLAN 0 0 0
NOY MCMILLAN 43.46 43.75 44.01 44.1 44.28 44.43 44.41 43.97 42.89 43.92 44.43 9
OZONE_PPB MCMILLAN 0 0 0
PM10_CONTIN MCMILLAN 54 5 9 9 6 9 35 46 39 37 41 54 32 28.92 54 13
PM25 MCMILLAN 6 6 5 3 4 5 7 10 6 2 3 3 3 4.8 10 13
PM25VOL MCMILLAN .7 .7 .7 .7 .7 .7 .7 .7 .7 .7 .7 .7 .7 .7 .7 13
PMCOARSE MCMILLAN 48 -1 5 6 2 4 27 36 32 34 38 51 29 23.9 51 13
SO2 MCMILLAN .04 .04 .04 .04 .04 .04 .04 .04 .04 .04 .04 9

Above is the last bit of hata polled from the BAM and some other data from the ESC8832 lost the formatting in the cut and past.

Telnet in to the b&B server when I set-up with a laptop from inside the trailers ethernet network. Works great.
Do you find this valuable?