RS232 Limited string length when sending / receiving dat

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times
Contact:

RS232 Limited string length when sending / receiving dat

Post 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
Last edited by tiny on Thu Jun 29, 2017 10:16 pm, edited 2 times in total.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: RS232 Limited string length when sending / receiving dat

Post 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.

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times
Contact:

Re: RS232 Limited string length when sending / receiving dat

Post 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 346 times
SendString.txt
(330 Bytes) Downloaded 309 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: RS232 Limited string length when sending / receiving dat

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: RS232 Limited string length when sending / receiving dat

Post 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 386 times
Let us know how you get on.

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times
Contact:

Re: RS232 Limited string length when sending / receiving dat

Post by tiny »

Hi
Many thanks to LeighM and Benj for the quick solution! It works wonderfully!

Christina

Post Reply