Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

ATmega32m1
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR
View previous topic :: View next topic  
Author Message
PeterM

Bascom Member



Joined: 09 Jun 2008
Posts: 118

australia.gif
PostPosted: Wed Apr 10, 2013 2:10 pm    Post subject: Reply with quote

They have connectors as well, pretty much everything.
http://www.obd2cables.com/products/obd-connectors/

_________________
Peter
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5076
Location: Holland

blank.gif
PostPosted: Wed Apr 10, 2013 8:32 pm    Post subject: Reply with quote

thanks!
_________________
Mark
Back to top
View user's profile Visit poster's website
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1198
Location: SYDNEY

australia.gif
PostPosted: Wed Apr 10, 2013 11:54 pm    Post subject: Reply with quote

I hope this means you are working on an OBD2 library, ODB has huge interest only have to look at the blog section to see the large number of views, of course it would only come with the full version I think it would raise your sales of bascom considerably.

Regards Paul
Back to top
View user's profile
mlcarter

Bascom Member



Joined: 12 May 2009
Posts: 11

newzealand.gif
PostPosted: Thu Apr 11, 2013 12:38 am    Post subject: Reply with quote

Hello Mark
I could not source a plug but purchased a cable as above.
Then a SN65HVD230-32 TRANSCEIVER from DigiKey.

I have not progressed far, the compiler does not like the CANIT interrupt for the at32M1. I shall poll the registers to get it going for a start.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5076
Location: Holland

blank.gif
PostPosted: Thu Apr 11, 2013 9:33 am    Post subject: Reply with quote

i ordered 2 plugs. one from china and one from the US. now i need to wait.
for the canint you need to use : CAN_INT
I changed it because canint was a constant used by atmel.
it is visible in the dat file (look at the [INTLIST] section.

_________________
Mark
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5076
Location: Holland

blank.gif
PostPosted: Thu Apr 11, 2013 9:40 am    Post subject: Reply with quote

Tapping into my cars CAN was an old idea/wish. When Elektor asked me to write an article i spend some time diving into it. I then wrote the CAN lib based on the atmel chips with CAN interface.
Since Elektor made a good board for it, i decided to use the CAN32 chip. So the sample is for that board/chip. But it should work for other chips as well.
There is no special lib required for talking to the car CAN bus. But you need info about the id's to send and what to expect. Some info differs from car to car Sad

the code i showed before is all you need : a MOB for sending and a MOB for receiving. if i get my connector i will make a sample.
or maybe someone beats me to it Smile

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR All times are GMT + 1 Hour
Goto page Previous  1, 2, 3
Page 3 of 3

 
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
You cannot attach files in this forum
You cannot download files in this forum