nopnop2002 / Arduino-STM32-CAN

Can Example for Arduino Core STM32
210 stars 53 forks source link

Sample program #39

Closed saadat925 closed 3 years ago

saadat925 commented 3 years ago

Dear friend I want to send 0x01 to identifier 0 only once and then receive 8 bytes data from id = 2bd permanently. please guide me . I also used a blue pill. Thank you

nopnop2002 commented 3 years ago

This is very simple example for blue pill.

https://github.com/nopnop2002/Arduino-STM32-CAN/tree/master/stm32f103

saadat925 commented 3 years ago

I run this program and get ۲۰۲۱۰۴۱۸_۱۰۵۵۰۱ this result. But I need to send a byte

nopnop2002 commented 3 years ago

You need to change this code.

https://github.com/nopnop2002/Arduino-STM32-CAN/blob/master/stm32f103/stm32f103.ino#L360

saadat925 commented 3 years ago

Thanks

saadat925 commented 3 years ago

Dear sir Now the canbus is sent on my device in extended mode. If I want to be sent only in standard mode, what do you suggest?

nopnop2002 commented 3 years ago

change this.

https://github.com/nopnop2002/Arduino-STM32-CAN/blob/master/stm32f103/stm32f103.ino#L376

saadat925 commented 3 years ago

That is, to replace the extendedformat with the standard format ?

nopnop2002 commented 3 years ago

Yes.

saadat925 commented 3 years ago

Where can I find UNO program?

nopnop2002 commented 3 years ago

There is a lot of program for UNO in the internet.