more G-Labs products

Author Topic: Serial Port Stop Bits  (Read 1167 times)

April 16, 2016, 09:35:28 AM
Read 1167 times

Hoke

  • *
  • Information
  • Newbie
  • Posts: 10
I need to use the serial port, but require 2 stop bits

I can't find anything in the docs about how to specify the number of stop bits? Does this mean I need to do the nuts and bolts serial code myself? (I'd rather not hack a library, because then it's not upgrade-friendly)

Thanks

May 19, 2016, 08:34:48 PM
Reply #1

[email protected]

  • *****
  • Information
  • Hero Member
  • Posts: 271
Obviously I have a vested interest in this as we share the same alarm panel and have chatted via email, I am at the point where I need this too now so I can do some more testing.

I have made changes to the serial port library which should support passing through the correct types.

I need to test this and check whether the helper code in homegenie needs a tweak, and I've tried to make them optional so its not a breaking release..  If I am allowed back on the computer later I may try and do that tonight.

I'll test this and make any further changes then submit a pull request, it's currently here https://github.com/davidwallis3101/serialport-lib-dotnet if you want to try it though.

May 21, 2016, 08:28:47 PM
Reply #2

[email protected]

  • *****
  • Information
  • Hero Member
  • Posts: 271
3 Pull requests created to hopefully fix this issue for you.

Underlying serial port lib, pull req #5
Homegenie serial port helper pull req #278
Serial port example package pull req # 5

David

June 16, 2016, 12:53:14 PM
Reply #3

[email protected]

  • *****
  • Information
  • Hero Member
  • Posts: 271
These changes should now be in release v1.1-beta.522