View previous topic :: View next topic |
Author |
Message |
UDIPTA
Joined: 29 Apr 2009 Posts: 13 Location: Kolkata,India
|
CANBUS PROBLEM! |
Posted: Thu May 07, 2009 5:28 am |
|
|
I am trying to develop a project for our machine,i.e. Crane,with PIC18f2480 as Canbus protocol controller and PCA82C520 as Can controller interface. I am taking analog input from a Transmission oil pressure sensor and would like to see pressure on Powerview, a J1939 enabled display module. At present we monitor other engine and transmission parameters on Powerview. I can't understand how I can get the differential voltage on CANH & CANL line from analog value and how can I send this value to Powerview display module i.e. what should be it's ID,I am totally in dark! Please help me. |
|
|
andrewg
Joined: 17 Aug 2005 Posts: 316 Location: Perth, Western Australia
|
|
Posted: Thu May 07, 2009 7:21 am |
|
|
I did a Wikipedia search for J1939 and got an interesting page with several useful links. I'd start there. One of the links had some info on the message ID and data bytes. It does look likely that you'd need to purchase the standard for complete details, but maybe more searching would turn up enough details for something workable.
As for the differential voltage, assuming both are within the PICs ADC input range, you read both and find their difference, then package that up into a suitable packet. If they aren't, you'll need some extra electronics to either read the voltages instead of the PIC, or filter them so the PIC can read them. I'm afraid I can't help there - you'll have to see if someone else who knows more about that reads this. _________________ Andrew |
|
|
UDIPTA
Joined: 29 Apr 2009 Posts: 13 Location: Kolkata,India
|
|
Posted: Fri May 08, 2009 12:21 am |
|
|
Thanx Andrew for replying. But still I can't move a bit forward. I need more help from all of you. Please help me out!
Thanks in advance.. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
george
Joined: 14 Mar 2008 Posts: 10
|
Can bus help |
Posted: Sat May 16, 2009 12:40 am |
|
|
First you have to convert your analog signal into digital a 16 bit number then you transmit your message on to the can bus. You will need to use a 18 series part with a can module. Variables such as baud rate and other variables have to be set. I have used the Can bus module kit by CCS and this probably would work for your needs. J1939 is a open standard should be able to google it. You must use a can transceiver (built in with can bus module kit ) with appropriate resistors to attach to the bus. CCS has built in can Bus libraries in their pic 8 bit and now 16bit parts. |
|
|
|