-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected Serial Response #5
Comments
It looks like your PCI is doing a local echo. It's been a while since I looked at this, but I think this is intentional, at least partially. In your traceback, after But after that, I'm not sure what's going on. I tried to consult the documentation to make more sense of this, but Clipsal has taken that down. I also no longer have easy access to an installed CBus system to confirm that this is 100% intentional behaviour. From memory, during that reset/initialisation process, the PCI sends a bunch of replies, but the rest of the code never actually uses them, and we assume that everything else is configured correctly after that point. Some of the messages are in a different protocol mode that this software doesn't use, and they weren't fully documented. I didn't care about them too much with Did Also, if you're building your own application on the |
Thanks for the reply. The main issue appears to be a result of the library working via lineReceived but confirmation replies not being "\r\n" terminated. Subsequently, the confirmation character is being read as the start of the following reply. Besides the error in parsing these initial replies, the library does work. I've managed to find a copy of the serial dev guide for firmware version 4. So as a learning exercise, I've started my own C-Bus PCI interface library using Python 3 and asyncio in which I've used this library as a bit of a guide. |
A few months ago I found the docs again ( I've since moved all of this project to Python 3, and ended up moving it to the When I did this migration, I've also done lots of refactoring and replaced Twisted with asyncio, and built a protocol layer that handles some of C-Bus' protocol inconsistencies better. I'm pretty sure that the issue with confirmations not showing up until after a There are still some edge cases where this library is simulating a PCI where it doesn't give you events even when it could probably decode them (eg: using Unfortunately I haven't been able to fix local echo properly (it's complicated), and you will need to restart the program if the PCI loses power (but most likely if your PCI loses power your computer will too...). |
came across this when i googled my own weird output - similar to the above but seems slightly different??
|
I'm trying to use PCIProtocol to write my own python cbus-web interface but am having an issue where writes to the serial interface are getting an unexpected reply.
PC Interface: 5500PC
Firmware Version: 4.2.00
For example, when I create a new PCIProtocol, I get the following output:
Thanks!
The text was updated successfully, but these errors were encountered: