View unanswered posts | View active topics It is currently Wed Dec 19, 2018 8:30 am



Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Getting back into all this... 
Author Message
LQFP144 - On Top Of The Game
User avatar

Joined: Mon Mar 31, 2008 12:47 am
Posts: 568
Location: New Zealand, land of the long white burnout
walkercam wrote:
Progress report:

Finally got the serial connection to open up. The problem was being caused by this section in Serial.py:
Code:
        try:
            self._connection = conn = serial.Serial(
                s.port,
                baudrate    = s.baudrate,
                bytesize    = s.bytesize,
                parity      = s.parity,
                stopbits    = s.stopbits,
                timeout     = s.timeout,
                xonxoff     = s.xonxoff,
                rtscts      = s.rtscts,
            )

        except serialutil.SerialException, msg:
            raise comms.interface.CannotconnectException, msg

What I did was take it back to the most simple form of the serial.Serial command and changed it to serial.Serial(0). This worked. I slowly added back in the other operators until it shat itself. Turns out it doesn't like 's.port' for some reason. I hard coded it to be:
Code:
        try:
            self._connection = conn = serial.Serial(
                0,
                baudrate    = s.baudrate,
                bytesize    = s.bytesize,
                parity      = s.parity,
                stopbits    = s.stopbits,
                timeout     = s.timeout,
                xonxoff     = s.xonxoff,
                rtscts      = s.rtscts,
            )

        except serialutil.SerialException, msg:
            raise comms.interface.CannotconnectException, msg

And now it works. I turned on the TA board and packets of data started popping up in the tuner window :P

Aaron - Any ideas as to why the tuner might be unhappy with the s.port operator? I assume it works fine in linux?

Cheers guys.


Hey mate,

I'm guessing it doesn't like the port number being cast as a string, which I imagine happens when it is loaded from the config file. I will look into the code :)

_________________
Owner / Builder: 1983 Mazda Cosmo 12at (1200cc 2-rotor turbo) coupe [SPASTK]
165hp @ 6psi standard - fastest production car in japan Oct 82


Sat Oct 03, 2009 1:51 am
Profile WWW
LQFP144 - On Top Of The Game
User avatar

Joined: Mon Mar 31, 2008 12:47 am
Posts: 568
Location: New Zealand, land of the long white burnout
Hey mate,

This should be fixed in the devtrunk branch now ;)

Cheers,
Aaron

_________________
Owner / Builder: 1983 Mazda Cosmo 12at (1200cc 2-rotor turbo) coupe [SPASTK]
165hp @ 6psi standard - fastest production car in japan Oct 82


Sat Oct 03, 2009 3:13 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15205
Location: Home sweet home!
Good hacking Cam!! Good turn around time on the fix also :-)

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Sun Oct 04, 2009 8:51 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15205
Location: Home sweet home!
Cam, I believe the tuner is looking for an id of 261 not 301 for the datalog, grab the code from github (using git!) and get the compiler etc installed and build a pre-release of 0.0.20 to run against. You asked for me to send you mine, but that makes no sense in the medium term so you may as well get setup properly now. If not, I'll be emailing you binaries every few minutes at some point :-)

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Sun Oct 04, 2009 4:48 pm
Profile WWW
QFP80 - Contributor

Joined: Sun Jan 27, 2008 10:25 pm
Posts: 68
Thanks guys. Your replies have been very helpful.

I'll get the compiler set up tonight and have another go at it :)


Sun Oct 04, 2009 8:55 pm
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15205
Location: Home sweet home!
Sweet man, good to see you in on the action :-) Big things coming from this project, hard to remembr that good things take time though :-)

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Mon Oct 05, 2009 12:04 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 16 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF. ColorizeIt.