This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RL-TCPNet as Client

Hi,
I have MCB2300 board. Using RL-ARM example LEDClient, all are OK. When I create new project and add all files of LEDClient project to my project (include LPC2300.s, main file,...), it does not work. I have not written any additional code line! Is it because of Project Option? What can I do with it? Please help. Thanks very much.

Parents
  • Let me explain :

    First, I do as RL-ARM user's guide (Example for Sending Data of RL-TCPnet\TCP Socket help).
    - tcp_get_socket is OK.
    - tcp_get_state returns TCP_STATE_CLOSED
    - after call tcp_connect function, socket state is TCP_STATE_SYN_SENT and stay in this state for ever. I think tcp_callback is not called.

    I test LEDClient, it run OK (connect to PC server program and send data OK)
    After that I create another project as above for testing (new project with all files of LEDClient project. after calling tcp_connect, tcp_callback return event TCP_EVT_ABORT

    I am new in RL-TCPnet. Please help. Thanks

Reply
  • Let me explain :

    First, I do as RL-ARM user's guide (Example for Sending Data of RL-TCPnet\TCP Socket help).
    - tcp_get_socket is OK.
    - tcp_get_state returns TCP_STATE_CLOSED
    - after call tcp_connect function, socket state is TCP_STATE_SYN_SENT and stay in this state for ever. I think tcp_callback is not called.

    I test LEDClient, it run OK (connect to PC server program and send data OK)
    After that I create another project as above for testing (new project with all files of LEDClient project. after calling tcp_connect, tcp_callback return event TCP_EVT_ABORT

    I am new in RL-TCPnet. Please help. Thanks

Children