CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

canbus communication

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ilkerozturk58



Joined: 10 Jul 2013
Posts: 2
Location: turkey

View user's profile Send private message Send e-mail

canbus communication
PostPosted: Wed Jul 10, 2013 9:05 pm     Reply with quote

Dear CCS users ,

i have a problem about canbus communicatiom these problems i want to read some datas from the ecu and i know that coolant temperature at 0x268 in pwm table how can i take datas from this address ? If you have example or you know a way for this application can you share me.

my ecu's can communication datasheets is here; http://www.msextra.com/doc/ms3/can.html


thank you
_________________
ilker ozturk
yturacing formula student team engıneer
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Wed Jul 10, 2013 9:30 pm     Reply with quote

This looks like to me to have nothing to do with PIC or CCS code unless you
are just wanting to use serial on the PIC via USB to communicate with the
Megasquirt main node.

If that's the case, search for examples on this board of RS232 and put
something together. RS232 to CAN converters typically don't require any
special code.
_________________
Google and Forum Search are some of your best tools!!!!
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

PostPosted: Thu Jul 11, 2013 1:45 am     Reply with quote

That datasheet is about connecting up the CAN bus on the Megasquirt box. It has nothing to do with the data that sent from ECUs and so on on the CAN bus.

CAN is a message passing bus. You need to find out what message sent from the ECU has the data you want, and how you need to find out how to interpret it. Also you *may* need to find out what message you need to send to ask for that data. That datasheet tells us, and you, nothing about that. All the information you need will be in another document somewhere. The Megasquirt box seems to be a generic datalogger/GPIO box with a CAN interface targeted at automotive applications, and so doesn't know anything about what the data it collects means. In other words you get an ADC value from it, and you then have to convert that to temperature. The box itself reads voltages and reports ADC values, not temperatures.

Yes, you can use PICs with CAN peripherals to send and receive those messages, and you can use CCS C to program that PIC, but you are several steps away from that at the moment, and so we can do almost nothing to help you right now.
ilkerozturk58



Joined: 10 Jul 2013
Posts: 2
Location: turkey

View user's profile Send private message Send e-mail

PostPosted: Sat Jul 13, 2013 3:03 pm     Reply with quote

Firstly, I apologize for late answer dear users,
I know there is gpıo board for megasquirt ecu and i dont want using that. In second question if i know that which address is in my data at can line can i use pic series and can module ? I think a way with pic
1) giving ID
2) input data address to my pic for ecu
3) sending data request to ecu
4) wait coming data from ecu
I put a picture for more information, please click to link. I only want explain me taking data from specific address with sample codes.

http://upload.hizliresim.com/upload.php

Best Regards

http://o1307.hizliresim.com/1c/g/q7vxs.jpg
_________________
ilker ozturk
yturacing formula student team engıneer
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group