This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions,
flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.
Hi All,
I have installed RCM2200 for 1 years.
I could't communicate and ping to some modules.
I don't know why ???
This version ,I compile with DC7.04T2 and don't have watchdog in my
code.
Please help me , Is there some bugs in my code ?
cofunc int basic_tcp[4](tcp_Socket *tcp_sock, int port, char *buf,char
sock_i){
s = (sock_type *)tcp_sock;
tcp_listen(s, port, 0, 0, NULL, 0); // wait for a connection
timeout_[sock_i]=SEC_TIMER;
while((-1 == sock_bytesready(s)) && (0 == sock_established(s)))
{
if(SEC_TIMER>(timeout_[sock_i]+Time_out_lan)) goto OUT;
if(SEC_TIMER>(timemax[sock_i]+300)) goto OUT;
yield;
}
timemax[sock_i]=SEC_TIMER;
while(sock_established(s) && (tcp_tick(s)!=0)) {
if(SEC_TIMER>(timemax[sock_i]+300)) goto OUT;
length = sock_fastread(s, buf, MAX_BUFSIZE);
. . .
}
OUT:
sock_abort(s);
return (1);
}
main(){
costate {
timemax[1]=SEC_TIMER;
wfd basic_tcp[0](&Socket_1, 502, buf1,1);
sock_close(&Socket_1);
}
if(SEC_TIMER>(timemax[1]+300)) sock_close(&Socket_1);
}
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )