<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic so i do &amp;quot;iwconfig wlan0 power in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Edison-Arduino-MRAA-Python-works-only-first-time/m-p/1017105#M36613</link>
    <description>&lt;P&gt;so i do "iwconfig wlan0 power off" to turn off the wifi power saving, and that gives me an initial ~20ms delay on ping&lt;/P&gt;

&lt;P&gt;and after ctr+z i do ps -u root| grep python and kill the python process, and than i do fg &amp;lt;bg task id&amp;gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Feb 2015 06:16:00 GMT</pubDate>
    <dc:creator>Mircea_D_</dc:creator>
    <dc:date>2015-02-23T06:16:00Z</dc:date>
    <item>
      <title>Edison+Arduino+MRAA+Python works only first time</title>
      <link>https://community.intel.com/t5/Software-Archive/Edison-Arduino-MRAA-Python-works-only-first-time/m-p/1017102#M36610</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;very strange problem&lt;/P&gt;&lt;P&gt;i have an Edison Arduino board,&lt;/P&gt;&lt;P&gt;i installed ubilinbux on it&lt;/P&gt;&lt;P&gt;also installed lib mraa (python)&lt;/P&gt;&lt;P&gt;i tried both samples GPIO in and out&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/intel-iot-devkit/mraa/tree/master/examples/python" target="_blank"&gt;https://github.com/intel-iot-devkit/mraa/tree/master/examples/python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="js-directory-link" href="https://github.com/intel-iot-devkit/mraa/blob/master/examples/python/blink-io8.py" id="e4d310cb77404049e5baf13b410bd616-0e56ae95c95718ace37b98ebee393289ee504bca" style="box-sizing: border-box; color: rgb(65, 131, 196); font-family: Helvetica, arial, freesans, clean, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 13px; line-height: 20px; white-space: nowrap; background: rgb(248, 248, 248);" title="blink-io8.py"&gt;blink-io8.py&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A class="js-directory-link" href="https://github.com/intel-iot-devkit/mraa/blob/master/examples/python/hello_isr.py" id="619df900ea35d5924f181eac3b5d8c32-cb02488d515ea28a1a29067b338e31c2d86f8168" style="box-sizing: border-box; color: rgb(65, 131, 196); font-family: Helvetica, arial, freesans, clean, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 13px; line-height: 20px; white-space: nowrap; background: rgb(248, 248, 248);" title="hello_isr.py"&gt;hello_isr.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if in unplub both usb cables from the arduino, reconect back login and run the sample everything works perfect&lt;/P&gt;&lt;P&gt;if i start&amp;nbsp;killing&amp;nbsp;the sample (ctrl+Z) or kill python process or close python interpreter, and try again to run the sample, nothing works&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me explain nothing works:&lt;/P&gt;&lt;P&gt;the isr sampel si not working at all&lt;/P&gt;&lt;P&gt;but the gpio out sample, if i use pin 10 instead of turning on the led i added on pin ten (like it was doing&amp;nbsp;immediately&amp;nbsp;after power on) now some green led closer to&amp;nbsp;the&amp;nbsp;6 pin header (3x2) is turning on and off, and if i mess with this led, i lose the wifi/network&amp;nbsp;connectivity (cannot ping in or out to the edison linux) but the putty over the com port works fine&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone&amp;nbsp;any ideas or explanation into how this edison works and what gets messed up and&amp;nbsp;eventually&amp;nbsp;how it can be made again to work. (i tried to press all the 5&amp;nbsp;buttons&amp;nbsp;present on the board and 1 to 4 they&amp;nbsp;are&amp;nbsp;not&amp;nbsp;making&amp;nbsp;the&amp;nbsp;problem go away, anyway read teh docs about them and&amp;nbsp;those&amp;nbsp;buttons&amp;nbsp;have&amp;nbsp;all kind of functionality, and 5 resets&amp;nbsp;the&amp;nbsp;linux but still does not make io work, i need to&amp;nbsp;power down&amp;nbsp;completely&amp;nbsp;the board and power it back on to get io back working)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​hope this problem with the IO&amp;nbsp;getting&amp;nbsp;all&amp;nbsp;messed&amp;nbsp;up after first sample run makes sense to&amp;nbsp;anyone.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2015 09:26:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Edison-Arduino-MRAA-Python-works-only-first-time/m-p/1017102#M36610</guid>
      <dc:creator>Mircea_D_</dc:creator>
      <dc:date>2015-02-21T09:26:38Z</dc:date>
    </item>
    <item>
      <title>wifi issue after first mraa</title>
      <link>https://community.intel.com/t5/Software-Archive/Edison-Arduino-MRAA-Python-works-only-first-time/m-p/1017103#M36611</link>
      <description>&lt;P&gt;wifi issue after first mraa python script gets run (till that moment all works perfect)&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="wifi-after libmraa.jpg"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/7312i2F12DEB50BD7A6FC/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="wifi-after libmraa.jpg" alt="wifi-after libmraa.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2015 22:10:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Edison-Arduino-MRAA-Python-works-only-first-time/m-p/1017103#M36611</guid>
      <dc:creator>Mircea_D_</dc:creator>
      <dc:date>2015-02-22T22:10:20Z</dc:date>
    </item>
    <item>
      <title>Hi Mircea,</title>
      <link>https://community.intel.com/t5/Software-Archive/Edison-Arduino-MRAA-Python-works-only-first-time/m-p/1017104#M36612</link>
      <description>&lt;P&gt;Hi Mircea,&lt;/P&gt;

&lt;P&gt;If you do CTRL+Z, you are not killing the process. You are suspending it and sending it to the background. This probably explains why it does not work the second time you try to run it.&lt;/P&gt;

&lt;P&gt;Try stopping the application with CTRL+C.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 03:29:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Edison-Arduino-MRAA-Python-works-only-first-time/m-p/1017104#M36612</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2015-02-23T03:29:52Z</dc:date>
    </item>
    <item>
      <title>so i do "iwconfig wlan0 power</title>
      <link>https://community.intel.com/t5/Software-Archive/Edison-Arduino-MRAA-Python-works-only-first-time/m-p/1017105#M36613</link>
      <description>&lt;P&gt;so i do "iwconfig wlan0 power off" to turn off the wifi power saving, and that gives me an initial ~20ms delay on ping&lt;/P&gt;

&lt;P&gt;and after ctr+z i do ps -u root| grep python and kill the python process, and than i do fg &amp;lt;bg task id&amp;gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 06:16:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Edison-Arduino-MRAA-Python-works-only-first-time/m-p/1017105#M36613</guid>
      <dc:creator>Mircea_D_</dc:creator>
      <dc:date>2015-02-23T06:16:00Z</dc:date>
    </item>
    <item>
      <title>and python code</title>
      <link>https://community.intel.com/t5/Software-Archive/Edison-Arduino-MRAA-Python-works-only-first-time/m-p/1017106#M36614</link>
      <description>&lt;P&gt;and python code&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;import mraa&lt;BR /&gt;
	import time&lt;BR /&gt;
	import sys&lt;/P&gt;

&lt;P&gt;print(mraa.getPlatformType())&lt;BR /&gt;
	print(mraa.getPlatformName())&lt;BR /&gt;
	#mraa.setLogLevel(7)&lt;/P&gt;

&lt;P&gt;class Counter:&lt;BR /&gt;
	&amp;nbsp; count = 0&lt;/P&gt;

&lt;P&gt;c = Counter()&lt;/P&gt;

&lt;P&gt;# inside a python interupt you cannot use 'basic' types so you'll need to use&lt;BR /&gt;
	# objects&lt;BR /&gt;
	def test(args):&lt;BR /&gt;
	&amp;nbsp; print("wooo")&lt;BR /&gt;
	&amp;nbsp; c.count+=1&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	for j in range(1,100):&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; for pin in range(7,11):&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x = mraa.Gpio(pin)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print('working on pin %d' % (pin, ))&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x.dir(mraa.DIR_OUT)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for i in range(1,2):&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x.write(1)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;time.sleep(0.05)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x.write(0)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;time.sleep(0.05)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; except:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print('BAD pin %d' % (pin, ))&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	sys.exit() &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	#x.isr(mraa.EDGE_BOTH, test, test)&lt;/P&gt;

&lt;P&gt;#time.sleep(5&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 06:18:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Edison-Arduino-MRAA-Python-works-only-first-time/m-p/1017106#M36614</guid>
      <dc:creator>Mircea_D_</dc:creator>
      <dc:date>2015-02-23T06:18:11Z</dc:date>
    </item>
  </channel>
</rss>

