CAN
Hi
We are using Linux 2.6.19.2 and Xenomai 2.3.0
The problem disapeared when we not changed the baudrate (we try to scan the bus..). What shoult be the time between changing the baudrate?
Thank's
Urs
From: Wolfgang Grandegger [[email protected]]
Sent: Wednesday, April 09, 2008 12:19 AM
To: Urs Eichholzer
Cc: [email protected]
Subject: Re: [Xenomai-help] CAN Probleme
Hi Urs,
Quoted 9 lines · Urs Eichholzer
Hello
We are just start to use the setup...
We try to read parameters from a device true the CAN. From some parameters we get proper replay and with other parameters we get the following message:
rtcan0: btr0=0x05 btr1=0x4f
rtcan0: btr0=0x0a btr1=0x6frtcan_mscan_start_xmit: TX buffer not empty
Hm, this message is pretty fatal. What version of Linux and Xenomai do you use? What type of parameters do you read when the error message shows up. Can you reproduce the problem with a little example program?
Thanks,
----------------------------------------------------------------
This message was sent using Samart Web Mail 2005.
Quoted 3 lines · Urs Eichholzer
Hi
We are using Linux 2.6.19.2 and Xenomai 2.3.0
Xenomai 2.3.0 is quite old and I recommand to update to 2.3.5., at lreast
Quoted 2 lines
The problem disapeared when we not changed the baudrate (we try to scan the bus..). What shoult be the time between changing the baudrate?
Ah, I see. Does the attached patch help?
Wolfgang.
Quoted 27 lines
Thank's
Urs
From: Wolfgang Grandegger [[email protected]]
Sent: Wednesday, April 09, 2008 12:19 AM
To: Urs Eichholzer
Cc: [email protected]
Subject: Re: [Xenomai-help] CAN ProblemeHi Urs,
Quoted 9 lines · Urs Eichholzer
Hello
We are just start to use the setup...
We try to read parameters from a device true the CAN. From some parameters we get proper replay and with other parameters we get the following message:
rtcan0: btr0=0x05 btr1=0x4f
rtcan0: btr0=0x0a btr1=0x6frtcan_mscan_start_xmit: TX buffer not emptyHm, this message is pretty fatal. What version of Linux and Xenomai do you use? What type of parameters do you read when the error message shows up. Can you reproduce the problem with a little example program?
Quoted 7 lines
Thanks,
----------------------------------------------------------------
This message was sent using Samart Web Mail 2005.
rtcan_mscan.c +4 -0
@@ -358,6 +358,10 @@ static int rtcan_mscan_mode_stop(structif (!CAN_STATE_OPERATING (state)) goto out; + regs->canrier =0 ; +if (!(regs->cantflg &MSCAN_TXE0 )) + regs->cantarq =MSCAN_TXE0 ; +/* Switch to sleep mode */ regs->canctl0 |=MSCAN_SLPRQ ; regs->canctl0 |=MSCAN_INITRQ ;