| View previous topic :: View next topic |
| Author |
Message |
MezafitsII
Joined: 02 Dec 2004 Posts: 33 Location: hawaii,oahu
|
Posted: Mon Jan 16, 2006 8:34 pm Post subject: |
|
|
thats cool, what are u using for a processor. i built a sonar range finder using an oopic, and incorparated an lcd to read out distance. it seems like a pretty easy switch if i processed the data on a laptop then sent it to an oopic to display on the lcd. but if i had to do it all with the oopic then it would be a little harder. _________________ I am the sum of my actions |
|
| Back to top |
|
 |
NewKleer
Joined: 09 Oct 2004 Posts: 159 Location: Sydney
|
Posted: Mon Jan 16, 2006 11:20 pm Post subject: |
|
|
im using an avr, but any microcontroller your familiar with that has the necessary features (eg uart) id imagine would be able to do it (but far easier to stick to higher level computers ) |
|
| Back to top |
|
 |
deviousKA
Joined: 14 Jun 2004 Posts: 107
|
Posted: Tue Jan 17, 2006 9:53 pm Post subject: |
|
|
I think that is the difference I remember running across when troubleshooting your software, your clie is talking at TTL level. The zire sends and receives regular rs232. I dont know why this would really cause a problem, as you mentioned the libraries shouldnt be different and should be a small hardware difference only.
BTW, I get the comms settings incorrect error when I try to transmit.
I have tried communicating with pc via terminal with regular rs232 cradles, palmZ isnt transmitting. I can transmit with palmOS hex terminals (like B&B portabella) or my other softwares designed for basic rs232 just fine. I think the zire71 is one of the last devices to use the rs232 levels and the standard cradle pinout. The pinout is the same as the earlier devices such as the palm m500 etc.
Anyways, I use a modified belkin rs232 cable when connecting to ecus or other similar devices, This carries pin 5 ground, and pin 2/3 are swapped from original configuration with a male db9, instead of a female db9 for hotsyncing to pc. I use it for all kinds of stuff, wiring is correct.
With NSPalm, I am having to reopen the serial buffer in the beggining of each loop which I think is causing most of my performance issues (which arent to terribly bad). Because the ecu is constantly streaming I think the loop is missing the start bytes every so often, not a huge problem if I keep the loop nice and quick. If the data I am streaming contains an msb/lsb my stream length changes depending on lsb data (I think due to not recognizing zero byte in the serial handling). This makes it a pita. I hate F0 and all that streaming crap, wish I could just query the ecu each time I want a single byte stream.
NewKleer, that avr based LCD you got going on there looks trick, nice work! |
|
| Back to top |
|
 |
MezafitsII
Joined: 02 Dec 2004 Posts: 33 Location: hawaii,oahu
|
Posted: Wed Jan 18, 2006 10:15 pm Post subject: |
|
|
Devious I know what you mean with F0 crap that is such a pain. I was thinking and maybe it has something to do with the way I allocate the port
static void OpenSerialPort(void)
{
UInt32 BufferSize = 4160;
UInt16 BufSizeTwo = 0;
Err error = 0;
//DWord CommFlags = 0;
UInt16 CommFlags = 0;
// Word SizeOfFlags = sizeof(CommFlags);
UInt16 SizeOfFlags = sizeof(CommFlags);
SerSettingsType SerCommSettings;
FormPtr frmP;
// Word ObjectIndex;
UInt16 ObjectIndex;
MyBufferForSerial = MemPtrNew(BufferSize);
error = SysLibFind("Serial Library", &gSerRefNumber); //Get Serial Reference Number
if (error)
{
FrmAlert(OpenPortAlert); //Default Open Serial Port failed error message
}
BufSizeTwo = BufferSize - 32;
error = SerOpen(gSerRefNumber, PORT, 9600); //Open Serial Port 9600 baud, PortID returned to gSerialPortID
SerSetReceiveBuffer(gSerRefNumber,MyBufferForSerial,BufSizeTwo);
// FrmAlert(InFuncAtSwitchAlert);
switch (error) //Error checking
{
case serErrAlreadyOpen: //Serial Port is already open by another application
SerClose(gSerRefNumber); //Close port: problems can arise by sharing the serial port,
FrmAlert(PortBusyAlert); //Display port busy message
break;
case errNone:
//FrmAlert(NoErrorAlert); //No errors returned, port opened successfully
gSerialPortOpen = true; //Set flag to port open
frmP = FrmGetActiveForm(); //Get Pointer to Active Form
//The following two lines show the port open icon.
//If you are connected to the serial port,
//the icon is displayed, otherwise there is nothing there.
ObjectIndex = FrmGetObjectIndex(frmP, Main_PortOpenBitMap);
FrmShowObject(frmP, ObjectIndex);
break;
default: //Other Error
FrmAlert(OpenPortAlert); //Default Open Serial Port failed error message
break;
}
SerReceiveFlush(gSerRefNumber, 200); //Clear port in case last application didn't
//Define Communications settings, set to default settings, 8,N,1, No Flow Control,
//Since this is the default it can be omitted
CommFlags = serSettingsFlagBitsPerChar8 | serSettingsFlagStopBits1;
SerCommSettings.baudRate = 9600; //Set baud rate
SerCommSettings.flags = CommFlags; //Set flags
error = SerSetSettings(gSerRefNumber, &SerCommSettings); //Set communication settings
if (error) FrmAlert(CommSettingsAlert); //Set Comm Settings failed error message
} //End Function OpenSerialPort
there is my serial open function. However I noticed that I have my PORT variable set to 0. I dont remember why that is. I looked back in the manual and discovered that I can refrence the serial cradle buy using serPortCradlePort and have recompiled my project. However as my Z currently has no engine I can not test it.
if you give me your email I can send you the prc file. _________________ I am the sum of my actions |
|
| Back to top |
|
 |
deviousKA
Joined: 14 Jun 2004 Posts: 107
|
Posted: Wed Jan 18, 2006 11:32 pm Post subject: palmZ |
|
|
Hey man,
My email is (removed) . I would be glad to do some testing with my palms. I dont have a Z car to test with, but I have various consult capable ecus here on the bench, and my pc terminal.
If it works with this zire71, it should be compatible with any palm that has color and the older cradle style rs232 comms. |
|
| Back to top |
|
 |
RomChip200
Joined: 27 Nov 2003 Posts: 196 Location: France
|
Posted: Wed Feb 15, 2006 10:38 am Post subject: |
|
|
I think we should add EcuXtend from Catz in the list. _________________ 200SX CA18DET S13 '92.
300ZX TT '91. |
|
| Back to top |
|
 |
NewKleer
Joined: 09 Oct 2004 Posts: 159 Location: Sydney
|
Posted: Thu Feb 16, 2006 1:46 pm Post subject: |
|
|
if this thread is still being updated (doesnt look like) you can add http://www.ecutalk.com to list
thanks |
|
| Back to top |
|
 |
Z90

Joined: 16 Mar 2005 Posts: 71 Location: USA
|
Posted: Mon Feb 20, 2006 10:06 pm Post subject: |
|
|
| NewKleer wrote: | if this thread is still being updated (doesnt look like) you can add http://www.ecutalk.com to list
thanks |
I haven't updated it in quite awhile, but I need to. I'll try to get that done asap. In the meantime, I tried the link and got the following error:
ECU Talk
This site is temporarily unavailable.
Please notify the System Administrator |
|
| Back to top |
|
 |
NewKleer
Joined: 09 Oct 2004 Posts: 159 Location: Sydney
|
Posted: Mon Feb 20, 2006 11:36 pm Post subject: |
|
|
site is back up now - the database was down
ive put links to downloads on that error page in case it happens again, cheers |
|
| Back to top |
|
 |
NewKleer
Joined: 09 Oct 2004 Posts: 159 Location: Sydney
|
|
| Back to top |
|
 |
htpc
Joined: 24 May 2004 Posts: 28
|
|
| Back to top |
|
 |
NewKleer
Joined: 09 Oct 2004 Posts: 159 Location: Sydney
|
Posted: Tue Oct 17, 2006 1:33 pm Post subject: |
|
|
| Z90 wrote: | | NewKleer wrote: | if this thread is still being updated (doesnt look like) you can add http://www.ecutalk.com to list
thanks |
I haven't updated it in quite awhile, but I need to. I'll try to get that done asap. |
*cracks whip*
ecutalk v1.2 released - http://www.ecutalk.com |
|
| Back to top |
|
 |
NewKleer
Joined: 09 Oct 2004 Posts: 159 Location: Sydney
|
Posted: Sat Feb 03, 2007 3:48 pm Post subject: |
|
|
| someone slap Z90 |
|
| Back to top |
|
 |
nissan.leopard
Joined: 15 Apr 2008 Posts: 1
|
Posted: Tue Apr 15, 2008 6:31 am Post subject: |
|
|
| Anyone still have a copy of MezafitsII's palmZ software? I'd like a copy to try out. Help. |
|
| Back to top |
|
 |
|