Skip to content

Kouno/stm32 can#18

Open
Dozyou-metoro wants to merge 11 commits intomainfrom
kouno/stm32_can
Open

Kouno/stm32 can#18
Dozyou-metoro wants to merge 11 commits intomainfrom
kouno/stm32_can

Conversation

@Dozyou-metoro
Copy link
Contributor

CANの資料を書いていたことを思い出したので

### IDについて

IDは11bitの標準IDもしくは29bitの拡張IDを使用することができる。ロボコンでは標準IDで十二分だと思われます。~~1700個以上機器を繋ぐなら別だけど~~
IDは11bitの標準IDもしくは29bitの拡張IDを使用することができる。ロボコンでは標準IDで十二分だと思われます。拡張IDは動作確認が取れていないため非推奨です。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

普通に動くので非推奨でなくてもいいと思う

((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) |
(0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow);
```
**下位3ビットのことを考えていねえ!**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この下位3bitをいじればリモートフレームだけ受け取ったりできると思う

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かにIDの部分だけ考えるなら面倒な処理になるけどフレームの種類もフィルタリングしたいなら必要だよねーという感じ

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かにリファレンスマニュアル眺める感じでは、リモートフレームorデータフレームかの情報がここに置かれそうですね

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これ1個のフィルタバンクはリモートフレームかデータフレームかのどちらかしか受信しないという認識でよいのだろうか

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

リストモードだとそうなるかも?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

マスクモードならマスクのRTRを0にしとけば両方受け取れるようになると思うけど

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かに

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これ標準IDor拡張IDもフィルタ出来そうですけどどうなんですかね?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

できるんじゃない

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

Successfully merging this pull request may close these issues.

2 participants