Do a little searching through the archives. Several things come off the ecm/sol fuse. Apparently a TCC solenoid wiring problem is a common cause of a code 31, a lot more common than a wastegate solenoid problem judging by the posts in the archives.
John