From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 10FD67F75D for ; Thu, 30 Jan 2014 15:17:09 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of jdimino@janestreet.com) identity=pra; client-ip=38.105.200.229; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="jdimino@janestreet.com"; x-sender="jdimino@janestreet.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of jdimino@janestreet.com designates 38.105.200.229 as permitted sender) identity=mailfrom; client-ip=38.105.200.229; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="jdimino@janestreet.com"; x-sender="jdimino@janestreet.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@tot-dmz-mxout1.janestreet.com) identity=helo; client-ip=38.105.200.229; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="jdimino@janestreet.com"; x-sender="postmaster@tot-dmz-mxout1.janestreet.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnsCADde6lImacjlnGdsb2JhbABZg0RXqVwyikGIVoEBHg4BAQEBAQYWCTyCJQEBAQMBQAEBLAsBBAsLCxohIhIBBQEKEgYTEodfAwkIAwIInxCLE4RSAQWTUAOJJhEGjQWBeQQHhDiYLIEyjwAYKYJsgW0 X-IPAS-Result: AnsCADde6lImacjlnGdsb2JhbABZg0RXqVwyikGIVoEBHg4BAQEBAQYWCTyCJQEBAQMBQAEBLAsBBAsLCxohIhIBBQEKEgYTEodfAwkIAwIInxCLE4RSAQWTUAOJJhEGjQWBeQQHhDiYLIEyjwAYKYJsgW0 X-IronPort-AV: E=Sophos;i="4.95,750,1384297200"; d="scan'208";a="47113874" Received: from mx5.janestreet.com (HELO tot-dmz-mxout1.janestreet.com) ([38.105.200.229]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Jan 2014 15:17:07 +0100 Received: from tot-oib-smtp1.delacy.com ([172.27.22.15] helo=tot-smtp) by tot-dmz-mxout1.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1W8sQS-0007W5-Sb for caml-list@inria.fr; Thu, 30 Jan 2014 09:17:04 -0500 Received: from tot-dmz-mxgoog1.delacy.com ([172.27.224.14] helo=mxgoog2.janestreet.com) by tot-smtp with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1W8sQS-0005Xn-Rd for caml-list@inria.fr; Thu, 30 Jan 2014 09:17:04 -0500 Received: from mail-ie0-f172.google.com ([209.85.223.172]) by mxgoog2.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1W8sQS-0000SS-OR for caml-list@inria.fr; Thu, 30 Jan 2014 09:17:04 -0500 Received: by mail-ie0-f172.google.com with SMTP id e14so3396096iej.31 for ; Thu, 30 Jan 2014 06:17:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yDYKt1g6QP075/G7AnVY3XdYaKoDogZK/hZQLOWCx1o=; b=HNdF4Ny3XF+84w2mdNO+eTpTmkIjripdI78M8nvFeG1C7bt6O7aBS7aW4sxd4k7qON R/tx2mbxzMe6egll77W31tVH55xPmwgaXo4hVb+vB/V0gGKXo7JfhFtXMmWcsh8zASZP zz0nPRHKInb8iKgWZSTDmpU633yAL1UDAANEc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=yDYKt1g6QP075/G7AnVY3XdYaKoDogZK/hZQLOWCx1o=; b=inGuAL6YUsIPUt5mFiIEwdt/LyLB2pBwPdSlY4jzQA40b3vlHwhh+wGCo0Gd67Uthl SgRz5eCJWRaHwR+uJ715Vhwi0zXwXFmGXM/XcfMWfBa9qqy63arUhQRg5ucbApskl9q4 L2xymRlYiC/vHMJXqSnsst5msCIZHOWo4EIxswDJQFSf4U0h4YoOu/KZ1ByLQLpBmGAH RG2CnuDkHP7oZdMoBAdoeoH4t1jZ5TuwF3B4mjSDuDrNlQs+iPqf9QiUsxlNNX6uwaK1 Ov80Xcg+v8RKcoeDFDrv4rKUNwyd3pclsoLgXoLAIjAQlvOMqtrFcPLbybNxMkyHa+48 0nSw== X-Gm-Message-State: ALoCoQlMcS8mlVqETTPx/v/f786Gq+OVx9kTmXziFKu4vUe/BFej9etfHCkxwWM2RkaZe5J63rOEbmbQWogQVcFBCHMhkJLVJiCOBYUgeE9nI/h4dhXFx91AFVjO5LdHEBtsQqywasZW7NXSdWd7zFIKM+urjPjPEw== X-Received: by 10.50.67.72 with SMTP id l8mr11187579igt.0.1391091424533; Thu, 30 Jan 2014 06:17:04 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.50.67.72 with SMTP id l8mr11187525igt.0.1391091423865; Thu, 30 Jan 2014 06:17:03 -0800 (PST) Received: by 10.50.114.38 with HTTP; Thu, 30 Jan 2014 06:17:03 -0800 (PST) In-Reply-To: <2fff8ba277e31c764580048a1c0bbc2b@in.tum.de> References: <2fff8ba277e31c764580048a1c0bbc2b@in.tum.de> Date: Thu, 30 Jan 2014 14:17:03 +0000 Message-ID: From: Jeremie Dimino To: =?ISO-8859-1?Q?Markus_Wei=DFmann?= Cc: "caml-list@inria.fr" Content-Type: multipart/alternative; boundary=047d7bd755b82c430404f130b6b1 Subject: Re: [Caml-list] OCaml CAN support (controller area network) --047d7bd755b82c430404f130b6b1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I wrote stubs for using CAN sockets a long time ago. We used it for the control system of a robot. The code is here: http://sourceforge.net/p/krobot/krobot/ci/master/tree/info/control2011/src/= can/ and the definition of CAN frames is in this file: http://sourceforge.net/p/krobot/krobot/ci/master/tree/info/control2011/src/= lib/krobot_can.mli It should be easy to extract the code from the project if you want to reuse it. Regards Jeremie On Thu, Jan 30, 2014 at 11:54 AM, Markus Wei=DFmann < markus.weissmann@in.tum.de> wrote: > Hello, > > on Linux there is support for a socket family "PF_CAN" for the CAN bus > (controller area network bus) [1]. > I was wondering if anyone is/was working on > 1) support for PF_CAN for the standard Unix socket in OCaml (see example > code on [2]) > 2) some kind of OCaml CAN library/separate bindings for aforementioned > socket domain > 3) an OCaml library/tool on top of CAN, e.g. some CAN controller, a > DeviceNET or CANOpen library > and of course if 1) would be an acceptable patch for the standard library > or if it would be considered "too exotic", given that there aren't many > domains supported by the OCaml/Unix socket right now ('only' PF_UNIX, > PF_INET and PF_INET6). > > Best regards > Markus > > [1] https://gitorious.org/linux-can/ > [2] http://en.wikipedia.org/wiki/SocketCAN > > -- > Markus Wei=DFmann, M.Sc. > Technische Universit=E4t M=FCnchen > Institut f=FCr Informatik > Boltzmannstr. 3 > D-85748 Garching > Germany > http://wwwknoll.in.tum.de/ > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > --=20 Jeremie --047d7bd755b82c430404f130b6b1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I wrote stubs for using CAN sockets a long time ago. We us= ed it for the control system of a robot. The code is here:

=A0=A0http://sourceforge.net/p/krobot= /krobot/ci/master/tree/info/control2011/src/can/

and the definition of CAN frames is in this file:


It should be easy to extract the code from the pr= oject if you want to reuse it.

Regards=
Jeremie


On Thu, Jan 30, 2014 at 11:54 AM, Markus Wei=DFmann <<= a href=3D"mailto:markus.weissmann@in.tum.de" target=3D"_blank">markus.weiss= mann@in.tum.de> wrote:
Hello,

on Linux there is support for a socket family "PF_CAN" for the CA= N bus (controller area network bus) [1].
I was wondering if anyone is/was working on
1) support for PF_CAN for the standard Unix socket in OCaml (see example co= de on [2])
2) some kind of OCaml CAN library/separate bindings for aforementioned sock= et domain
3) an OCaml library/tool on top of CAN, e.g. some CAN controller, a DeviceN= ET or CANOpen library
and of course if 1) would be an acceptable patch for the standard library o= r if it would be considered "too exotic", given that there aren&#= 39;t many domains supported by the OCaml/Unix socket right now ('only&#= 39; PF_UNIX, PF_INET and PF_INET6).

Best regards
Markus

[1] https://= gitorious.org/linux-can/
[2] ht= tp://en.wikipedia.org/wiki/SocketCAN

--
Markus Wei=DFmann, M.Sc.
Technische Universit=E4t M=FCnchen
Institut f=FCr Informatik
Boltzmannstr. 3
D-85748 Garching
Germany
http://wwwknoll.in= .tum.de/


--
Caml-list mailing list. =A0Subscription management and archives:
ht= tps://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners<= /a>
Bug reports:
http://caml.inria.fr/bin/caml-bugs



-- Jeremie --047d7bd755b82c430404f130b6b1--