Welcome, Guest. Please Login or Register
MyECU main site
  Welcome to our forum.
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Raw serial parsing, most welcome problem yet :) (Read 4510 times)
raz
Senior Member
****
Offline


Guzzi 11OO Sport, My16MkV,
Innovate LC-1

Posts: 373
Stockholm, Sweden
Gender: male
Raw serial parsing, most welcome problem yet :)
11/25/09 at 03:51:32
 
I will add 56 kbps serial speed support to my LW plugin, for keeping up with the upcoming new firmware versions. Is there anything else I'll need to adapt to, just reading and parsing the serial data? Any additions or changes to the protocol?
Back to top
 

59° North
1100 Sport iniezione elettronica -- the perfect merge of a superbike and a steam train
 
IP Logged
 
raz
Senior Member
****
Offline


Guzzi 11OO Sport, My16MkV,
Innovate LC-1

Posts: 373
Stockholm, Sweden
Gender: male
Re: Raw serial parsing, most welcome problem yet :)
Reply #1 - 02/26/10 at 08:19:03
 
OK from what I can tell serial protocol is not changed at all. I altered my code to use 56K but it doesn't work. I guess it may have something to do with the following:

When I use HyperTerminal I get nothing until I hit CR. Then it will say InvCmd or something and start outputting text as ususal. I don't recall that ever happened with the older software but it seems to happen every time now. Also, I can pause the output at any time by sending something (just hitting a key) and then it will pause again until I hit enter.

I imagine this will make it vulnerable to line noise but I guess my plugin could detect a stop of flow and resend a CR.

Is this intended?

Edit: come to think of it, this may only be applicable to bluetooth. Is that right?
Back to top
« Last Edit: 02/26/10 at 08:20:14 by raz »  

59° North
1100 Sport iniezione elettronica -- the perfect merge of a superbike and a steam train
 
IP Logged
 
YaBB Administrator
YaBB Administrator
*****
Offline


I love YaBB!

Posts: 679
The Land of YaBB
Re: Raw serial parsing, most welcome problem yet :)
Reply #2 - 02/26/10 at 13:34:02
 
Its been like that for a while now. It stops talking when it thinks something is coming in. The CR clears the character count.
Back to top
 

The Administrator.
WWW  
IP Logged
 
raz
Senior Member
****
Offline


Guzzi 11OO Sport, My16MkV,
Innovate LC-1

Posts: 373
Stockholm, Sweden
Gender: male
Re: Raw serial parsing, most welcome problem yet :)
Reply #3 - 02/27/10 at 06:02:25
 
Yup, works like a champ now. So what happens if there's line noise? The ECUController and Optimiser will both detect missing flow and fling a linefeed at it?
Back to top
« Last Edit: 02/28/10 at 01:59:37 by raz »  

59° North
1100 Sport iniezione elettronica -- the perfect merge of a superbike and a steam train
 
IP Logged
 
YaBB Administrator
YaBB Administrator
*****
Offline


I love YaBB!

Posts: 679
The Land of YaBB
Re: Raw serial parsing, most welcome problem yet :)
Reply #4 - 02/28/10 at 06:07:55
 
The Optimiser will. Not sure about the ECUController.
Thankfully noise has not been an issue.
Back to top
 

The Administrator.
WWW  
IP Logged
 
raz
Senior Member
****
Offline


Guzzi 11OO Sport, My16MkV,
Innovate LC-1

Posts: 373
Stockholm, Sweden
Gender: male
Re: Raw serial parsing, most welcome problem yet :)
Reply #5 - 02/28/10 at 17:39:48
 
I was thinking bluetooth but maybe it has error correction/suppression at a lower layer. I'll review my other programs to assure they don't try software handshake: I guess both XON and XOFF would pause the flow? I'll try experimenting.

Edit: Yes, both pauses the flow so software handshake must be turned off in any custom programs or HyperTerminal.

My 9V rechargable battery is very limiting, I can only test stuff one hour at a time. I guess it's time to use the bike battery.

The eb301 seems slow to reconnect. It was mentioned on some forums too. If I connect to my mobile phone serial port instead, talk a little to it in HyperTerminal and disconnect. It will bring the BT link down. Connecting again from HT will automatically bring BT up again and all works fine. But doing the same against the eb301 fails if I don't wait some 30 seconds before reconnecting. I'll study the manuals. Good thing I saved them before the company disappeared.
Back to top
« Last Edit: 03/01/10 at 10:05:17 by raz »  

59° North
1100 Sport iniezione elettronica -- the perfect merge of a superbike and a steam train
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print