Page 1 of 1

App Developer comport vs uart

Posted: Tue Feb 02, 2021 3:01 pm
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 5264 times

Re: App Developer comport vs uart

Posted: Tue Feb 02, 2021 8:26 pm
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.

Re: App Developer comport vs uart

Posted: Wed Feb 03, 2021 9:43 am
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 171 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 5234 times

Re: App Developer comport vs uart

Posted: Thu Feb 04, 2021 8:47 am
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 5220 times
update_undo_2021-02-04_9-32-03.png
update_undo_2021-02-04_9-32-03.png (155.72 KiB) Viewed 5220 times

Re: App Developer comport vs uart

Posted: Thu Feb 04, 2021 6:25 pm
by BenR
Thanks Stefan,

Should be fixed now.

Re: App Developer comport vs uart

Posted: Fri Feb 05, 2021 10:19 am
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

Re: App Developer comport vs uart

Posted: Fri Feb 05, 2021 10:55 am
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

Re: App Developer comport vs uart

Posted: Fri Feb 05, 2021 11:16 am
by p.erasmus
Hi Ben

16bit version would be great Thanks :D :D a million

Re: App Developer comport vs uart

Posted: Fri Feb 05, 2021 11:58 am
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.

Re: App Developer comport vs uart

Posted: Fri Feb 05, 2021 1:36 pm
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 5157 times