View previous topic :: View next topic |
Author |
Message |
Greece2001
Joined: 06 Apr 2009 Posts: 57
|
Posted: Thu May 15, 2014 11:00 am Post subject: AVR and DeviceNet ? |
|
|
Hello to all of you !
Has anyone ever managed to use an AVR (AVR-CAN) to build a slave for DeviceNet ?
As DeviceNet is based on the CAN-Bus structure, I guess it should be possible.
What I would like to do :
- receiving a Byte or Word with the slave from a master on the DeviceNet-Bus
- output this either in serial form (UART or SPI) or in parallel form (PortX)
Any idea ? Or even a sample to get me going in the right direction ?
Best regards and thank you !
Greece2001
(BASCOM-AVR version : 2.0.7.7 ) |
|
Back to top |
|
|
PeterM
Joined: 09 Jun 2008 Posts: 118
|
Posted: Fri May 16, 2014 1:34 pm Post subject: |
|
|
Hi
I have done some CAN but not DeviceNet.
You need to find out the Protocol and how it is formated or how each Packet is structured.
Once you know that the CAN part then is going to be easy, as you will know how to decipher an incoming packet
and how to construct an outgoing packet.
Not much help but you may have to do some research on the internet. _________________ Peter |
|
Back to top |
|
|
Greece2001
Joined: 06 Apr 2009 Posts: 57
|
Posted: Tue May 20, 2014 12:53 pm Post subject: |
|
|
Hi Peter,
thank you for your reply !
I do know how DeviceNet works, that's not the problem.
Just thought that someone might already had gone through the process of writing a driver.
Best regards,
Greece2001
PeterM wrote: | Hi
I have done some CAN but not DeviceNet.
You need to find out the Protocol and how it is formated or how each Packet is structured.
Once you know that the CAN part then is going to be easy, as you will know how to decipher an incoming packet
and how to construct an outgoing packet.
Not much help but you may have to do some research on the internet. |
|
|
Back to top |
|
|
nicofer
Joined: 01 May 2013 Posts: 90 Location: GRJ
|
Posted: Thu Jun 19, 2014 9:52 pm Post subject: |
|
|
I also have a request for S-Bus - - mainly to link and control a SEW Eurodrive motor drive unit .
Hardware seems to be same as CAN BUS but a lot of extra software to communicate with unit
Any help ?
Cheers
Nico |
|
Back to top |
|
|
Robert_d1968
Joined: 18 Dec 2012 Posts: 67 Location: America
|
Posted: Fri Jun 20, 2014 3:41 am Post subject: |
|
|
Get out your Logic analyzer and have a look at it.
This would seem pretty easy to implement, I don't have access to a device that uses Device net right now.
I'll try to find something around here and take a sample with a logic analyzer.
Once I get that information I can help you out a bit...
Robert
PS. Seed studio makes a really decent logic analyzer like 32 channels for around 50 US dollars. It's a really handy device to have on hand... They also have the Bus pirate available too, something no one who loves electronics should be without IMHO. |
|
Back to top |
|
|
|