PortScans

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Post Reply
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

PortScans

Post by LT401Vette »

When you create a new Project or go to Comm settings on the Menu, TunerStudioMS does a port scan to find all serial options and populate the drop down. There have been a number of problems reported where this is the root cause.

It seems some devices can cause delay in the scan, or hang :P. On my laptops with a real serial port, the scan is very quick and populates no problem. However if I am running on BlueTooth, I will generally get a 5-7 second delay. Some usb to serial cables may have the same trouble. I like to use bluetooth, I can leave my bench units where ever and connect from my laptop anywhere in the house.

In 0.95 I have put the scan on a separate thread, so if it is slow or hanging it won't get in the way of startup or settings opening. Also I have made the drop down so you can just type in what you need to. However maybe I need to get rid of that "Scanning Ports...' verbiage if a hang is not a terribly uncommon problem.

I am also looking at changing the way it scans, something not as thorough, more light weight.

Please let me know if this is causing you trouble and if you know what device or cable it is that seems to be causing the delay/hang.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
devojet
Experienced MS/Extra'er
Posts: 309
Joined: Sat Dec 30, 2006 6:00 am
Location: Gold Coast, Australia

Re: PortScans

Post by devojet »

My Mate has a "car pc" and when we tried Tuner studio it would not show up any com ports at all when setting up the new project but the program didn't hang. The computer has an internal Com port (Com 1) which works fine with megatune. If you require details of the pc let me know and I will get them off my mate.

My HP laptop with a PCMCIA duel serial card works fine with tuner studio.

edtit: I should have mentioned this was with ver 0.94.

Cheers

Daniel
26 Chev hotrod with a 1UZFE and MS3x, Flex fuel, GPIO Transmission control and LCDash.
Twin turbo LS3 powered Race boat with MS3pro and GPIO.
MS2 on a 22r in a Hilux (mates car).
MS2extra on a turbo EF Falcon (brothers car).
Toyota Supra 1jz MS2extra, COP.
13B Turbo MS2extra.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: PortScans

Post by LT401Vette »

Good info. What OS, Windows?
The way the port scan works now, it grabs all the ports and cycles through to filter out non-serial. This is what the RXTX comm package I am using does by default, so it can hang on even a non serial port. I think I need to improve this scan method.

With 0.95 you should be able to type in the port name and connect, even if it didn't come up in the scan.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Kaas
Helpful MS/Extra'er
Posts: 113
Joined: Tue Jun 27, 2006 2:08 am
Location: Denmark
Contact:

Re: PortScans

Post by Kaas »

I have now tried both a serial adaptor and bluetooth, but I cant get it to connect :-(

And I have tried 2 diffent box's. One with a hi_res10F code and one with B&G stock code, and same results.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: PortScans

Post by LT401Vette »

B&G Stock code, I'm not surprised... I am need to get a fresh chip that still has the B&G code on it to test against. I wouldn't worry, but the B&G base code has a different firmware signature than the reset. the rest are strings, that one return a numeric value. So I would like to test it to see it it is detecting that signature correctly.

Now as for the HiRes... What is happening? Is it detecting any Ports for the drop down?
Can you send me your TunerStudioLogFile.txt from your install dir? p_tobin@yahoo.com
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Kaas
Helpful MS/Extra'er
Posts: 113
Joined: Tue Jun 27, 2006 2:08 am
Location: Denmark
Contact:

Re: PortScans

Post by Kaas »

Hi Phil.
At this try I am using the serial adaptor and it is set a COM1. As far as I can see, then TS cant find the adaptor maybe it has something to do with a driver or something. Both my serial adaptor and the bluetooth adaptor works megatune.

As you can see in this picture, then I cant click on the test port!

I will email you the txt file.

Image
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: PortScans

Post by LT401Vette »

It automatically starts a test when you go to that page and disables the button, but it should timeout pretty quickly. There must be a an error happening. It should be in the TunerStudioLogFile.txt.

But what if you just finish that new project wizard create your project with the wrong com port. Then go to :
Communications --> Settings
on the menu bar.

There you should be able to type your port name right in the box, provided the test button isn't disabled :P

What all devices do you have connected to your computer? printers, usb things...
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Kaas
Helpful MS/Extra'er
Posts: 113
Joined: Tue Jun 27, 2006 2:08 am
Location: Denmark
Contact:

Re: PortScans

Post by Kaas »

I had it working but is was very slow. It came online on it self after a while........

And when I go to the comm settings after that, and find the correct com port, then I can press test port, but it comes with failed even it is working, but its slow.

The only other thing I have connect is my bluetooth dongle.

Did you get my email?
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: PortScans

Post by LT401Vette »

I have seen the "Failed"message come up, then "Successful" It seems to time out then get a response..

I didn't get your email. I don't see it in bulk mail either. did you send your TunerStudioLogFile.txt?

I hope to have a bug reporting mechanism in the next release that will package all the info I need and send it for you.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Kaas
Helpful MS/Extra'er
Posts: 113
Joined: Tue Jun 27, 2006 2:08 am
Location: Denmark
Contact:

Re: PortScans

Post by Kaas »

Hmm, strange I can see it has been send?

I will try post it here.

http://www.ljbk.dk/saab/ms/ts/TunerStudioLogFile.txt
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: PortScans

Post by LT401Vette »

Ok, I see where the problem of why the Test button is disabled, but still not seeing a reason for not connecting :|

You are trying to connect using COM1 with a standard serial port, correct?

Nothing else running that should have the serial port locked, like Megatune or something?
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Kaas
Helpful MS/Extra'er
Posts: 113
Joined: Tue Jun 27, 2006 2:08 am
Location: Denmark
Contact:

Re: PortScans

Post by Kaas »

No nothing else. I am using a USB-Serial adaptor, and it is called com1. I tried with the bluetooth as well as com7 but I had no connection there.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: PortScans

Post by LT401Vette »

Kaas, any luck with this? What sort of hardware are you using?
When you said it was going slow, I'm trying to figure out if it is slow graphic issue or slow as in killing the CPU.

If you are on slower hardware, then try turning off anti-aliasing from the:
View --> Gauge Cluster
Menu.
Anti-Aliasing can take from practically no extra CPU power to several times more depending on you graphics card and drivers. On most of my laptops it almost doubles CPU usage, but it can be much worse with a graphics chip that has no anti-alias features or poor drivers.

But if you are running a 1.xGHz processor, I doubt that is the problem unless there really is a lousy driver involved. I'm just sort of grasping....
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Kaas
Helpful MS/Extra'er
Posts: 113
Joined: Tue Jun 27, 2006 2:08 am
Location: Denmark
Contact:

Re: PortScans

Post by Kaas »

Its is a 1.6 MHz singel core cpu but only with 256mb ram.

I dont think its grafik problem. Sometimes it hangs the computer total, I cant do anything at all. I think it has something to do with the portscan. Maybe if you can do so that you can choise a port number like in MT instead of TS is trying to find it. And then have a button that says portscan if you dont know the port number.

It cant detect my code version, I have to find ini file my self in the wizard, and when then wizard is done and I have saved the project, when I have to close TS down, and turn it on again. And then after a while it goes online, and it is here I think TS tries to find the port number and that takes time!
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: PortScans

Post by LT401Vette »

Maybe if you can do so that you can choise a port number like in MT instead of TS is trying to find it. And then have a button that says portscan if you dont know the port number.
Yeah, that is sort of what I am thinking too. I hate to just put a drop down with a bunch of valid and invalid ports, but I hate it not working for some people even more :(

So, the slow part was just going online, not slow once it is running... Ok, that sounds better. Your computer is plenty fast, a 1.6 GHz single core laptop is what i do most of my development on.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: PortScans

Post by LT401Vette »

Oh yeah, I do run a port scan on startup. For absolutely no reason than to cause the drivers to load an initialize. I'll change that, I can do that many other ways without a port scan.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Kaas
Helpful MS/Extra'er
Posts: 113
Joined: Tue Jun 27, 2006 2:08 am
Location: Denmark
Contact:

Re: PortScans

Post by Kaas »

I think we are on the correct way now :-)
Post Reply