Notices
ECU Flash

Pocket PC and Tactrix cable

Thread Tools
 
Search this Thread
 
Old Dec 19, 2007 | 01:19 PM
  #76  
evo828's Avatar
Evolving Member
 
Joined: Apr 2007
Posts: 195
Likes: 1
From: Slovakia
I cant get ms work on PDA - I will try on PC - whether they are actually retrievable.

The logging speed with your PC logger is cca 9-10 rows per second. The same with PDA is cca 4-5 rows - so the FTDI driver on PDA is relatively slow.
Reply
Old Dec 19, 2007 | 01:25 PM
  #77  
galvitron's Avatar
Thread Starter
Evolving Member
iTrader: (2)
 
Joined: Sep 2004
Posts: 287
Likes: 0
From: South Bay
You need to use the QueryPerformanceCounter stuff. I beleive you need to PInvoke a few functions. Just google ".NET High Performance Timer" and you should get some info.

The Windows.Forms.Timer only has a innacurate timer.

If you need to speed it up you will want to multithread the app and possibly convert to native C.
Reply
Old Dec 21, 2007 | 08:09 AM
  #78  
evo828's Avatar
Evolving Member
 
Joined: Apr 2007
Posts: 195
Likes: 1
From: Slovakia
The problem with the timer is that it doesnot return any values less than one whole second (even if you ask for milliseconds) - so I do not know what is wrong.

Multithread or native C my programming skills are not that good
Reply
Old Dec 21, 2007 | 09:06 AM
  #79  
burgers22's Avatar
Evolved Member
 
Joined: Jan 2006
Posts: 953
Likes: 2
From: Oxfordshire
The csv log files seem to be displaying a little strangely, TPS is displaying as 1000 or so and load as 1.8 anyone else seeing this?

MB
Reply
Old Dec 21, 2007 | 09:16 AM
  #80  
jcsbanks's Avatar
Evolved Member
 
Joined: May 2006
Posts: 2,399
Likes: 6
From: UK
Only if I have the baud rate wrong.
Reply
Old Dec 21, 2007 | 10:53 AM
  #81  
galvitron's Avatar
Thread Starter
Evolving Member
iTrader: (2)
 
Joined: Sep 2004
Posts: 287
Likes: 0
From: South Bay
Point me to the place in the code where the timer is called and I will take a look. I have a lot of experience with this stuff...
Reply
Old Dec 21, 2007 | 10:57 AM
  #82  
burgers22's Avatar
Evolved Member
 
Joined: Jan 2006
Posts: 953
Likes: 2
From: Oxfordshire
Source code shows the baud rate to 15625 which I think is standard for the MUT.

MB
Reply
Old Dec 21, 2007 | 12:47 PM
  #83  
jcsbanks's Avatar
Evolved Member
 
Joined: May 2006
Posts: 2,399
Likes: 6
From: UK
Is it displaying correctly on the screen, but not in the csv?
Reply
Old Dec 21, 2007 | 03:46 PM
  #84  
burgers22's Avatar
Evolved Member
 
Joined: Jan 2006
Posts: 953
Likes: 2
From: Oxfordshire
The graphs display fairly reasonable valuse, but there seems to be quite a lot of "noise" in some of the traces. Some of the csv values look Ok IAT, MAP, timing, knock but TPS and RPM are whacked.

Sample rates are pretty poor as Evo828 has noted. I'll make a more coherent investigation soon.

MB
Reply
Old Dec 21, 2007 | 04:21 PM
  #85  
galvitron's Avatar
Thread Starter
Evolving Member
iTrader: (2)
 
Joined: Sep 2004
Posts: 287
Likes: 0
From: South Bay
As a temporary stopgap for the timing thing (until QueryPerformanceTimer), try this:

dim dt as datetime = new datetime(datetime.now.ticks)

outp = dt.tostring("hh:mm:ss.ffff")

'ffff represents the 4 most significant digits of the fractions of a second.

Reference:http://msdn2.microsoft.com/en-us/library/8kb3ddd4.aspx
Reply
Old Dec 21, 2007 | 04:25 PM
  #86  
galvitron's Avatar
Thread Starter
Evolving Member
iTrader: (2)
 
Joined: Sep 2004
Posts: 287
Likes: 0
From: South Bay
I should note that for this datetime thing the fractions may be innacurate to the point of being arranged improperly. I would suggest only using hundredths of a second rather than milliseconds when using the System.Windows.Forms.Timer
Reply
Old Dec 22, 2007 | 03:18 PM
  #87  
evo828's Avatar
Evolving Member
 
Joined: Apr 2007
Posts: 195
Likes: 1
From: Slovakia
Originally Posted by galvitron
As a temporary stopgap for the timing thing (until QueryPerformanceTimer), try this:

dim dt as datetime = new datetime(datetime.now.ticks)

outp = dt.tostring("hh:mm:ss.ffff")

'ffff represents the 4 most significant digits of the fractions of a second.

Reference:http://msdn2.microsoft.com/en-us/library/8kb3ddd4.aspx
It shows and logs as this:
LogEntrySeconds
14:51.0
14:52.0
14:52.0
14:52.0
14:52.0
14:53.0
14:53.0
14:53.0
14:54.0
14:54.0
14:54.0
14:55.0
14:55.0
14:55.0


So still not getting anything smaller than a second
Reply
Old Dec 23, 2007 | 02:13 AM
  #88  
galvitron's Avatar
Thread Starter
Evolving Member
iTrader: (2)
 
Joined: Sep 2004
Posts: 287
Likes: 0
From: South Bay
I will be back in a few with the solution...
Reply
Old Apr 14, 2008 | 10:55 AM
  #89  
Mr Evolution's Avatar
Evolving Member
iTrader: (3)
 
Joined: Nov 2005
Posts: 156
Likes: 0
From: NYC
any updated with this can you log with the PDA PPC6800?
Reply
Old Apr 16, 2008 | 03:26 PM
  #90  
galvitron's Avatar
Thread Starter
Evolving Member
iTrader: (2)
 
Joined: Sep 2004
Posts: 287
Likes: 0
From: South Bay
This whole thing has been on hold for me as I started working on my carPC, which would eliminate my need for a mobile solution. I will get back to it eventually, but in the meantime the source code is here if anyone wants to pick up and run with it...
Reply



All times are GMT -7. The time now is 05:00 AM.