NI Home > Community > NI Discussion Forums

Automotive and Embedded Networks

Reply
Member
can open
Posts: 1
0 Kudos

looking for drivers for USB 8473

[ Edited ]
Hi,
I am looking for drivers for the usb-8473 high speed CAN. Also tell me how do make use of this product in test of can open units.


Message Edited by can open on 07-28-2008 04:28 AM
Active Participant
DirkW
Posts: 1,118
0 Kudos

Re: looking for drivers for USB 8473

Hi,

The driver for the USB CAN product line is NI-CAN and the current version is 2.5.2. You can download it here.

There is currently no CANopen support but a basic example that shows how to start with NI-CAN, to create your own CANopen stuff.

DirkW

Member
Ken-This-is-my-stinking-alias
Posts: 80
0 Kudos

Re: looking for drivers for USB 8473

[ Edited ]

That example lists an llb file??? What the heck is that?

 

It appears to be a bin!

 

Ahhhhhhhhh! I see!

It is for LabView - relagating Lab Windows users to second class once again!

 

How about :

 

I'm looking for at least a hint on how to setup and access the NI USB CAN as compared to the NI PCMCIA CAN!

 

All I was told was that I'd need a newer CAN driver 2.5.2, and Lab Windows  CVI verison after 7.; so I got the latest 8.5.1 and no further direction!

Message Edited by Ken (This is my stinking alias) on 09-04-2008 02:32 PM
Member
Simran_K
Posts: 103
0 Kudos

Re: looking for drivers for USB 8473

Hi Ken,

 

Once you download the NI-CAN driver you will have CVI examples installed that you can use to setup the device. The examples will be located at C:\Documents and Settings\All Users\Documents\National Instruments\CVI\samples\nican. Also, if you used the CANopen LabVIEW Library with PCMCIA CAN, please note that you cannot use it with USB-CAN.

Thank you,

Simran K
National Instruments
Applications Engineer
Member
Ken-This-is-my-stinking-alias
Posts: 80
0 Kudos

Re: looking for drivers for USB 8473

Thanks for the reply,

 

I'm not using LabView, or anything for LabView.

I'm just using the NI CAN drivers version 2.5.2.

 

I've been tinkering with two examples one for Rx and another for Tx, but I couldn't find something that  does both.

I was started trying to get something that would be a merge of these two, but I'm not sure it is worth the time I have to do that.

I'm thinking of stepping through each call to configure and open and other drivers calls, until I figure out the differences between PCMCIA / PCI use and the USB use.

It would be nice if this was documented somewhere.

 

The code I have that calls the CAN drivers for PCMCIA and  PCI cards is the exact same code for both devices.

Appearantly, this will not work exactly the same for the USB device.

That is OK, I just would like to have something that either states the differences, or defines the USB interface using the CAN drivers.

Active Participant
DirkW
Posts: 1,118
0 Kudos

Re: looking for drivers for USB 8473

Hi,

 

The CVI examples for NI-CAN have the Transmit/receive same Port example code. Thats doing Tx and Rx at the same port.

 

DirkW

Member
Ken-This-is-my-stinking-alias
Posts: 80
0 Kudos

Re: looking for drivers for USB 8473

I'm working with code that works for NI PCMCIA and PCI CAN devices;

the current code has ncConfig for Rx, then Tx on the same channel.

 

I'm trying to figure out how to get this code to work for the NI USB 8473 CAN device.

Active Participant
DirkW
Posts: 1,118
0 Kudos

Re: looking for drivers for USB 8473

Well, then have a look to this KB. It describes the driver limitations for the USB 847x devices:

 

http://digital.ni.com/public.nsf/allkb/E1A44077DA6C819186257288006B76D7?OpenDocument

Member
Ken-This-is-my-stinking-alias
Posts: 80
0 Kudos

Re: looking for drivers for USB 8473

[ Edited ]

OK, I'm using an NI CAN PCMCIA device, andtrying to add support for the same software using a NI USB CAN 8473;

I'm using 

ncWrite and ncReadMult, which don't seem to be listed.

 

What I'm trying to communicate with uses an NI CAN PCMCIA and basically does this:

 

ncWrite(8, "65 00 00 00 00 00 00 00" )

ncWrite(8, "02 00 00 00 00 00 00 00" ) 

ncWrite(8, "50 00 00 00 00 00 00 00" ) 

ncWrite(8, "AA 00 00 00 00 00 00 00" ) 

ncWrite(8, "95 00 00 00 00 00 00 00" ) 

 

where the 00s are don't cares, all my target is interested in is the first byte (and no, I can't change this).

the 02 indicates a size (it can be 03, 04, ...), 2 bytes for the message"50 AA", everything else is header and footer;

 

When I read the response I am using:

ncWaitForStste

ncReadMult

and this gets the entire response in a single call.

 

What I'd like to know, is can I still use this with the 8473 to communicate with my target?

 

Message Edited by Ken (This is my stinking alias) on 09-10-2008 04:55 PM
Active Participant
DirkW
Posts: 1,118
0 Kudos

Re: looking for drivers for USB 8473

Yes , you can. See this KB about Limitations for the USB devices.

 

DirkW