I'm using a serial connection via Bluetooth to read results from an IMU. I'm done writing some low level methods setting up the basic connection. But when writing the other classes (e.g. visualize or calculate) I'm continuously closing and reopening the serial connection and the Bluetooth port. This puts stress on the Bluetooth driver and the port will not open after a certain amount of uses.
I'm using Spyder with Python 3.4 on a Windows 7 64bit laptop with an integrated Bluetooth device. I can't change the OS but i can install software.
Is there a way I can keep the serial_connection class running whilst programming other classes which use the serial_connection class?