On Tue, Sep 16, 2014 at 11:59 PM, Alexander S. Voronov <asvoronov(a)bk.ru> wrote:
Thanks for the quick reply!
How to use the socket CAN_RAW we understand.
What version of the protocol used in the AMB?
This isn't specific to AMB, but SocketCAN related.
We use J1939 high layer CAN
protocol. Is it possible to use AMB with J1939?
It looks like SAE J1939 uses ISO 11898 extended CAN ID frames.
SocketCAN supports extended CAN frames which J1939 requires. You will
have to set the baud rate for J1939 yourself using iproute2 tools (see
can.txt for more info).
Sorry, we don’t undetstand how some properties from one CAN message
translated into a “Vehicle” properties.
The payload in J1939 and other CAN protocols is undefined. Different
car OEMs use different payload structures to define their data.
Therefore, you will need to write an AMB plugin that translates a
vehicle-specific payload into something usable by AMB. If you have a
CANdb file, you can use the plugin generator tool to create an AMB
plugin. This tool is still very alpha, so if you do use it, feedback
AMB's cansim uses a custom payload structure because it would not be
appropriate to use a proprietary OEM defined payload structure in an
open source project. In AMB's cansim, GVariant's raw data structure
is used as the payload. The CAN ID is mapped with an AMB property.
For example, CAN ID "0x001" may map to AMB property "VehicleSpeed".
I hope that helps,
 - https://www.kernel.org/doc/Documentation/networking/can.txt
Alexander S. Voronov
Moscow design bureau COMPAS
Head of development embedded systems Division
PhD in Technical Sciences
115184, bldg 35/5, Bolshaya Tatarskaya str., Moscow
+7 (495) 951 40 62, +7 (916) 826 46 85
Tue, 16 Sep 2014 10:45:47 -0700 от "Rees, Kevron"
The socketCAN page on wikipedia has a very basic example of how to
use socketcan. In AMB, plugins/common/cansocket.h/cpp is where
socketCAN is directly used.
 - http://en.wikipedia.org/wiki/SocketCAN
On Mon, Sep 15, 2014 at 11:46 PM, Александр Воронов <asvoronov(a)bk.ru> wrote:
> Can you send me a some simple example of using of driver socket CAN? It
> need for undestanding interaction between AMB and CAN driver. How to
> CANsim plugin and PGN in CAN message?
> Sincerely yours,
> Alexander S. Voronov
> Moscow design bureau COMPAS
> Head of development embedded systems Division
> PhD in Technical Sciences
> 115184, bldg 35/5, Bolshaya Tatarskaya str., Moscow
> +7 (495) 951 40 62, +7 (916) 826 46 85
> AMB mailing list