Can bus driver can_transmit gets timeout sometime in high can bus load.

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

Re: Can bus driver can_transmit gets timeout sometime in high can bus load.

Postby jcsbanks » Thu Aug 23, 2018 2:15 pm

Sure. I really want to know if there is an unresolved issue with this driver too. I will test more but I only moved to this driver 2 days ago. I did test sending two messages on high resolution timer callbacks, both at 1ms intervals with queue size of 5 and saw about 1000 messages per sec from each with no bus errors. The day before I pushed over the 8000 per second when Kvaser cannot keep up.

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: Can bus driver can_transmit gets timeout sometime in high can bus load.

Postby snahmad75 » Thu Aug 23, 2018 2:22 pm

jcsbanks wrote:Sure. I really want to know if there is an unresolved issue with this driver too. I will test more but I only moved to this driver 2 days ago. I did test sending two messages on high resolution timer callbacks, both at 1ms intervals with queue size of 5 and saw about 1000 messages per sec from each with no bus errors. The day before I pushed over the 8000 per second when Kvaser cannot keep up.

8000 per second works. but 16000 per seconds does not keep up with tx_queue size =100

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: Can bus driver can_transmit gets timeout sometime in high can bus load.

Postby snahmad75 » Thu Aug 23, 2018 2:23 pm

snahmad75 wrote:
jcsbanks wrote:Sure. I really want to know if there is an unresolved issue with this driver too. I will test more but I only moved to this driver 2 days ago. I did test sending two messages on high resolution timer callbacks, both at 1ms intervals with queue size of 5 and saw about 1000 messages per sec from each with no bus errors. The day before I pushed over the 8000 per second when Kvaser cannot keep up.

800 per second works. but 1600 per seconds does not keep up with tx_queue size =100

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Can bus driver can_transmit gets timeout sometime in high can bus load.

Postby WiFive » Thu Aug 23, 2018 2:47 pm

8000 per second works. but 16000 per seconds does not keep up with tx_queue size =100
800 per second works. but 1600 per seconds does not keep up with tx_queue size =100

:?:

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: Can bus driver can_transmit gets timeout sometime in high can bus load.

Postby snahmad75 » Thu Aug 23, 2018 7:59 pm

WiFive wrote:8000 per second works. but 16000 per seconds does not keep up with tx_queue size =100
800 per second works. but 1600 per seconds does not keep up with tx_queue size =100

:?:
Sorry for confusion.

I meant this

800 per second works. but 1600 per seconds does not keep up with tx_queue size =100

We found reason. as my application get TCP messages suddenly comings via TCP buffering. in separate thread i transmit all these TCP messages with my 1ms thread cycle. otherwise no issue with can_transmit method if uses in isolation. can driver is stable.

Who is online

Users browsing this forum: No registered users and 95 guests