You are right, the Identifier of the message specifies the target of the information. It is probably not necessary to disable this "local loopback" function.
I have already tried to disable the loopback function. I used this code: int loopback = 0; setsockopt(s, SOL_CAN_RAW, CAN_RAW_LOOPBACK, &loopback, sizeof(loopback)); I had an error in my code, so that the loopback function was turned on again. Now it's working perfectly! Many thanks to all! Am 28.03.2013 13:40, schrieb Gary Thomas [via Socket-CAN]: > On 2013-03-28 06:08, Olli wrote: > > > I'm developing Software for the Raspberry Pi with MCP2515 extension. > > > > I have two applications running the same time. > > One is in the receiving mode, and the other can transmit and receive. > > Unfortunately the application that is permanently receiving, > receives the > > data of the second application too. > > > > How can I turn off this function? > > > > I read the helpfile > > > http://svn.berlios.de/wsvn/socketcan/trunk/kernel/2.6/Documentation/networking/can.txt > > but I don't see there any possibility to eleminate this function. > > > > Thank you very much! > > > > How do you distinguish the data? Surely the "permanently receiving" > application wants to see some part of the data and the other application > needs to see other parts? How do you know which is which? Are you > running some sort of higher-level protocol, e.g. CanFestival, on the > CAN bus? > > -- > ------------------------------------------------------------ > Gary Thomas | Consulting for the > MLB Associates | Embedded world > ------------------------------------------------------------ > _______________________________________________ > Socketcan-users mailing list > [hidden email] </user/SendEmail.jtp?type=node&node=7636&i=0> > https://lists.berlios.de/mailman/listinfo/socketcan-users > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://socket-can.996257.n3.nabble.com/Help-Transmitted-Data-is-not-to-be-received-by-other-Application-tp7635p7636.html > > > To unsubscribe from Help: Transmitted Data is not to be received by > other Application, click here > <http://socket-can.996257.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7635&code=b3MyNTJAZ214LmRlfDc2MzV8LTE4MzAzMjQ3NTg=>. > NAML > <http://socket-can.996257.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > -- View this message in context: http://socket-can.996257.n3.nabble.com/Help-Transmitted-Data-is-not-to-be-received-by-other-Application-tp7635p7638.html Sent from the Socket-CAN Users mailing list archive at Nabble.com. _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
