CAN BUS

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

Hello friends,

   

I want to run CAN BUS interface with car.so I dont know how can i do that.if there anybody that know please help me to do?

   

and if there anybody have any example please realese here?

   

thanks for regard...

0 Likes
1 Solution
harshadap_76
Employee
Employee
First like received

Hi,

   

You need to have two nodes for data transfer. If you already have a transmitting CAN node other than PSoC, then you can use one PSoC 5LP with CAN transceiver kit: https://www.infineon.com/dgdl/Infineon-CY8CKIT-017_Release_Notes-UserManual-v01_00-EN.pdf?fileId=8ac...

   

​If you want to just receive the data then you can refer 'CAN_Full_Example' mentioned in interaction #3 above. This example is receiving switch status and ADC data from another node and displaying on LCD. You can modify this project according to your need.

   

Also you need to take care of Baudrate settings. If your car CAN bus has specific baudrate then you need to configure CAN component accordingly. We recommend you to refer  Getting started with CAN application note in the following link:

   

"https://www.infineon.com/dgdl/Infineon-AN52701_PSoC_3_and_PSoC_5LP-Getting_Started_with_Controller_A..."

   

Kindly have a look at above. Let us know if you need any clarification.

   

Thanks and Regards

   

Harshada

View solution in original post

0 Likes
32 Replies
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

I want to know exactly how work parameter and items in CAN component in psoc creator.datasheet is not obvious for me...

   

please help me...

0 Likes
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

Hi Pavloven.I checked example before but I have one psoc5lp.should have i 2 psoc5lp?

   

Exactly i want to know how can i connect and get data from car with can bus for example speed or motor detail.so can you help me or give me data or example project for doing that project?it is very important for me...

   

thanks for attention...

0 Likes
harshadap_76
Employee
Employee
First like received

Hi,

   

You need to have two nodes for data transfer. If you already have a transmitting CAN node other than PSoC, then you can use one PSoC 5LP with CAN transceiver kit: https://www.infineon.com/dgdl/Infineon-CY8CKIT-017_Release_Notes-UserManual-v01_00-EN.pdf?fileId=8ac...

   

​If you want to just receive the data then you can refer 'CAN_Full_Example' mentioned in interaction #3 above. This example is receiving switch status and ADC data from another node and displaying on LCD. You can modify this project according to your need.

   

Also you need to take care of Baudrate settings. If your car CAN bus has specific baudrate then you need to configure CAN component accordingly. We recommend you to refer  Getting started with CAN application note in the following link:

   

"https://www.infineon.com/dgdl/Infineon-AN52701_PSoC_3_and_PSoC_5LP-Getting_Started_with_Controller_A..."

   

Kindly have a look at above. Let us know if you need any clarification.

   

Thanks and Regards

   

Harshada

0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

There are two examples (click on the right to CAN component -> Find code example)
CAN_Full_Example and CAN_Basic_Example.
You must have two PSoC5LP board for experiment with these examples.
Ideal - if you have a logic analyzer (saleae ljgic or another with CAN support)
You can use SN55HVD251 or PIN for Tx in Resistive pull up mode if no have CAN / LIN Expansion board.

moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

Hi pavloven and Hars.I buy another psoc5lp but i cant to run can bus interface with psoc creator example.I connected tx and rx pin(with pullup resistor)together and program twice psoc5lp kit.but I have no data transciever on can bus.so how can i test easy interfacing with 2 psoc by can bus?

   

please help me and tanks rof your regrding

0 Likes
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

It is worked.i programed basic examples on first psoc5lp and full example on second psoc5lp.so my mistake was pin configuration.explanation of mr pavloven is very helpful.so now i want to run this project with car so how can i do it?

0 Likes
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

Hi friends.Is there anybody that know how can hears CAN BUS from car on computer???

   

for example change CAN to RS232 to see data on hercules or other software.because i want to calculate data transciever from CAN BUS by psoc5lp and i dont know car parameter ID to recieave them...

   

please help me...

0 Likes
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

You need some CAN Analyzer like OBD-II PIDs to get the car parameter ID

0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

Hi.
Look at this project.
If you have a sensor on the CAN line - master displays some information:
ID  and Data (1byte) my be more.
Baudrate = 125000 - you have to change it.
I don't have the ability to verify the project with the actual device.

   

lock attach
Attachments are accessible only for community members.
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

Hi friends.i want to ask a question.I am running CAN interface on psoc5lp prototype kit.and connect with pca82c250 can controller.so my problem is to read data from vehicle.i cant read data with my psoc project.

   

is there any body that know what is my problem and how can i solve it?

   

my program and address data can bus and clock is set on vehicle specification...

   

I can get data correctly when i use another psoc5lp as vehicle device for send data ...but when i connect with vehicle(can simulator) i cant get data...

   

what can i do to solved this problem?

   

thanks for attention...

   

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received


At first sight:
C34 and C35 should not be.
R32 (pin8) = 0 for High-speed mode.
The power supply of the device must be galvanic isolated:
If your psoc5lp prototype kit is connected to a laptop, then the first experiments are best done
Without a mains power supply.

0 Likes
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted
        I did not soldered c34 and c35.it just have foot print for reservation and i solder with 0 ohm resistor. i use labtop for power supply. has my program in project file any mistake? i observance can bus (data addres and clock) by FMS v3 starndard protocol. please say me how can i get data from vehicle such as truck with my project? tanks for attention...   
0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

  
The most effective overhear CAN bus: who is present, ID, .....
I use the Logical Analyzer Saleae Logic.
You can use your PSoC in Basic mode to listen to the bus.

   

and pin Tx for PCA82C250 must be strong drive.

0 Likes
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

how can I use PSoC in Basic mode to listen to the bus?

   

i am changing Tx pin to strong mode...

0 Likes
Anonymous
Not applicable

hello i want can s6e2cc 176-eth kit but data is not transmit and receive i configure CAN1 as transmitting and CAN0 as receiving please help me

0 Likes

Hello

if your hardware is correct and you are be sure then for transfer and reciever data with CAN protocol you must to do 3 thing :

first : your boadrate in trasfer madoul and reciever must be set together

second : your listener module must set correct ID .

third : your mask data should be correct with pattern

i hope your problem have been solved...

0 Likes
Anonymous
Not applicable

hello have you any program in CAN

because register configuration is correct but TXOK BIT IS NOT ENABLE

0 Likes
lock attach
Attachments are accessible only for community members.

this is my sample , i tested and its worked.

0 Likes
Anonymous
Not applicable

actually my kit fm4 s6e2cc eth pioner kit in this i want program of can basic

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

My message (# 10) contains the project Download CAN_example.cywrk_.zip
The CAN_Master project listens to the CAN and outputs the devices IDs of the transmitter over the bus.
Try to use it as an example.

moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

My can simulator is http://www.peak-system.com/PCAN-USB.199.0.html?&L=1 

   

Can-bus transceiver IC in this simulator is pca82c251 and i used pca82c250 with psoc5lp so should i changed can transceiver or not?

   

tankyou...

0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

With isolated power it does not matter (PCA82C251 for 24 V systems).
Is your PCAN-USB-Adapter equipped with CAN Eavesdropping Software?
In the project below:
CAN_Device - simulator of your sensor
CAN_Master - eavesdropping device.
These are very simple devices-they will hang when there are errors on the bus.
Use CAN_Master to view devices in your CAN bus

   

0 Likes
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

yes I can  with CAN Eavesdropping Software.how can i tested?

0 Likes
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

how can i send can-data on fms_v3 standard protocol to CAN Eavesdropping Software and checking my rules to be correct?

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

I want to make sure that I understand you correctly:
1. Your device (PSoC + PCA82C250) successfully receives the CAN signal from the simulator (PSoC)
2. Your device (PSoC + PCA82C250) does not receive a signal on the real CAN bus (truck)

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

I do not have a PCAN-USB-Adapte, but it seems like this:
To listen to the CAN bus, you must connect the PCAN-USB-Adapter to the CAN bus (truck)
And use the program PCAN-View for Windows.
My project (# 18) uses Basic mode for the same purposes (wiretapping).

0 Likes
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

I have PSoC + PCA82C250 but i cant  receives signal from the simulator.

   

I have a CAN simulator as below link of that :

   

http://www.peak-system.com/PCAN-USB.199.0.html?&L=1 

   

when it working correctly to read data from simulator , then i can test on truck(now i cant use truck).

0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

I changed the CAN timings in your program (for MasterClock = 48).
Possible problems:
- my analyzer showed inaccuracy of the CAN speed (PSoC) = 124000 (set 125000)
- when the CAN line is closed, my PSoC will no longer see the line (reset is required)

0 Likes
lock attach
Attachments are accessible only for community members.
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

Hi dear pavloven.I tried to use your project for listening can data from simulator PEAK-CAN but i have a problem:

   

when i connect one psoc5lp as transfer data and another one psoc5lp as receiver it works well(your example is worked very well).but when i connect psoc5lp with PEAK-CAN simulator i cant receive data.why it is happennig? how can i solved it?

   

PEAK-CAN is correct because i test it with listening device.My listening device can get data from my psoc5lp too.

   

so just i have problem between psoc5lp and PEAK-CAN simulator!!!!

   

Below is my schematic design,is it has any problem?

   

I used any can tranceiver chip as pca82c250 , pca82c251 , tja1051 , mcp2551 but it is not worked as i said...

   

what is my mistake?

   

Please help me.it is very important for me...

   

thank you...

0 Likes
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

   

   

0 Likes
moro_1580446
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

Tank you for your helping...my problem solved and i can data from can simulator very well...

0 Likes
Anonymous
Not applicable

their is no sample please send again

0 Likes