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

Kouno/stm32 can #18

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Kouno/stm32 can #18

wants to merge 11 commits into from

Conversation

Dozyou-metoro
Copy link
Contributor

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

@@ -226,7 +227,7 @@ STM32には、受信したデータを、IDで判断して勝手に取捨選択

### 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