[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4775: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3841)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4777: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3841)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4778: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3841)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4779: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3841)
www.carmodder.com • View topic - GM Lan Single Wire CAN Bus Sniffing

Welcome Anonymous !

Everything you need to modify your ride
 

ECU - OBDII DTCs and PIDs

GM Lan Single Wire CAN Bus Sniffing

Discuss Diagnostic Trouble Codes and Parameter IDs for the Holden VE Commodore, VEII Series Commodores, and HSV E1, E2, and E3 models

Postby TazzI » Mon Sep 01, 2014 5:52 pm

Sooo looking at getting CAN up and going on the arduino, The CAN shield is too large and bulky, so will be miniaturizing it to the arduino mini.

From what I understand, this is the pinout for the obd2 plug to have SWCAN, CAN low and CAN high? Is that right?
Untitled.png

And, to get SWCAN going on the arduino CAN Shield, the CANL line needs to be grounded and CANH line needs to be on pin 1?

And finally, to be able to communicate over both SWCAN, and CANL/H at the same time, I would need two MCP2515 and MCP2551 controllers right? Since the SWCAN essentially needs its own controller?
You do not have the required permissions to view the files attached to this post.
User avatar
TazzI
Moderator
 
Posts: 986
Images: 2
Joined: Thu Dec 22, 2011 8:02 pm
Has thanked: 16 times
Been thanked: 41 times

Postby jezzab » Tue Sep 02, 2014 9:07 am

The Sparkfun CAN Shield only does HSCAN. If you want to use it for GMLAN you will have to use CAN H and put that to pin 1 on the OBDII (SWCAN) and then tie CAN L to ground, then set the appropriate baud rate (33.3K). This is the "quick and dirty" way of getting SWCAN to work with the high speed MCP2551 controller. Technically it should have a TH8056 or similar for dedicated and compliant SWCAN/GMLAN (plus it adds the ability to do a 0x100 HV wakeup)
Daily Ute - 2009 Holden VE SSV Ute Single Turbo (IQ, E3 Cluster, EDI) - 586rwhp
Drag Ute - 2002 Holden VU SS Twin Turbo - 1010rwhp [SOLD]

All VE/VF Module reprogramming. Remote programming with flash box
User avatar
jezzab
Site Admin
 
Posts: 1032
Joined: Sun Nov 20, 2011 9:42 pm
Location: Melbourne
Has thanked: 42 times
Been thanked: 26 times

Postby TazzI » Tue Sep 02, 2014 12:53 pm

Ahh alright cool. So yeah, the 'quick hack' is to geth the can shield to work on gmlan. So if we design our own board, will would want to lie canL to ground and canH to gmlan pin. :D

Too easy. But now if we want to harness both gmlan and standard CAN (High 500, Low 250).. then I would need a how other set of mcp2551 and mcp2515.. since they will be dedicated and working on separate networks.

Hmm.. its looking to be a bit more dificult to fit them onto one board then what I originally thought.. could try double sided..or just two separate boards that are stackable.?

This is currently what Im looking at, based off the sparkfun design and parts:
You do not have the required permissions to view the files attached to this post.
User avatar
TazzI
Moderator
 
Posts: 986
Images: 2
Joined: Thu Dec 22, 2011 8:02 pm
Has thanked: 16 times
Been thanked: 41 times

Postby jezzab » Tue Sep 02, 2014 1:39 pm

No to have

HSCAN 500Kb/sec
GMLAN 33.3Kb/sec

You will need a MCP2551 for HSCAN as its a dual wire HS controller and a TH8056 for GMLAN because its a low speed dedicated GMLAN/SWCAN controller. Using the MCP2551 as a SWCAN controller is going to work but its a hack and you are slowing it right down to get it to run at 33.3k, plus tying the CAN L to ground. a TH8056 comes out as one wire, hence Single Wire CAN ;)

http://www.melexis.com/Assets/TH8056-Da ... -4810.aspx

You could swap out the MCP2551 for the TH8056 as they are almost pin compatible BUT you will have to set the Mode0 and Mode1 pins so it operates in low speed 33.333k. High speed 83.33k i have never seen actually used on any module yet it is in the specs so don't bother
Daily Ute - 2009 Holden VE SSV Ute Single Turbo (IQ, E3 Cluster, EDI) - 586rwhp
Drag Ute - 2002 Holden VU SS Twin Turbo - 1010rwhp [SOLD]

All VE/VF Module reprogramming. Remote programming with flash box
User avatar
jezzab
Site Admin
 
Posts: 1032
Joined: Sun Nov 20, 2011 9:42 pm
Location: Melbourne
Has thanked: 42 times
Been thanked: 26 times

Postby TazzI » Tue Sep 02, 2014 8:00 pm

Alright.. lets look this controller up and make some templates..
User avatar
TazzI
Moderator
 
Posts: 986
Images: 2
Joined: Thu Dec 22, 2011 8:02 pm
Has thanked: 16 times
Been thanked: 41 times

Postby TazzI » Tue Sep 02, 2014 9:38 pm

Sooo the TH8056 is the CAN transceiver.. just like the mcp2551. But, from what I can tell, there is no CAN controller by that company that directly interfaces with it.

Im assuming.. that I should be able to use the mcp2515 CAN controller with the TH8056 CAN transceiver. yeeaaahh, I think it will work.. just need to set mode0 and 1 to high on any digital 5v pin so its in normal 33.33 comms and the rest looks like I can follow the example schematic.

Might as well give that a go at the same time, looks like the TH8056 is standard size SOIC8.. time for board v2
User avatar
TazzI
Moderator
 
Posts: 986
Images: 2
Joined: Thu Dec 22, 2011 8:02 pm
Has thanked: 16 times
Been thanked: 41 times

Postby TazzI » Tue Sep 02, 2014 10:44 pm

that was... interesting.. getting everything to fit properly! Ended up extending the board slightly so that it would all fit. Should still drop in place onto the mini, but will be slightly longer.

Also upped the size of the smd components.. since 0603 was a little to small. 1210 is still small, but manageable :D
Am looking forward too some proper gmlan communication.

If done right, we should have a stackable shield setup to allow CAN HS/LS and GMLan.
canshieldv2.png
You do not have the required permissions to view the files attached to this post.
User avatar
TazzI
Moderator
 
Posts: 986
Images: 2
Joined: Thu Dec 22, 2011 8:02 pm
Has thanked: 16 times
Been thanked: 41 times

Postby TazzI » Wed Sep 03, 2014 12:33 am

Any recommendations on pcb fabs?
seeedstudio.com and imall.iteadstudio.com seem to have good comments and are check.

Can get 10 boards for 10 at iteadstudio. Or 5 boards for $10 at seeedstudio.
User avatar
TazzI
Moderator
 
Posts: 986
Images: 2
Joined: Thu Dec 22, 2011 8:02 pm
Has thanked: 16 times
Been thanked: 41 times

Postby jezzab » Wed Sep 03, 2014 8:05 am

OSHpark gets my vote
https://oshpark.com

Yes the MCP2515 will drive the TH8056. Sorry Ive been spoilt using inbuilt CAN controllers on the NXP LPC1788

I find 0805 a nice size footprint to work with myself
Daily Ute - 2009 Holden VE SSV Ute Single Turbo (IQ, E3 Cluster, EDI) - 586rwhp
Drag Ute - 2002 Holden VU SS Twin Turbo - 1010rwhp [SOLD]

All VE/VF Module reprogramming. Remote programming with flash box
User avatar
jezzab
Site Admin
 
Posts: 1032
Joined: Sun Nov 20, 2011 9:42 pm
Location: Melbourne
Has thanked: 42 times
Been thanked: 26 times

Postby TazzI » Wed Sep 03, 2014 12:40 pm

User avatar
TazzI
Moderator
 
Posts: 986
Images: 2
Joined: Thu Dec 22, 2011 8:02 pm
Has thanked: 16 times
Been thanked: 41 times

PreviousNext

Return to ECU - OBDII DTCs and PIDs

  • View new posts
  • View unanswered posts
  • Who is online
  • In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
  • Most users ever online was 151 on Fri Mar 03, 2017 1:44 pm
  • Users browsing this forum: No registered users and 2 guests