Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
[ANN] wpi - Controlling the Raspberry Pi using Erlang
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Klas Johansson  
View profile  
 More options Oct 8 2012, 4:28 pm
From: Klas Johansson <klas.johans...@gmail.com>
Date: Mon, 8 Oct 2012 22:27:30 +0200
Local: Mon, Oct 8 2012 4:27 pm
Subject: [erlang-questions] [ANN] wpi - Controlling the Raspberry Pi using Erlang
Hi,

Are you interested in letting Erlang control a Raspberry Pi [1]? If so
you might be interested in `wpi' which is an Erlang wrapper around the
WiringPi library (by Gordon Henderson) which is a Raspberry Pi dialect
of the Wiring library which you may have experienced for Arduino. wpi
makes it possible to read from and write to GPIO pins, write to LCDs,
shift bits in and out and control other devices over serial interfaces
or SPI and all this from a Raspberry Pi running Erlang.

    https://github.com/klajo/wpi

Contributions are more than welcome. Thanks to David Haglund who
contributed the SPI bus and serial interface parts.

Best Regards,
Klas

[1] http://www.raspberrypi.org/faqs
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Rogvall  
View profile  
 More options Oct 9 2012, 3:28 am
From: Tony Rogvall <t...@rogvall.se>
Date: Tue, 9 Oct 2012 09:28:24 +0200
Local: Tues, Oct 9 2012 3:28 am
Subject: Re: [erlang-questions] [ANN] wpi - Controlling the Raspberry Pi using Erlang

Thanks!

Note that serialGetchar (wiringSerial) will block for (up to) 10s if no character is available.
(From function header documentation)

And this fact (wiringSerial.c:95)

    options.c_cc [VMIN]  =   0 ;
    options.c_cc [VTIME] = 100 ;        // Ten seconds (100 deciseconds)

The effect is that the emulator will be blocked and no other processes may run (for up to 10 s)!  
(unless there are more cores than one (online))
You may want to use driver_select. Should probably set the VTIME=0 to be sure.

A little plug:
There is a project using threads to get some exotic uart features, a bit heavy, but is working (even on windows!)
(Still lack documentation but has a simple api and is simple to use, nice packeting options for example)
https://github.com/tonyrog/uart

/Tony

On 8 okt 2012, at 22:27, Klas Johansson <klas.johans...@gmail.com> wrote:

"Installing applications can lead to corruption over time. Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Klas Johansson  
View profile  
 More options Oct 9 2012, 4:40 pm
From: Klas Johansson <klas.johans...@gmail.com>
Date: Tue, 9 Oct 2012 22:40:19 +0200
Local: Tues, Oct 9 2012 4:40 pm
Subject: Re: [erlang-questions] [ANN] wpi - Controlling the Raspberry Pi using Erlang
Hi Tony,

On Tue, Oct 9, 2012 at 9:28 AM, Tony Rogvall <t...@rogvall.se> wrote:
> Thanks!

:-)

> Note that serialGetchar (wiringSerial) will block for (up to) 10s if no
> character is available.
> (From function header documentation)

> And this fact (wiringSerial.c:95)

>     options.c_cc [VMIN]  =   0 ;
>     options.c_cc [VTIME] = 100 ; // Ten seconds (100 deciseconds)

> The effect is that the emulator will be blocked and no other processes may
> run (for up to 10 s)!
> (unless there are more cores than one (online))
> You may want to use driver_select. Should probably set the VTIME=0 to be
> sure.

Yes that's a very valid point, I noticed that while going through the
documentation yesterday. I've updated the documentation to state this
and also created an "issue" on github. Thanks for the reminder!

> A little plug:
> There is a project using threads to get some exotic uart features, a bit
> heavy, but is working (even on windows!)
> (Still lack documentation but has a simple api and is simple to use, nice
> packeting options for example)
> https://github.com/tonyrog/uart

Looks nice.

Thanks,
Klas

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »