Sean Nelson

Obviously I'm lacking my daily double straight shots of espresso.

Skip to: Content | Sidebar | Footer

Site Navigation

Port Settings Saved on Exit, Apply chosen Settings on Port Connect.

27 October, 2009 (21:46) | BusPirate | By: Sean Nelson

Today I decided to implement and test proper setting of the Baud Rate, Parity, etc. I wanted to ensure that everytime the Bus Pirate is opened that the settings chosen on the Settings Tab would be used. Everything was working out fine until I was testing the changes and found out, after hours of scratching my head, that the way I wrote the autoconnection code didn’t allow enough time to create all the Widgets and Information visible in the GUI when I needed to access the information from the GUI to initially connect to the Bus Pirate on first startup. Also, everything is created in one to many hierarchy. The MainWindow now holds/creates everything from the Binary Mode code (which includes Serial Connections) and Settings management code to each GUI Tab. The Binary Mode code creates a new Serial Connection, but doesn’t open/start it. The Settings Management code only handles reading settings at startup and writes the settings to the configuration file before completely exiting the Application. Now you have to manually Open the connection and initialize the Bus Pirate. I don’t know of any way of the application to check and automatically open the Bus Pirate. The GUI as it is, is pretty much finalized on layout and such. The work still to be done is the SPI, I2C, 1Wire implementation; also RawWire needs to be added soon and GUI tabs designed.

If you have any Ideas or would like to help, please visit the project page and download the source code and help out.

Google Code Project Page

Write a comment





Get Adobe Flash playerPlugin by wpburn.com wordpress themes