Page 1 of 1
USB serial component.
Posted: Sat Sep 28, 2024 10:20 am
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
Re: USB serial component.
Posted: Sat Sep 28, 2024 2:34 pm
by chipfryer27
Hi
Twenty characters is the default string length but you can change this under the variable properties.
Regards
Re: USB serial component.
Posted: Sat Sep 28, 2024 3:04 pm
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
Re: USB serial component.
Posted: Sat Sep 28, 2024 3:25 pm
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
Re: USB serial component.
Posted: Sat Sep 28, 2024 5:33 pm
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
Re: USB serial component.
Posted: Sat Sep 28, 2024 7:21 pm
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
Re: USB serial component.
Posted: Sun Sep 29, 2024 8:58 am
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