[riot-devel] I2C - Arduino <-> SAMR21-xpro

ALESSANDRO NICOLI alessandro.nicoli at studenti.unipr.it
Sat Aug 6 12:52:22 CEST 2016


Ok, thanks a lot Alexandre.


*best regards, *
*Alessandro*

2016-08-06 12:00 GMT+02:00 <devel-request at riot-os.org>:

> Send devel mailing list submissions to
>         devel at riot-os.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.riot-os.org/mailman/listinfo/devel
> or, via email, send a message with subject or body 'help' to
>         devel-request at riot-os.org
>
> You can reach the person managing the list at
>         devel-owner at riot-os.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of devel digest..."
>
>
> Today's Topics:
>
>    1. Re: My plans for 2016.10 release (Martine Lenders)
>    2. I2C - Arduino <-> SAMR21-xpro (ALESSANDRO NICOLI)
>    3. Re: I2C - Arduino <-> SAMR21-xpro (Alexandre Abadie)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 5 Aug 2016 13:51:46 +0200
> From: Martine Lenders <mlenders at riot-os.org>
> To: RIOT OS kernel developers <devel at riot-os.org>
> Subject: Re: [riot-devel] My plans for 2016.10 release
> Message-ID:
>         <CALHmdRxkUTa4oT3SfujYmH8WHyDi68FPdHBFq7-aiGC=QCopSQ at mail.
> gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
>
> 2016-07-16 17:11 GMT+02:00 Martine Lenders <mlenders at riot-os.org>:
> > * Network layer/NDP overhaul: expect a model proposal and [sic] of July.
>
> I did this as promised about a week ago btw [1]. Might have been got
> lost in the mail storm during the release ;-).
>
> > Let's discuss this then and I'll provide an actual implementation
> > after some(TM) time (To re-iterate an old Meme: "The border router
> > will be ready soon!")
> > [snip]
>
> Cheers,
> Martine
>
> [1] https://github.com/RIOT-OS/RIOT/issues/5704
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 5 Aug 2016 16:23:18 +0200
> From: ALESSANDRO NICOLI <alessandro.nicoli at studenti.unipr.it>
> To: RIoT Dev List <devel at riot-os.org>
> Subject: [riot-devel] I2C - Arduino <-> SAMR21-xpro
> Message-ID:
>         <CAFsA-_1_=8tkxsJPiYeRWD0VxqT1_Zr6cfOQWW48WdhCtOTkdA at mail.
> gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi all,
> There is someone who tried to interface arduino to RIOT (the board in my
> case is SAMR21-xpro) through the I2C ?
>
> I would config the Arduino as MASTER (i've already did it with wire.h) and
> samr21 as SLAVE.
>
> I did a code like this :
> <code>
> int main(void)
> {
>     puts("I2C Reader");
>
>     /* define own shell commands */
>     //char line_buf[SHELL_DEFAULT_BUFSIZE];
>     //shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE);
>
>     char data;
>     int read=0;
>
>     while(1){
>       puts("waiting for data...");
>
>       i2c_poweron(0);
>       do{
> read = i2c_read_byte(0, 8, data);
> if(read==-1)
> {
>  puts("ERROR : UNDEFINED DEVICE");
>  break;
> }else if(read>0)
>  printf("data arrived : %c",data);
>       }while(read<1);
>     }
>
>     return 0;
> }
> </code>
>
>
> Arduino will send 5 byte at time, but the samr21 doesn't receive
> nothing....any ideas?
>
>
> Thanks all !
>
> *best regards, *
> *Alessandro*
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.riot-os.org/pipermail/devel/attachments/
> 20160805/5643391b/attachment-0001.html>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 5 Aug 2016 16:52:02 +0200 (CEST)
> From: Alexandre Abadie <alexandre.abadie at inria.fr>
> To: RIOT OS kernel developers <devel at riot-os.org>
> Subject: Re: [riot-devel] I2C - Arduino <-> SAMR21-xpro
> Message-ID:
>         <1283937529.12055139.1470408722514.JavaMail.zimbra at inria.fr>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Alessandro,
>
> Unfortunately, the current I2C API in RIOT only supports the master mode
> so you won't be able to use your samr21-xpro as slave on this kind of bus.
> I don't know how complex it is to add support for this feature btw.
>
> Cheers,
>
> Alex
>
> ----- Mail original -----
>
> > Hi all,
> > There is someone who tried to interface arduino to RIOT (the board in my
> case
> > is SAMR21-xpro) through the I2C ?
>
> > I would config the Arduino as MASTER (i've already did it with wire.h)
> and
> > samr21 as SLAVE.
>
> > I did a code like this :
> > <code>
> > int main(void)
> > {
> > puts("I2C Reader");
>
> > /* define own shell commands */
> > //char line_buf[SHELL_DEFAULT_BUFSIZE];
> > //shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE);
>
> > char data;
> > int read=0;
> > while(1){
> > puts("waiting for data...");
> > i2c_poweron(0);
> > do{
> > read = i2c_read_byte(0, 8, data);
> > if(read==-1)
> > {
> > puts("ERROR : UNDEFINED DEVICE");
> > break;
> > }else if(read>0)
> > printf("data arrived : %c",data);
>
> > }while(read<1);
> > }
> > return 0;
> > }
> > </code>
>
> > Arduino will send 5 byte at time, but the samr21 doesn't receive
> > nothing....any ideas?
>
> > Thanks all !
>
> > best regards,
> > Alessandro
>
> > _______________________________________________
> > devel mailing list
> > devel at riot-os.org
> > https://lists.riot-os.org/mailman/listinfo/devel
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.riot-os.org/pipermail/devel/attachments/
> 20160805/296d4ede/attachment-0001.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
>
> ------------------------------
>
> End of devel Digest, Vol 42, Issue 6
> ************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20160806/acfbb9a5/attachment.html>


More information about the devel mailing list