Author Topic: Sending a Long String  (Read 731 times)

Hamed Jim

  • Newbie
  • *
  • Posts: 2
  • Never Stop Thinking
    • View Profile
Sending a Long String
« on: January 28, 2015, 06:33:16 pm »
Hi there,
I'm going to send a long string every 20ms. I wanna send 158 characters between '*' and '#'.
1. Is there any special configuration for nrcomm1 ?
2. Is it necessary  to send #13#10 as end of packet?
3. What happens when Com port socket unplug during sending data?

Thanks all of you, specially Roman   :)

Hamed Jim

  • Newbie
  • *
  • Posts: 2
  • Never Stop Thinking
    • View Profile
Re: Sending a Long String
« Reply #1 on: January 31, 2015, 11:12:23 am »
Hey Guys!

I tried to send a 160 characters as I said before. It was not successful. I used less characters and finally it was successful at 80 character. What is the problem?
This is my command to send String:
Code: [Select]
  nrComm1.SendString( '*'+ListBoxCode.Items[LineNumber] + '#' + EndOfPacket );

peer

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Sending a Long String
« Reply #2 on: February 10, 2015, 01:58:07 pm »
Hi, what is the baudrate ? It must be higher then 56k because otherwise you run out of time...