Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending data issue #63

Open
banbeiduyao opened this issue Mar 20, 2024 · 9 comments
Open

Sending data issue #63

banbeiduyao opened this issue Mar 20, 2024 · 9 comments

Comments

@banbeiduyao
Copy link

I am currently using one F405, one F103, and USB to CAN for testing. There is no problem transferring data between USB to CAN and F103. However, after connecting F405 to send data for a period of time, F103 cannot send data. The reason cannot be determined!
Screenshots of normal and abnormal situations
e7c0651bdea610a1bf860f1d3fdaa39
910061234ba317e61b302793ac4d3f9

@nopnop2002
Copy link
Owner

What exactly is USB to CAN?

@banbeiduyao
Copy link
Author

CAN data can be monitored through a computer

@nopnop2002
Copy link
Owner

nopnop2002 commented Mar 20, 2024

It works correctly when there are two nodes, USB to CAN and F103.

It works correctly when there are two nodes, USB to CAN and F405.

It works correctly when there are two nodes, F103 and F405.

However, it does not work correctly when there are three nodes: USB to CAN, F103, and F405.

Is this understanding correct?

@banbeiduyao
Copy link
Author

Yes, as long as F405 is connected, F103 will fail to send data after a period of time, and the time may not be certain

@nopnop2002
Copy link
Owner

nopnop2002 commented Mar 20, 2024

It works correctly when there are two nodes, USB to CAN and F103. ---> The CAN bus has a short stub length.

It works correctly when there are two nodes, USB to CAN and F405. ---> The CAN bus has a short stub length.

It works correctly when there are two nodes, F103 and F405. ---> The CAN bus has a short stub length.

However, it does not work correctly when there are three nodes: USB to CAN, F103, and F405. ---> The CAN bus stub length is a little longer.


The CAN bus stub length may be too long.
ISO11898 Standard specifies a maximum bus length of 40m and maximum stub length of 0.3m at 1Mbps. See here.

Or Lowering the Bit-Rate may solve the problem.

@banbeiduyao
Copy link
Author

Thank you very much, but the wiring distance here is very short. F405>>5cm>>F103>>20cm>>USB-CAN

@nopnop2002
Copy link
Owner

nopnop2002 commented Mar 20, 2024

The problem may be solved by lowering the Bit-Rate or changing the value of the terminating resistor.

The value of the terminating resistor is related to the length of the CAN-BUS.
However, obtaining accurate resistance values ​​requires extremely difficult calculations.

@banbeiduyao
Copy link
Author

Okay, I'll test it again. Thank you

@nopnop2002
Copy link
Owner

nopnop2002 commented Mar 20, 2024

If you have a mix of 3.3V and 5V transceivers, a +1V ground shift using split termination can be very effective.
Check out Figure 7 here.
https://www.ti.com/lit/an/slla337/slla337.pdf


Please check again if the Bus is as shown below.

Terminator--F405--5cm--F103--20cm--USB-CAN--Terminator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants