Page 2 of 2

Re: Serial port communication

Posted: Wed Mar 17, 2021 10:07 am
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

Re: Serial port communication

Posted: Wed Mar 17, 2021 10:33 pm
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

Re: Serial port communication

Posted: Thu Mar 18, 2021 3:57 pm
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

Re: Serial port communication

Posted: Thu Mar 18, 2021 6:50 pm
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