App Developper Comport receive IntArray extend

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
stefan.erni
Valued Contributor
Posts: 1012
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 193 times
Been thanked: 217 times

App Developper Comport receive IntArray extend

Post by stefan.erni »

Hi Ben

With the App Developper Comport receive IntArray I can just receive 255 Byte because the length is probably one byte instead of one Int size

With the uart in the hardware I can sende longer integer array

Can this be extended if it is not a big effort?

App receive just smaller array:
2025-03-21_15-54-41.PNG
2025-03-21_15-54-41.PNG (55.05 KiB) Viewed 4939 times
Hardware send big aaray:
2025-03-21_15-51-49.PNG
2025-03-21_15-51-49.PNG (26.87 KiB) Viewed 4939 times

stefan.erni
Valued Contributor
Posts: 1012
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 193 times
Been thanked: 217 times

Re: App Developper Comport receive IntArray extend

Post by stefan.erni »

Hi Ben

It is very easy and comfortable to send data array from processor to app and save it into a file. If these are integer array I can create wavefile very easily. I just have to create the header and it works. But unfortunately the appdevelopper can only receive small arrays. probably this makes my transfer too slow. would it be possible to extend this? or is there a better option?

Save to wave file is ok:
2025-04-07_15-51-15.PNG
2025-04-07_15-51-15.PNG (95.94 KiB) Viewed 4636 times

medelec35
Matrix Staff
Posts: 1954
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 626 times
Been thanked: 656 times

Re: App Developper Comport receive IntArray extend

Post by medelec35 »

Hi Stefan.
I have made the requested change for you.

Although you know how to update flowcode with the attached component ,I will all instructions for anyone who does not know.

Browse to this location using file explorer , it's hidden by default so just paste the link into your address bar.

Code: Select all

%ProgramData%\MatrixTSL\FlowcodeV10\Components
Place the attached component.
If Flowcode is already open, then you will need to reload your project for the new component to work
If you run any component updates, then the component you added will be overwritten, so it will stop working again (unless the component update has been pushed).

After testing, can you let me know how you get on.
Attachments
COMPort.fcpx
(51.15 KiB) Downloaded 29 times
Martin

stefan.erni
Valued Contributor
Posts: 1012
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 193 times
Been thanked: 217 times

Re: App Developper Comport receive IntArray extend

Post by stefan.erni »

Hi Martin

It looks like sending an array with the component uart is also limited to a byte value. I already have problems with sending
even if I can enter an integer value.

Component:
2025-04-08_16-33-54.PNG
2025-04-08_16-33-54.PNG (2.22 KiB) Viewed 4477 times
2025-04-08_16-29-09.PNG
2025-04-08_16-29-09.PNG (11.76 KiB) Viewed 4477 times
2025-04-08_16-30-54.PNG
2025-04-08_16-30-54.PNG (141.07 KiB) Viewed 4477 times

medelec35
Matrix Staff
Posts: 1954
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 626 times
Been thanked: 656 times

Re: App Developper Comport receive IntArray extend

Post by medelec35 »

Hi Stefan.
Can you see if the attached works as you want it to?
Attachments
COMPort.fcpx
(51.16 KiB) Downloaded 32 times
Martin

stefan.erni
Valued Contributor
Posts: 1012
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 193 times
Been thanked: 217 times

Re: App Developper Comport receive IntArray extend

Post by stefan.erni »

Hi Martin

APPDEVELOPPER:
Yes perfect! It's working now to receive bigger array than 255 values.

I have to be a little careful now it's no longer ret_byte now it's ret_int :)
2025-04-09_10-06-02.PNG
2025-04-09_10-06-02.PNG (134.13 KiB) Viewed 4328 times

--------------------------------------------------------------------------------------------------
STM BOARD:

With the component uart sending with the STM32 is a problem. but I have been able to solve that for the moment.
If I use the command send_array with a high value then it continues to send without stopping always the same data.

But Anyway I would like to change my board and use this hardware in the post.
I still have no information, how to do this with STM32F405 and USB connection

https://flowcode.co.uk/forums/viewtopic.php?t=2991


working this way, with ST-LINK/V2 on the board
2025-04-09_10-07-41.PNG
2025-04-09_10-07-41.PNG (181.75 KiB) Viewed 4328 times

medelec35
Matrix Staff
Posts: 1954
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 626 times
Been thanked: 656 times

Re: App Developper Comport receive IntArray extend

Post by medelec35 »

stefan.erni wrote:
Wed Apr 09, 2025 9:32 am
APPDEVELOPPER:
Yes perfect! It's working now to receive bigger array than 255 values.
That's great, sounds like you are happy with the changes.
stefan.erni wrote:
Wed Apr 09, 2025 9:32 am
I have to be a little careful now it's no longer ret_byte now it's ret_int :)
Yes , it made sense as if you are using a count of more than 255 numbers, then the value returned of Course should be a UInt or int.
In the release version probably better as UInt.
Martin

stefan.erni
Valued Contributor
Posts: 1012
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 193 times
Been thanked: 217 times

Re: App Developper Comport receive IntArray extend

Post by stefan.erni »

Hi Martin

Yes, this app-developper is really great. I send the data from USB or Bluetooth and can display it in a live chart or in different bars.
Simply save to CSV file and at the same time to wave file and also save an automatic printscreen at the end of the recording. Only the data transfer is (was) not yet good enough.

Maybe you could take this opportunity to change the other component on the embedded board.
I will test and post the result here again

component on the embedded board:
2025-04-09_16-00-41.PNG
2025-04-09_16-00-41.PNG (8.16 KiB) Viewed 4189 times

Post Reply