|
HELP!
I'll ellaborate a little on the details of my previous posting:
My code (removing some CORBA detail) looks like this:
I have a class "nanOrbDemo_i" which has the following
constructor:
inline nanOrbDemo_i(){
if ( lnp_init(0,0,0,0,0) ){
cout << "LNP Init() Failed" <<endl;
}
else cout << "LNP Initialised" << endl;
};
Then in a particular method of this class, for debugging pusposes,
I have added the following simple code:
//DEBUGGING ....
char* testbuffer;
unsigned char testlen;
unsigned char testport;
unsigned char testhost;
unsigned char testaddress;
testbuffer = "GIOP";
testlen = 4;
testport = 1;
testhost = 0;
testaddress = (testhost << 4 | testport);
cout << "DEBUG: step 1 reached" << endl;
result = lnp_addressing_write(testbuffer, testlen ,testaddress, 8);
cout << "DEBUG: step 2 reached" << endl;
switch (result){
case TX_SUCCESS:
cout << "Transmitted" << endl;
case TX_FAILURE:
cout << "Collision" << endl;
default:
cout << "Error" <<endl;
}
cout << "DEBUG: step 3 reached" << endl;
//END DEBUGGING
cout << "\nExiting method " << endl;
My code never reaches "debugging step 2". When I compile and run this, the
data is successfully recieved by the RCX, but the lnp_addressing_write(..)
call never returns .....
Does anyone have any ideas, please? It's driving me mad,
Colin Ryan
In lugnet.robotics.rcx.legos, Colin Ryan writes:
> Hi
>
> Can anyone tell me why a call to lnp_addressing_write(...)
> might block? My environment seems okay. I have some simple
> clients written that have no difficulty in communicating
> wth the RCX, but I have one client ( a lot more complex)
> which seems to block every time I call the method.
>
> Has anyone ever experienced this?
>
> Colin
|
|
Message has 2 Replies: | | Re: Blockin LNP calls
|
| (...) ,testaddress, 8); It shouldn't be the real problem, but are you sure about the port paramenter? How about: result = lnp_addressing_write...estbuffer, testlen ,testaddress, testport); Bye, Paolo. --- Maier's Law: If the facts do not conform to (...) (24 years ago, 27-Aug-00, to lugnet.robotics.rcx.legos)
| | | Re: Blockin LNP calls
|
| (...) From the statement "data is received by the RCX" I assume you have this problem on the host system. What OS are you using? Also, how does your lnp_logical_write() routine look like? Eddie C. Dost ecd@skynet.be (24 years ago, 27-Aug-00, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Blockin LNP calls
|
| Hi Can anyone tell me why a call to lnp_addressing_write(...) might block? My environment seems okay. I have some simple clients written that have no difficulty in communicating wth the RCX, but I have one client ( a lot more complex) which seems to (...) (24 years ago, 26-Aug-00, to lugnet.robotics.rcx.legos)
|
8 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|