Technical Stilo CAN Bus Question

Currently reading:
Technical Stilo CAN Bus Question

Hi Dan,

I have already purchased the service reset code from Yellowstillo, I have not yet tried it out, however I will be doing over the weekend and then my car goes in for its fifth year service on the 27th. If the reset codes work, I would be willing to write a small Peace of software similar to the one you have wrote that will allow users to reset the service indicator on there Stilo at there own risk. Providing non of the admin staff have no objection, the software could be made available (if the codes work) for downloading by members who have donated to this forum.


Hello Philip,

I can assure you the service reset code works, i tried it on my own car several times (and used all of the remaining electronic service coupons...)- as agreed you are free to use the code as you wish, keep in mind the reset is activated / visible after a key off -key on cycle.
Maybe it's a possibility to develop 1 program together with Dan to integrate all functions in 1 program instead of 2 separate programs?
good luck both of you !
yellowstilo
 
To be honest yellowstilo my programming skills are shocking so this is more a learning excersise for me than anything else. If anyone with half a brain saw my source code im sure it would give them a laugh.

He may well be better coding something himself as I cannot program in anything but basic really. Some form of copy protection would be good in such a program so it doesnt get ripped off and sold on ebay so only donators can use it.

Dan
 
To be honest yellowstilo my programming skills are shocking so this is more a learning excersise for me than anything else. If anyone with half a brain saw my source code im sure it would give them a laugh.

He may well be better coding something himself as I cannot program in anything but basic really. Some form of copy protection would be good in such a program so it doesnt get ripped off and sold on ebay so only donators can use it.

Dan

hello Dan,

i don't have any programming skills at all so i appreciate your help very much!
Its a good idea to protect the program for use by contributing Forum users only (maybe a good reason to donate to the Forum...).
I'm very curious what the results of both programs will be, thanks a lot for both your and Philip's efforts !

Good luck,
yellowstilo
 
hello Dan,

i don't have any programming skills at all so i appreciate your help very much!
Its a good idea to protect the program for use by contributing Forum users only (maybe a good reason to donate to the Forum...).
I'm very curious what the results of both programs will be, thanks a lot for both your and Philip's efforts !

Good luck,
yellowstilo

Ok, I am happy to write an application, yes it is possible to have one peace of software to do everything. Unfortunately I might be getting rid of my Stilo soon, not because of any problems but because I need a van for my work and I don't have room to store the car.

Anyway here's my suggestion, Dan can you email me the source code for the application you have written so far, I will then port what you have so far into Delphi and create a correctly structured peace of software that will achieve all of our goals. I will be more than happy to share the source code for the application with both of you if you like.
 
To be honest yellowstilo my programming skills are shocking so this is more a learning excersise for me than anything else. If anyone with half a brain saw my source code im sure it would give them a laugh.

He may well be better coding something himself as I cannot program in anything but basic really. Some form of copy protection would be good in such a program so it doesnt get ripped off and sold on ebay so only donators can use it.

Dan


Dan,

There are many ways to achieve copy protection, that is something for us to think about. It could be that we can validate that a user of the software is a paid member of this forum before the application will run
 
OK guys, earlier I made a lead to connect my laptop to the low speed CAN bus on my Stilo via the OBD2 socket. I followed the instructions on how to reset the service counter that I purchased from Yellow Stilo and I have successfully managed to reset the service indicator (y).

The car goes in for its fifth year service on Tuesday, I wonder what the garage will think when the service indicator is showing that no service is due for another 12 months or 12000 miles :D
 
Excellent, what interface are you using?

Dan

Hi Dan,

I used a PCAN adapter, however it does not matter what interface is used, form reading you earlier posts I could probably have used my Blue tooth Elm interface. I used PCAN Explorer software to record a trace of all the CAN activity on the low speed bus so that I could check for a acknowledge from the ECU to the reset commands.
 
Hi,

Yeah, i know it doesnt matter, just wondered which one you used as was thinking about the basis for the application you are thinking about writing (what interfaces you might have/tailor it for)

Your basis is exactly all thats required to code something that sends over can, send a command to an ID, and listen to responses, then analyze the response.

My program doesnt even do the above, it just reads the length and assumes its the message it should be, crude i know.

Ive sent you a reply on PM anyway, I can help you with the ELM commands if you need.

Dan
 
Last edited:
Just a quick note to say I am sooooo bookmarking this thread.

The work you guys are doing is amazing - I've connected OBD2 via Elm to laptop and I thought that was cool, but this stuff is a whole leap forward from that.

Count me in as a user/donor/fan if the project goes ahead.
 
Its yellowstilo who kicked this off for me, reading his posts on the canhack forum and planting the seed in my mind, plus giving me something to test and work from.

TBH, this is one of the two things ive wanted to do with my stilo, the other being having a detailed look at the CN+, its OS etc.

Best thing we can do is get as much info out in the open as possible. I am writing up my findings so far and will posting some stuff up over the next week.

Keep checking back, this is just the start.

Dan
 
Last edited:
maybe it's a good idea to investigate which features are most wanted ?
Of course the service reset is no.1 but sending the CN+ setup message without a present CN+ or a instrument cluster test (including a gauge sweep!) could be a nice feature for example??
Depending on what's most wanted i could supply some more info when needed (and if available of course).
good luck Philip and Dan, i volunteer to be a Beta-tester of your program if needed !
 
Hi,

Yeah, i know it doesnt matter, just wondered which one you used as was thinking about the basis for the application you are thinking about writing (what interfaces you might have/tailor it for)

Your basis is exactly all thats required to code something that sends over can, send a command to an ID, and listen to responses, then analyze the response.

My program doesnt even do the above, it just reads the length and assumes its the message it should be, crude i know.

Ive sent you a reply on PM anyway, I can help you with the ELM commands if you need.

Dan

Hi Dan,

Could you provide me with a list of commands with expected responses to configure the Elm to send and receive CAN messages. I will write the software in such a way that either an Elm scan adpater or PCAN adapter can be used.
 
maybe it's a good idea to investigate which features are most wanted ?
Of course the service reset is no.1 but sending the CN+ setup message without a present CN+ or a instrument cluster test (including a gauge sweep!) could be a nice feature for example??
Depending on what's most wanted i could supply some more info when needed (and if available of course).
good luck Philip and Dan, i volunteer to be a Beta-tester of your program if needed !

Hi YellowStilo,

Good idea, I will start a list off and all users are invited to add features to the list and then we'll decide what to do. Just out of interest, is the same service reset command used for all current production Fiats or is the Stilo spacial :rolleyes:. Do you know what can commands to send to test all the indicators on the instrument cluster ?

I think between us we should be able to get a Beta test out within a few weeks (y)
 
Hi Dan,

Could you provide me with a list of commands with expected responses to configure the Elm to send and receive CAN messages. I will write the software in such a way that either an Elm scan adpater or PCAN adapter can be used.

Here you are, cant tell you the exact responses as it will depend on if you have local echo enabled/linefeeds etc but you will get the general idea...

send: atspc<cr>(set to can 11/50) (if your programmable parameters are set to defaults, if not do an atpps and check)
receive:OK <CR> >
send: ath1 (switch on headers)
receive: OK <CR> >
send: atsh hhh (set header to hhh)<CR>
receive: OK <CR> >
send: 11 22 33 44 55 66 77 88<CR> (your actual message)
receive: response varies

you will typically only get three different responses to AT commands, they are OK >, ? > or CAN ERROR >

btw the above will only work on an elm 1.2 or higher, the 1.0 and 1.1 only support can at 250k or 500k and cannot have the rate scaled down to 50k for the stilo. Also the atspc sets the protocol to C, you would be better setting the elm to try protocol C, so when a user uses the elm with say pcmscan or whatever it would go back to their usual protocol, 5 i think.

Is that what you are after?

Dan
 
Hi YellowStilo,

Good idea, I will start a list off and all users are invited to add features to the list and then we'll decide what to do. Just out of interest, is the same service reset command used for all current production Fiats or is the Stilo spacial :rolleyes:. Do you know what can commands to send to test all the indicators on the instrument cluster ?

I think between us we should be able to get a Beta test out within a few weeks (y)

Different cars use different versions of CAN, the stilo uses 11bit CAN/ 50K for interior can and 11bit/500k for motor-can, whereas say the grand punto uses 29bit CAN @ 500K for interior can.

Dan
 
Here you are, cant tell you the exact responses as it will depend on if you have local echo enabled/linefeeds etc but you will get the general idea...

send: atspc<cr>(set to can 11/50) (if your programmable parameters are set to defaults, if not do an atpps and check)
receive:OK <CR> >
send: ath1 (switch on headers)
receive: OK <CR> >
send: atsh hhh (set header to hhh)<CR>
receive: OK <CR> >
send: 11 22 33 44 55 66 77 88<CR> (your actual message)
receive: response varies

you will typically only get three different responses to AT commands, they are OK >, ? > or CAN ERROR >

btw the above will only work on an elm 1.2 or higher, the 1.0 and 1.1 only support can at 250k or 500k and cannot have the rate scaled down to 50k for the stilo. Also the atspc sets the protocol to C, you would be better setting the elm to try protocol C, so when a user uses the elm with say pcmscan or whatever it would go back to their usual protocol, 5 i think.

Is that what you are after?

Dan


Hi Dan,

Thank you for that, that is exactly what I was looking for, it just saves me a little time and will help me knock something togeather quicker.
 
Back
Top