App Developer comport vs uart

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: 757
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

App Developer comport vs uart

Post by stefan.erni »

Hi Ben

I saw how comfortable the comport from the App Developer is. Sending receiving byte array looks great.
Is it possible to have the same in the Embedded for the uart. So that it match together.


regards
Stefan
UART_vs_Comport_2021-02-02_15-40-01.png
UART_vs_Comport_2021-02-02_15-40-01.png (41.71 KiB) Viewed 5220 times

BenR
Matrix Staff
Posts: 1738
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 603 times

Re: App Developer comport vs uart

Post by BenR »

Hi Stefan,

Yes good suggestion I have now upgraded the UART component for you with a few more hopefully useful functions.

It can now send and receive: strings, arrays, ASCII decimal, ASCII hexadecimal, ASCII float, 8-Bit Binary, 16-Bit Binary, 32-Bit Binary and 32-Bit Floating point Binary.

I'll see if I can add the additional functions to the COM port component as well as they should hopefully prove quite useful.

I'll hopefully get them both on the update system for you later tonight.

stefan.erni
Valued Contributor
Posts: 757
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: App Developer comport vs uart

Post by stefan.erni »

Hi Ben

Very good thank you.
I like it a lot.
Only my PIC32 doesn't like that.
As soon as I slide the uart into the 2D panel, I get an error.
But in the App Developper it seems to work.
emg_empty_uart.fcfx
(83.76 KiB) Downloaded 168 times

A question about the ByteArray. Is that only possible with bytes or can I also use an array with an integer? somehow?

regards

Stefan
Uart_2021-02-03_10-26-45.png
Uart_2021-02-03_10-26-45.png (13.95 KiB) Viewed 5190 times

stefan.erni
Valued Contributor
Posts: 757
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: App Developer comport vs uart

Post by stefan.erni »

Hi Ben

There is a small problem now with the uart in all my program (also in the ESP32). I cant compile anymore.

So I have looked to undo the last update, but there I saw for the cal_uart is not a lower version number available.
For the comport there is a lower number available but comport version is working anyway.

regards


Stefan

update_undo2_2021-02-04_9-32-03.png
update_undo2_2021-02-04_9-32-03.png (20.28 KiB) Viewed 5176 times
update_undo_2021-02-04_9-32-03.png
update_undo_2021-02-04_9-32-03.png (155.72 KiB) Viewed 5176 times

BenR
Matrix Staff
Posts: 1738
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 603 times

Re: App Developer comport vs uart

Post by BenR »

Thanks Stefan,

Should be fixed now.

stefan.erni
Valued Contributor
Posts: 757
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: App Developer comport vs uart

Post by stefan.erni »

Hi Ben

Yes perfect, It's working.


A question about the ByteArray.
From the hardware I have data as 8 channel in Integer (16-Bit Binary) and send it by bluetooth
and receive it in APP Developer. I prefer to send it in a block 512Byte every 100mSec
The good thing is in APP Developer I know there are 512byte to receive and I can wait for all.

At the moment I divide the the 16Bit in two 8 bit byte and in the APP Developer I do the opposite.

Is that the right way or can I also use an array with a 16 bit integer? somehow?

regards

Stefan

BenR
Matrix Staff
Posts: 1738
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 603 times

Re: App Developer comport vs uart

Post by BenR »

Hi Stefan,

The array functions currently ony work with 8-bit, I could add a 16-bit version too if that would help :D

User avatar
p.erasmus
Valued Contributor
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: App Developer comport vs uart

Post by p.erasmus »

Hi Ben

16bit version would be great Thanks :D :D a million
Regards Peter - QME Electronics

BenR
Matrix Staff
Posts: 1738
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 603 times

Re: App Developer comport vs uart

Post by BenR »

Hello,

I've added functions now for 16-bit array support in the UART and Com Port components. Let me know if any more would be useful, e.g. Long or Float.

stefan.erni
Valued Contributor
Posts: 757
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: App Developer comport vs uart

Post by stefan.erni »

Hi Ben

It looks very good. Thank you.
To send/receive long can be helpful.
With float maybe less.
For the PIC32 and App Developer it's perfect now!
Unfortunately with the fantastic ESP32, bluetooth isn't over the UART. It is made with a component Blue_SPP_ESP. If an upgrade were also possible there.

regards

Stefan
ESP32_2021-02-05_14-22-07.png
ESP32_2021-02-05_14-22-07.png (233.39 KiB) Viewed 5113 times

Post Reply