CAN tx successfullness at Xenomai RT SocketCAN
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello All
I'm using RTSocket CAN in my application. Trying figure out how to ensure the CAN message tranmission succesfulness in my function
Previuosly I was able to assess the echoed (recv own msg) message with MSG_CONFIRM flag returned by recvmsg() while using just socket CAN functionalities. However with RT SOcket CAN, the CAN_RAW_RECV_OWN_MSGS is not supported at rt_dev_setsockopt, and because of this the MSG_CONFIRM isnot being set at msg flags in the received messages. Could please elaborate how do we make sure the tx message successfulness are assesed at RT socket CAN.
Thanks
YA
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
Quoted 6 lines · Narasimhaprasad Yedatore Achutha
Hello All
I'm using RTSocket CAN in my application. Trying figure out how to ensure the CAN message tranmission succesfulness in my function
Previuosly I was able to assess the echoed (recv own msg) message withMSG_CONFIRMflag returned byrecvmsg()while using just socket CAN functionalities. However with RT SOcket CAN, theCAN_RAW_RECV_OWN_MSGSis not supported atrt_dev_setsockopt, and because of this theMSG_CONFIRMisnot being set at msg flags in the received messages. Could please elaborate how do we make sure the tx message successfulness are assesed at RT socket CAN.
Thanks
Apparently you did not get it the first time, so I am going to try again:
PLEASE DO NOT SEND MAILING LIST QUESTIONS TO THE XENOMAI-OWNER ADDRESS.
Signature · 1 line
Gilles.
Hi All
Could anybody share details on this query?
Thanks and Regards
Prasad
-----Original Message-----
From: Narasimhaprasad Yedatore Achutha
Sent: Wednesday, March 18, 2015 1:57 PM
To: '[email protected]'; '[email protected]'; '[email protected]'
Subject: Re: CAN tx successfullness at Xenomai RT SocketCAN
Hello All
I'm using RTSocket CAN in my application. Trying figure out how to ensure the CAN message tranmission succesfulness in my function Previuosly I was able to assess the echoed (recv own msg) message with MSG_CONFIRM flag returned by recvmsg() while using just socket CAN functionalities. However with RT SOcket CAN, the CAN_RAW_RECV_OWN_MSGS is not supported at rt_dev_setsockopt, and because of this the MSG_CONFIRM isnot being set at msg flags in the received messages.
Could please elaborate how do we make sure the tx message successfulness are assesed at RT socket CAN.
Thanks
YA
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
Quoted 2 lines · Narasimhaprasad Yedatore Achutha
Hi All
Could anybody share details on this query?
See below.
Quoted 11 lines
Thanks and Regards
Prasad-----Original Message-----
From: Narasimhaprasad Yedatore Achutha
Sent: Wednesday, March 18, 2015 1:57 PM
To: '[email protected]'; '[email protected]'; '[email protected]'
Subject: Re: CAN tx successfullness at Xenomai RT SocketCAN
Quoted 2 lines
Hello All
I'm using RTSocket CAN in my application. Trying figure out how to
ensure
Quoted 1 line
the CAN message tranmission succesfulness in my function Previuosly I
was
Quoted 3 lines
able to assess the echoed (recv own msg) message with
MSG_CONFIRMflag returned byrecvmsg()while using just socket CAN functionalities. However with RT SOcket CAN, theCAN_RAW_RECV_OWN_MSGSis not supported
at
Quoted 1 line
rt_dev_setsockopt, and because of this theMSG_CONFIRMisnot being set
at
Quoted 3 lines
msg flags in the received messages.
Could please elaborate how do we make sure the tx message successfulness are assesed at RT socket CAN.
As a workaround you could open another socket to receive the looped back message. Also implementing CAN_RAW_RECV_OWN_MSGS should not be a big deal. The delivery skipping the own socket is done here:
http://git.xenomai.org/xenomai-2.6.git/tree/ksrc/drivers/can/rtcan_raw.c#n194
Wolfgang.
Actually it will be definitely helpful if we can recognize through MSG_CONFIRM flag with CAN_RAW_RECV_OWN_MSGS options.
Even with loopback option we can receive our own messages, but needs additional task time to separate it from external messages and its own transmitted messages as there will be mix of both, additionally with lot of backtracking. Here we just want to confirm whether the tx messages has gone out successfully.
Incidentally socketcan also has a patch(refer net\can\raw.c @ raw_rcv() )
http://patchwork.ozlabs.org/patch/67893/
So a patch on this line, will enable us to handle this in a better way. Please let me know the feasibility.
Thanks and Regards
Prasad
-----Original Message-----
From: Wolfgang Grandegger [mailto:[email protected]]
Sent: Wednesday, April 01, 2015 4:37 PM
To: Narasimhaprasad Yedatore Achutha
Cc: [email protected]; [email protected]
Subject: Re: [Xenomai] CAN tx successfullness at Xenomai RT SocketCAN
Importance: High
Quoted 2 lines · Narasimhaprasad Yedatore Achutha
Hi All
Could anybody share details on this query?
See below.
Quoted 11 lines
Thanks and Regards
Prasad-----Original Message-----
From: Narasimhaprasad Yedatore Achutha
Sent: Wednesday, March 18, 2015 1:57 PM
To: '[email protected]'; '[email protected]'; '[email protected]'
Subject: Re: CAN tx successfullness at Xenomai RT SocketCAN
Quoted 2 lines
Hello All
I'm using RTSocket CAN in my application. Trying figure out how to
ensure
Quoted 1 line
the CAN message tranmission succesfulness in my function Previuosly I
was
Quoted 3 lines
able to assess the echoed (recv own msg) message with
MSG_CONFIRMflag returned byrecvmsg()while using just socket CAN functionalities. However with RT SOcket CAN, theCAN_RAW_RECV_OWN_MSGSis not supported
at
Quoted 1 line
rt_dev_setsockopt, and because of this theMSG_CONFIRMisnot being set
at
Quoted 3 lines
msg flags in the received messages.
Could please elaborate how do we make sure the tx message successfulness are assesed at RT socket CAN.
As a workaround you could open another socket to receive the looped back message. Also implementing CAN_RAW_RECV_OWN_MSGS should not be a big deal. The delivery skipping the own socket is done here:
http://git.xenomai.org/xenomai-2.6.git/tree/ksrc/drivers/can/rtcan_raw.c#n194
Wolfgang.
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
Quoted 5 lines · Narasimhaprasad Yedatore Achutha
Actually it will be definitely helpful if we can recognize through
MSG_CONFIRMflag withCAN_RAW_RECV_OWN_MSGSoptions.
Even with loopback option we can receive our own messages, but needs additional task time to separate it from external messages and its own transmitted messages as there will be mix of both, additionally with
lot
Quoted 1 line
of backtracking. Here we just want to confirm whether the tx messages
has
Quoted 1 line
gone out successfully.
OK, I see.
Quoted 1 line
Incidentally socketcan also has a patch(refer net\can\raw.c @
raw_rcv() )
Quoted 4 lines
http://patchwork.ozlabs.org/patch/67893/
So a patch on this line, will enable us to handle this in a better way. Please let me know the feasibility.
Yes, this approach is also feasible with RTCAN. Should not be a big deal to implement it.
Wolfgang.