Mod5282, ehternet hung in data packet wait mode.
Posted: Wed Jun 09, 2010 1:24 pm
Help Help. I have a rookie ehternet problem here and I need help.
Due to a TCP IP timeout error on the PC, the PC cannot access the data on any of the netburners(32 in all) in the system. A Processor "Reset" is not allowed.
The netburners are stuck in a loop using this section of code:
----------------------------------------
while (1)
{
//other stuff
fdnet = accept(fdListen, &client_addr, &port, 1);
while (fdnet > 0)
{ ------------------stuck in this loop-------------
//other stuff
Timeout = 15;
TCP_IP_size = ReadWithTimeout(fdnet, RXBuffer, RX_BUFSIZE,Timeout);
if (TCP_IP_size < 0)
{
iprintf("Read FDNET exiting \r\n");
break;
}
//other stuff
}
}
---------------------------------------------------------------
They are stuck in this loop, because they never see "TCP_IP_size" go negative. I think the reason is that the PC Application our boys developed, just exited on a timeout error, and thus never closed the TCP/IP on any of these other netburners. We have like 32 netburners running like this, all running on the other side of one of 2 HUBs, one hub connects to two 16 port hubs.
Essentially we have delivered to our customers a whole bunch of systems, using the Mod5282 module.
All the netburner systems are in the Data Wait state on the ehternet, due to the PC Software exiting the application on a timeout from polling one of the systems. Our customer will not allow us to reset these netburners, since they are all running tests and have been for days. They are designed to run independantly of the PC just in case the PC goes offline.
1. Anyone know how to get this FEC to reset on a hardware ethernet reconnect, without resetting the MOD5282 processor?
a. Cannot access the RS232 port. (The thing resets when the chassis lid is loosened).
b. Can only access the RJ45 ethernet cable.
2. Anyone know of any low level software routines that will allow me to Send TCP IP packets without doing the initial Protocol authentication that takes place at the beginning of a connect?
Here is a solution I am thinking about. Take another Netburner, put it in the Data Packet receive mode (like the stuck one above), disconnect the Ethernet cable, and connect to one of the other stuck netburner modules, (crossover cable). I now have to netburners in the data receive mode, then I can take this spare Netburner and generate a disconnect message.
Anyone think this might work?
Thanks.
Due to a TCP IP timeout error on the PC, the PC cannot access the data on any of the netburners(32 in all) in the system. A Processor "Reset" is not allowed.
The netburners are stuck in a loop using this section of code:
----------------------------------------
while (1)
{
//other stuff
fdnet = accept(fdListen, &client_addr, &port, 1);
while (fdnet > 0)
{ ------------------stuck in this loop-------------
//other stuff
Timeout = 15;
TCP_IP_size = ReadWithTimeout(fdnet, RXBuffer, RX_BUFSIZE,Timeout);
if (TCP_IP_size < 0)
{
iprintf("Read FDNET exiting \r\n");
break;
}
//other stuff
}
}
---------------------------------------------------------------
They are stuck in this loop, because they never see "TCP_IP_size" go negative. I think the reason is that the PC Application our boys developed, just exited on a timeout error, and thus never closed the TCP/IP on any of these other netburners. We have like 32 netburners running like this, all running on the other side of one of 2 HUBs, one hub connects to two 16 port hubs.
Essentially we have delivered to our customers a whole bunch of systems, using the Mod5282 module.
All the netburner systems are in the Data Wait state on the ehternet, due to the PC Software exiting the application on a timeout from polling one of the systems. Our customer will not allow us to reset these netburners, since they are all running tests and have been for days. They are designed to run independantly of the PC just in case the PC goes offline.
1. Anyone know how to get this FEC to reset on a hardware ethernet reconnect, without resetting the MOD5282 processor?
a. Cannot access the RS232 port. (The thing resets when the chassis lid is loosened).
b. Can only access the RJ45 ethernet cable.
2. Anyone know of any low level software routines that will allow me to Send TCP IP packets without doing the initial Protocol authentication that takes place at the beginning of a connect?
Here is a solution I am thinking about. Take another Netburner, put it in the Data Packet receive mode (like the stuck one above), disconnect the Ethernet cable, and connect to one of the other stuck netburner modules, (crossover cable). I now have to netburners in the data receive mode, then I can take this spare Netburner and generate a disconnect message.
Anyone think this might work?
Thanks.