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

Reply to a read of status flags #2

Open
prices opened this issue Mar 15, 2021 · 0 comments
Open

Reply to a read of status flags #2

prices opened this issue Mar 15, 2021 · 0 comments
Assignees

Comments

@prices
Copy link
Member

prices commented Mar 15, 2021

This will allow the baud rate on the RS232 to be higher than the CAN rate. Currently it will overrun buffers if this is the case.

F\r Reads the status flags.

It should return:

FXX\r Where XX is a two digit BCD hex value. The bits are as follows:

Bit 0 - CAN receive FIFO queue full
Bit 1 - CAN transmit FIFO queue full
Bit 2 - Error warning (EI)
Bit 3 - Data Overrun (DOI)
Bit 4 - Not Used
Bit 5 - Error Passive (EPI)
Bit 6 - Arbitration Lost (ALI)
Bit 7 - Bus Error (BEI)

This is taken from the datasheet at:

http://www.can232.com/docs/can232_v3.pdf

@prices prices self-assigned this Mar 15, 2021
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

No branches or pull requests

1 participant