Serial port communication

For general Flowcode discussion that does not belong in the other sections.
mnfisher
Valued Contributor
Posts: 953
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

Re: Serial port communication

Post by mnfisher »

Thanks Ben,

Yes - that's probably the way to go...
The 'copy' route should have been so simple. Sadly it was not to be though. I kind of fell down a rabbit hole on that one...

Martin

mnfisher
Valued Contributor
Posts: 953
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

Re: Serial port communication

Post by mnfisher »

And an another idea...

Instead of using USB comms I tried a FTDI chip connected to Rx and Tx on the Arduino Then flow control works (at least when sending from RealTerm)

It seems Windows is ignoring XOff/Xon when sending data using USB serial comms. I'm baffled as to why it shouldn't work via USB (either from RealTerm or cmd prompt...) - it should support flow control. RealTerm occasional errors with data buffer too small for block - which may (or may not be) a clue?

So no further forward:-( Will have a play with AppInventor version too..

Martin

chipfryer27
Valued Contributor
Posts: 1145
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 282 times
Been thanked: 412 times

Re: Serial port communication

Post by chipfryer27 »

Hi

I've had bother in the past with USB/Serial when trying to implement flow control.

This is quite interesting

https://hackaday.io/project/16097-efort ... ng-xonxoff

Regards

mnfisher
Valued Contributor
Posts: 953
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

Re: Serial port communication

Post by mnfisher »

Thanks - that's interesting... I'd seen some of the posts about CuteCom (linked in the post)... Wish I hadn't spent so much time on it now - seems it really doesn't work..

It's odd though - there are many posts claiming it works too! I'm going to stick with my initial Python pseudo flow control - which worked well...

Martin

Post Reply