PCIE Express not working

PCI Express to CAN Interface
Post Reply
prakhar
Posts: 4
Joined: Tue 3. Jan 2023, 13:26

PCIE Express not working

Post by prakhar » Tue 3. Jan 2023, 13:54

Hello,

I recently bought the PCI express for my pc for CAN interfacing.

I am using ROG CROSSHAIR X670E HERO motherboad, I connected to the PCIE X1 slot and installed the software on windows 10 64 bit as instructed by the document.

The card is being detected but when i am trying to either send a packet or just use it in the listen only mode to read the sensor value sent over CAN and see it in PCAN view, it is not working.

I tried connecting the sensor via a CAN module to arduino and I was able to get the data from the sensor.

Please help me with this issue with the PCI express card.

Looking forward for an answer.

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PCIE Express not working

Post by PEAK-Support » Wed 4. Jan 2023, 08:29

Simply start PCAN-View, select Device and try to send a CAN Frame on the BUS (terminated and correct wires are a must!)
Check the BUS State.

The informatrion "is not working" does not help - what is not working ? Your sensor ? contact sensor manufacturer for more details.
If the sensor work with a pre-defined bitrate (and you use exact the sensor timing) , and send automatically , you will see CAN Frames in PCAN-View.
If you do not see any CAN Frames, maybe the Sensor must be triggered (by a CAN-ID / Data) , or set to operational mode (CANopen ?)
As i wrote - contact sensor company or read manual of teh sensor...
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

prakhar
Posts: 4
Joined: Tue 3. Jan 2023, 13:26

Re: PCIE Express not working

Post by prakhar » Wed 4. Jan 2023, 12:24

Hello, apologies for being so vague,

To debug the can card, I have connected an esp32 with a can trasceiver(SN65HVD230), I am sending a packet using pcanview , and expecting to see the an output on the serial monitor i.e that esp32 has recieved the data, I have tried the esp32 and the tranceiver with another device and made sure it recieves the message if there is data on the bus.

In case of the above setup, I am unable to see any output on the esp side.

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PCIE Express not working

Post by PEAK-Support » Wed 4. Jan 2023, 12:30

Sorry, but we could not help with ESP32 Hardware.
Simply send a CAN Frame in PCAN-View and check the Status Line. If you do not see a CAN Error, the CAN Frame was send and ACK by the 2nd CAN Node (in your case the ESP32).
If you see a CAN-Errror, the 2nd CAN Node (ESP32) use a different Timing (keep in mind that this must fit 100% - see Sample Point etc.), CAN Bus is not correct terminated or Device is in Listen Only Mode etc.
Means the ESP32 simply does NOT ACK the sendet Frame.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

prakhar
Posts: 4
Joined: Tue 3. Jan 2023, 13:26

Re: PCIE Express not working

Post by prakhar » Wed 4. Jan 2023, 14:47

Hello, I did as you suggested.

Please see the attached image for the errors being received.
Attachments
Screenshot from 2023-01-04 19-16-09.png
Screenshot from 2023-01-04 19-16-09.png (373.16 KiB) Viewed 22838 times

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PCIE Express not working

Post by PEAK-Support » Wed 4. Jan 2023, 14:55

We could not see any detail of the PCAN-View for Linux, because of the bad resolution of the picture you post.
solved --> ("save as", or open in a axtra browser and then you could see the full resolution - looks like the picture is to width)

But if you have BUS Errors while sending, the 2nd node do not ACK well.
As we wrote --> Please check the physical connection, termination and the Bitrate Timing (it must fit ! - if not calculate it - we offer a free tool - see Software Section)
Also be sure that both nodes use same CAN Transceiver Types (we use HighSpeed ISO 11898-2 Transceivers)
Do not post any ESP32 code - this is a PEAK-System Forum - we do not give any support for other Hardware - contact the manufacturer if you need help.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

prakhar
Posts: 4
Joined: Tue 3. Jan 2023, 13:26

Re: PCIE Express not working

Post by prakhar » Fri 6. Jan 2023, 11:43

Hello,

I tried everything you suggested, I made sure that the can Transceiver types are the same, supporting the same standard, working at the same bitrate, but I am still unable to read any data.

To test my can network I connected another microcontroller in the can bus, and it was able to receive the data being transmitted from other microcontrollers in the network (same configuration as set in PCAN for the can card).

Whenever I try to send/receive data using PCAN, After sending one packet it gives 'BUS PASSIVE WARNING' and while trying to just read the message in listen only mode, it's not displaying anything.

Please tell me on how to verify that if the CAN card is faulty or is damaged.

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PCIE Express not working

Post by PEAK-Support » Fri 6. Jan 2023, 13:16

Listen Only mode makes absoluttly no sencse if you have only a network with 2 CAN nodes. Ssee CAN Specicification - how the ACK works.
If you think that your CAN PC Interface could be damaged, then check the Transceiver Voltages:link
If this is correct, and the card is detected by our driver and tools, you MUST check the timing again - as i wrote - timing must fit 100%
Also simply use a oscope to check the signal quality.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply