-
Notifications
You must be signed in to change notification settings - Fork 1
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
Kouno/stm32 can #18
base: main
Are you sure you want to change the base?
Kouno/stm32 can #18
Conversation
stm32/about_STM32_CAN.md
Outdated
@@ -226,7 +227,7 @@ STM32には、受信したデータを、IDで判断して勝手に取捨選択 | |||
|
|||
### IDについて | |||
|
|||
IDは11bitの標準IDもしくは29bitの拡張IDを使用することができる。ロボコンでは標準IDで十二分だと思われます。~~1700個以上機器を繋ぐなら別だけど~~ | |||
IDは11bitの標準IDもしくは29bitの拡張IDを使用することができる。ロボコンでは標準IDで十二分だと思われます。拡張IDは動作確認が取れていないため非推奨です。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
普通に動くので非推奨でなくてもいいと思う
stm32/about_STM32_CAN.md
Outdated
((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) | | ||
(0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); | ||
``` | ||
**下位3ビットのことを考えていねえ!** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この下位3bitをいじればリモートフレームだけ受け取ったりできると思う
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確かにIDの部分だけ考えるなら面倒な処理になるけどフレームの種類もフィルタリングしたいなら必要だよねーという感じ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確かにリファレンスマニュアル眺める感じでは、リモートフレームorデータフレームかの情報がここに置かれそうですね
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これ1個のフィルタバンクはリモートフレームかデータフレームかのどちらかしか受信しないという認識でよいのだろうか
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
リストモードだとそうなるかも?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
マスクモードならマスクのRTRを0にしとけば両方受け取れるようになると思うけど
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確かに
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これ標準IDor拡張IDもフィルタ出来そうですけどどうなんですかね?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
できるんじゃない
CANの資料を書いていたことを思い出したので