USB serial component.

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
electronick
Posts: 20
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 3:10 pm
Has thanked: 8 times

Flowcode v10 USB serial component.

Post by electronick »

Hi all :-).

Would it be possible to add an extra parameter(length) or at least increment to 40 in "send string"?
Now it seems to be 20 chars in length as maximum length.

Best regards
Nick

chipfryer27
Valued Contributor
Posts: 1374
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 331 times
Been thanked: 479 times

Re: USB serial component.

Post by chipfryer27 »

Hi

Twenty characters is the default string length but you can change this under the variable properties.

Regards

electronick
Posts: 20
Joined: Tue Dec 08, 2020 3:10 pm
Has thanked: 8 times

Re: USB serial component.

Post by electronick »

Hi chipfryer27.

Yes but it doesn´t seem to matter. If I change the target string length to 40, still only 20 will be sent?
Or am I missing something?

Regards
Nick

chipfryer27
Valued Contributor
Posts: 1374
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 331 times
Been thanked: 479 times

Re: USB serial component.

Post by chipfryer27 »

Hi

I cannot look at your chart just now, only on my phone but I think something must not be set correctly.

I send and receive many dozens if not hundreds of bytes over the UART. Indeed if you subscribe to ThingSpeak (for example) that string is about 80 odd characters to update the server.

Regards

electronick
Posts: 20
Joined: Tue Dec 08, 2020 3:10 pm
Has thanked: 8 times

Re: USB serial component.

Post by electronick »

Hi

Ok thanks for your answer.
I will just adapt the string, into an array or several string with <= 20 chars.

Regards
Nick

chipfryer27
Valued Contributor
Posts: 1374
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 331 times
Been thanked: 479 times

Re: USB serial component.

Post by chipfryer27 »

Hi

Something isn't right as you should not need to do that. What is your target? Is it imposing any limitation?

Can you connect to a terminal and see what comes out?

Regards

electronick
Posts: 20
Joined: Tue Dec 08, 2020 3:10 pm
Has thanked: 8 times

Re: USB serial component.

Post by electronick »

Hi.

The case is the same ragrdless the target MCU.
As I wrote above, no matter what I put into function "send string", only ever 20 chars get sent.
But really, its not that big of deal, I have just now redone it as I mentioned, and it works.
Thank you for your feedback though :-)

Best Regards
Nick

Post Reply