Page 1 of 1

RS232 Limited string length when sending / receiving dat

Posted: Tue Jun 27, 2017 8:58 pm
by tiny
Is it possible to send or receive a string with 400 byte or more via the RS232 (Wlan) interface?
I need this function to parameterize my circuit without having to split these strings.
Perhaps there is a simple way to realize this?

Christina

Re: RS232 Limited string length when sending / receiving dat

Posted: Wed Jun 28, 2017 8:47 am
by LeighM
Hi
Could you give more details?
Such as the target device and component you are using.
Your Flowcode program, or part of it demonstrating the issue.

Re: RS232 Limited string length when sending / receiving dat

Posted: Wed Jun 28, 2017 6:21 pm
by tiny
Hi
I am using FC 7.2, dsPIC33 ECIO. What I intend is that I send between 200 and 400 characters long strings over Wlan (ESP8266) from the PC to the MCU (and vice versa), which are then stored in the serial EEprom (parameters and texts).
Attached is a transmission protocol and a short testroutine, which sends me to my PC program a string. 253 characters and CrLF are possible. This limitation should not actually exist with a 16Bit MCU, but maybe I have programmed something wrong!

Christina
Test_Send_LongString.fcfx
(26.75 KiB) Downloaded 370 times
SendString.txt
(330 Bytes) Downloaded 353 times

Re: RS232 Limited string length when sending / receiving dat

Posted: Thu Jun 29, 2017 9:52 am
by LeighM
Thanks for the information.
Wow, it's a bug, or a limitation at least, in our UART(RS232) component, which is limiting the SendString to 255 characters.
I guess that has been enough for most applications over the years, but we will get this extended and get back to you.

Re: RS232 Limited string length when sending / receiving dat

Posted: Thu Jun 29, 2017 10:05 am
by Benj
Hello,

I think this updated component should solve the problem for both transmit and receive, download and simulation.

Simply drop the file into your "Flowcode 7/components" folder and restart Flowcode to load in the changes.
RS232.fcpx
(15.41 KiB) Downloaded 426 times
Let us know how you get on.

Re: RS232 Limited string length when sending / receiving dat

Posted: Thu Jun 29, 2017 10:54 am
by tiny
Hi
Many thanks to LeighM and Benj for the quick solution! It works wonderfully!

Christina