Community
cancel
Showing results for 
Search instead for 
Did you mean: 
JArne
Beginner
1,403 Views

Wiringx86 - /sys/class/gpio/gpio248/value: No such file or directory

Jump to solution

Hi,

I try to understand the Edison Brackout Borad.

I am a beginner und go step by step with the book "Getting started with the Intel Eddison an the ...".

And I think I done the follwoing steps succesfully

- update yocto with "iot-devkit-prof-dev-image-edison-20160315"

- initilising python moduls: "wiring-x86" und "pyserial"

But when I start the "Blink Example"

import time

 

from wiringx86 import GPIOEdison as GPIO

gpio = GPIO(debug=False)

 

pin = 13

 

state = gpio.HIGH

print 'Setting up pin %d' % pin

 

gpio.pinMode(pin, gpio.OUTPUT)

print 'Blinking pin %d now...' % pin

 

try:

 

while(True):

 

gpio.digitalWrite(pin, state)

 

state = gpio.LOW if state == gpio.HIGH else gpio.HIGH

 

time.sleep(0.25)

 

except KeyboardInterrupt:

 

print '\nCleaning up ...'

 

gpio.digitalWrite(pin, gpio.LOW)

 

gpio.cleanup()

Python answers me

sh: /sys/class/gpio/gpio248/value: No such file or directory

sh: /sys/class/gpio/gpio249/value: No such file or directory

sh: /sys/class/gpio/gpio250/value: No such file or directory

sh: /sys/class/gpio/gpio251/value: No such file or directory

sh: /sys/class/gpio/gpio252/value: No such file or directory

sh: /sys/class/gpio/gpio253/value: No such file or directory

sh: /sys/class/gpio/gpio254/value: No such file or directory

sh: /sys/class/gpio/gpio255/value: No such file or directory

sh: /sys/class/gpio/gpio256/value: No such file or directory

sh: /sys/class/gpio/gpio257/value: No such file or directory

sh: /sys/class/gpio/gpio258/value: No such file or directory

sh: /sys/class/gpio/gpio240/value: No such file or directory

sh: /sys/class/gpio/gpio263/value: No such file or directory

sh: /sys/class/gpio/gpio259/value: No such file or directory

sh: /sys/class/gpio/gpio241/value: No such file or directory

sh: /sys/class/gpio/gpio262/value: No such file or directory

sh: /sys/class/gpio/gpio260/value: No such file or directory

sh: /sys/class/gpio/gpio242/value: No such file or directory

sh: /sys/class/gpio/gpio261/value: No such file or directory

sh: /sys/class/gpio/gpio243/value: No such file or directory

sh: /sys/class/gpio/gpio232/value: No such file or directory

sh: /sys/class/gpio/gpio200/value: No such file or directory

sh: /sys/class/gpio/gpio233/value: No such file or directory

sh: /sys/class/gpio/gpio201/value: No such file or directory

sh: /sys/class/gpio/gpio234/value: No such file or directory

sh: /sys/class/gpio/gpio202/value: No such file or directory

sh: /sys/class/gpio/gpio235/value: No such file or directory

sh: /sys/class/gpio/gpio203/value: No such file or directory

sh: /sys/class/gpio/gpio236/value: No such file or directory

sh: /sys/class/gpio/gpio204/value: No such file or directory

sh: /sys/class/gpio/gpio237/value: No such file or directory

sh: /sys/class/gpio/gpio205/value: No such file or directory

Setting up pin 13

sh: /sys/class/gpio/gpio261/value: No such file or directory

sh: /sys/class/gpio/gpio229/value: No such file or directory

sh: /sys/class/gpio/gpio243/value: No such file or directory

Blinking pin 13 now...

Can anyone tell me my mistake?

Thanks

Jens

0 Kudos
1 Solution
idata
Community Manager
121 Views

Hi Arnert,

 

 

If you are new with the Intel Edison board, I suggest you to follow this guide: https://software.intel.com/en-us/get-started-edison-windows, it has a lot of information that can be helpful.

 

 

About your issue it looks like a problem with Wiring-x86, I personally recommend you to use the MRAA library that is normally use for the GPIOs of the Intel Edison and Galileo boards. Take a look at this thread: https://communities.intel.com/thread/92493 https://communities.intel.com/thread/92493 (Just ignore that it is about Galileo, just read the information about MRAA), I think that the MRAA library is better because it has support for a lot more interfaces than Wiring-x86.

 

 

To use the latest version of MRAA use this repository: http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/, use it instead of http://iotdk.intel.com/repos/2.0/intelgalactic if you follow the steps of the thread.

 

 

I hope you find this information useful,

 

 

Regards,

 

-Leonardo

View solution in original post

2 Replies
idata
Community Manager
122 Views

Hi Arnert,

 

 

If you are new with the Intel Edison board, I suggest you to follow this guide: https://software.intel.com/en-us/get-started-edison-windows, it has a lot of information that can be helpful.

 

 

About your issue it looks like a problem with Wiring-x86, I personally recommend you to use the MRAA library that is normally use for the GPIOs of the Intel Edison and Galileo boards. Take a look at this thread: https://communities.intel.com/thread/92493 https://communities.intel.com/thread/92493 (Just ignore that it is about Galileo, just read the information about MRAA), I think that the MRAA library is better because it has support for a lot more interfaces than Wiring-x86.

 

 

To use the latest version of MRAA use this repository: http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/, use it instead of http://iotdk.intel.com/repos/2.0/intelgalactic if you follow the steps of the thread.

 

 

I hope you find this information useful,

 

 

Regards,

 

-Leonardo

View solution in original post

idata
Community Manager
121 Views

Hi Arnert,

 

 

Was the information helpful? Did you successfully use the GPIOs with MRAA library?

 

 

Regards,

 

-Leonardo
Reply