This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Sending text files thru hyperterminal on CC2430 with Serial App

Other Parts Discussed in Thread: CC2430

Hi

I have been running the Serial App sample program on the on 2 Smart RF Evalution boards (part of the CC2431ZDK)  and have been testing sending a plain text file over hyperterminal (38400 baud rate) like below:

text file -> hypeterminal<->em board with serial app (end dev) < OTA> em board with serial app (coord) <-> hyperterminal>

I have managed type text in to one hyper term and have it recieve correctly on the other end but, the communication over the air stops when i send a text file over the hyp term that is longer than say two lines/50bytes. It sends a part of the third line and then stops and then communication is lost in that direction.

How can I fix this?

Thanks

  • Sounds like the EM is getting overrun with incoming serial RX. Have you enabled flow control (CTS/RTS) on hyperterminal?

  • Hi,

    I had quite the same problem with the SerialApp on the CC2430 :

    I tried to send 10 bytes every 50ms from the ED to the Coordinator, but after about 200 or 300ms the communication was lost.

    I found the solution by changing the value of -DRESPONSE_POLL_RATE in the file f8wConfig.cfg : I gave a value under 50 to this parameter and then all was OK.

    I think you should try that.

    Another solution may be also to put a gap between each character sent by your hyperterminal : you can do that in the ASCII setup by giving a value in the character delay.

    Hope it helps,

    ioio59fr

     

  • Thanks,

    I tried turning on Hardware flow control on hyperterminal and it sent about two characters out of about 50 and then the sending hyperterminal froze for ages and had to ended. Am I supposed to change some values in the code to enable this to work?

    Could the memory on these boards cope with manually (i was thinking to push the incoming serial data to a stack and push out to send) buffering the incoming data?

    For my application, I ultimately need to transmit about 1-2kb (via serial and ota) of readings to a coordinator when it asks for it. Is that a possibility?

     

  • Thanks for the tip,

    Changing -DRESPONSE_POLL_RATE didn't seem to make a difference :(

    But the changing the character delay made difference but when i try to send a larger text file say 1kB, it makes it really slow and doesn't send all the data every time.

    Any other tips?

    Also if you have any ideas regarding my previous post that'd be great too.

    Thanks

  • Hi !

    I have similar problem and I also have another problem that hyperterminal seems to not change the line while it should be when finishing one line. So the new words just kept overwriting leading to the whole file end up being one line? Can you give me any advices? By the way, can you tell me how long you put the character delay in the hyperterminal?

    Sincerely

    Pang Bo

  • Hi,

    be ware of the OS you are using. Hyperterminal is a Windows application and expects their native delimiter which is "\r\n". Linux/Unix would just expect '\n'.

    So change your sender to generate the correct delimiter or use a terminal program which allows to change that. I recommend Teraterm.

    http://en.sourceforge.jp/projects/ttssh2/downloads/40947/teraterm-4.63.exe/

    regards

    spachner

  • Hi,

    be ware of the OS you are using. Hyperterminal is a Windows application and expects their native delimiter which is "\r\n". Linux/Unix would just expect '\n'.

    So change your sender to generate the correct delimiter or use a terminal program which allows to change that. I recommend Teraterm.

    http://en.sourceforge.jp/projects/ttssh2/downloads/40947/teraterm-4.63.exe/

    regards

    spachner

  • Hi,

    Thanks for reminading me. The previous problem solved. However, I have another problem now. When the baud rate is set to 9600bps, 19200bps, 38400bps or even higher value, the file received have many characters missing. This can be solved by setting the character delay to a certain number but this reduces the effective data rate. Well, what I mean is after setting the character delay, the effective file transfer rate is no longer the one you have set. How could I retain the original baud rate setting but decreasing the data missing in the file received? Thank you very much!

    Sincerely

    Pang Bo