Coder Social home page Coder Social logo

Comments (11)

JTLGE avatar JTLGE commented on May 23, 2024

I also observed with the oscilloscope that the CAN_RX(PB8) pin always remains at 3.3V.
Do I need to use any particular function to see the exchange of messages between the two nodes ?

from canopenstm32.

HamedJafarzadeh avatar HamedJafarzadeh commented on May 23, 2024

@JTLGE, it seems that the example ran successfully on your board. Try when you turn the board on, you should be able to see a single packet going through the CAN Bus only at the startup procedure. If that's not easy for you to observe, you can use CAN Analyzer or just simply try to set HeartBeat Producer time to 1000. You can do that by generating OD files, or simply open "CANOpen_STM32F3xx/OD.c" and change this line :
.x1017_producerHeartbeatTime = 0x03ED,
and save the OD and program the microcontroller, and you should be able to see Hearbeat message every 1005ms.

from canopenstm32.

JTLGE avatar JTLGE commented on May 23, 2024

I have tried to carry out your modifications, but I have not noticed any changes, I do not see any messages.

from canopenstm32.

HamedJafarzadeh avatar HamedJafarzadeh commented on May 23, 2024

Try to set a breakpoint at prv_send_can_message function and if it is being called, then most probably the problem is with your hardware side, probably wrong pins, wrong inspection method, and etc .

from canopenstm32.

JTLGE avatar JTLGE commented on May 23, 2024

I set the breckpoint where you said and i saw that i go in this point of code, but I don't see any received message on the virtual com with teraterm.

I also tried to see the pin CAN_TX PB9 with an oscilloscope but I saw that the signal is fixed at 3.3V
How can I verify and see the correctly comunicartion between boards?

from canopenstm32.

HamedJafarzadeh avatar HamedJafarzadeh commented on May 23, 2024

Sorry @JTLGE can't help much there. apparently it is not the CANOpenNode stack issue anymore. it is more like on your hardware side I would say. Double check that you are measuring the right pin, check that your oscilloscope or measuring device logging correctly. I would use logic analyzer anyway to be able to record the transmission. Anyway as far as I can tell, this code is working on my hardware and couple of other people, so be almost sure of the stack side. But I can't tell much about rest of stuff.
Maybe try writing a CAN transmission code from zero to just test the hardware first and then switch over to CANOpenNode.

from canopenstm32.

JTLGE avatar JTLGE commented on May 23, 2024

thank you @HamedJafarzadeh, could you suggest me a logic analyzer for this application?

from canopenstm32.

HamedJafarzadeh avatar HamedJafarzadeh commented on May 23, 2024

I'm using something like this in conjunction with PulseView.

from canopenstm32.

JTLGE avatar JTLGE commented on May 23, 2024

Thank you so much, I'll try it.

from canopenstm32.

HamedJafarzadeh avatar HamedJafarzadeh commented on May 23, 2024

@JTLGE, would you please close this issue if your problem has been solved ?

from canopenstm32.

HamedJafarzadeh avatar HamedJafarzadeh commented on May 23, 2024

No comment after a year. So I'll close it.

from canopenstm32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.