Could I please get a link to the latest release of Armadillian based on Wheezy?
Announcement
Collapse
No announcement yet.
Wheezy Image
Collapse
X
-
Hello,
I believe its this one, June 2015.
Assuming you are using the 4.3" Armadillo?
http://www.4dsystems.com.au/productp...lian_R_1_1.zip
Is there a problem with the Jessie version?
RegardsJames
-
Thanks James.
We have a working prototype on Wheezy and want to use Jessie for the command line networking, but have two major issues.
1. Our python scripts to talk to the GPIO pins don't work
2. We boot into a windowless xsession running a midori web interface. About half the time the screen is blank on boot after a successful post. Happens on multiple Armadillos and SD cards.
Both of the above could probably be solved with some debugging, but they both just work under Wheezy, so for now we'll stick with that.
Comment
-
Hi lsparke,
Good Day.
For item 1. After you install a fresh image of Armadillian Jessie,
Update the armadillo
Install wiringARM which you can download from the attachment
Unzip the file and go to the folder wiringARM-Rev_1_0
Follow the instruction in the file INSTALL.
Reboot the Armadillo
Than try your code.
For item 2. Does the midori web interface boot up before the screen goes to blank?Did you disable the blanking or disable the screensaver?
Regards,
Ferdinand
Attached Files
Comment
-
Hi lsparke,
Link works fine for me. Make sure you are signed into the forum, and refresh the page, and then try downloading it again. If that gives you a white screen, press refresh again and it should download. Its your browser caching the page when you are not signed in which normally causes this, as downloads are only possible when you sign in.
RegardsJames
Comment
-
I'm still having issues with python connecting to the serial port. Here's a very simple script that runs no problem on Wheezy:
Code:[B]import[/B] serial [B]import[/B] sys port = serial.Serial([B]"/dev/ttyAMA0"[/B], baudrate=115200, timeout=0.1) write = sys.argv[1] port.write([B]"\x02"[/B] + write + [B]"\x03"[/B]) rcv = port.read(100) [B]print[/B](rcv)
Code:File "Run.py", line 8, in <module> rcv = port.read(100) File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 453, in read buf = os.read(self.fd, size-len(read))
Comment
-
Hi Isparke,
Good Day.
I tried your code and its work fine for me. Please try to re-install pyserial module.
Code:pip install pyserial
Code:gpioArm readall
Code:import serial import time port = serial.Serial("/dev/ttyAMA0", 115200, timeout=2) if (port.isOpen() == False): port.open(); outStr = '' inStr = '' port.flushInput() port.flushOutput(); for i, a in enumerate(range(33, 126)): outStr = chr(a) port.write(outStr) time.sleep(0.05) inStr = port.read(port.inWaiting()) print "inStr = " + inStr print "outStr = " + outStr if(inStr == outStr): print "WORKED!” else: print "failed" port.close()
Comment
-
Hi Ferdinand,
Running pip install pyserial or pip install --upgrade pyserial says it's already the latest.
gpioArm readall looks ok:
Code:+----------+------+--------+------+-------+ | wiringArm | GPIO | Name | Mode | Value | +----------+------+--------+------+-------+ | 0 | 41 | H2-3 | ALT0 | Low | | 1 | 40 | H2-4 | IN | High | | 2 | 34 | H2-5 | IN | Low | | 3 | 46 | H2-6 | IN | High | | 4 | 33 | H2-7 | ALT3 | High | | 5 | 32 | H2-8 | ALT3 | High | | 6 | 37 | H1-1 | ALT0 | Low | | 7 | 38 | H1-1 | ALT0 | Low | | 8 | 39 | H1-2 | ALT0 | Low | | 9 | 35 | H1-3 | ALT0 | High | | 10 | 36 | H1-4 | IN | Low | | 11 | 45 | H1-5 | ALT2 | High | | 12 | 31 | H1-6 | IN | Low | | 13 | 44 | H1-7 | ALT2 | High | +----------+------+--------+------+-------+
Code:inStr = outStr = t failed inStr = outStr = u failed inStr = outStr = v failed inStr = outStr = w failed inStr = outStr = x failed inStr = outStr = y failed inStr = outStr = z failed inStr = outStr = { failed inStr = outStr = | failed inStr = outStr = } failed
Comment
-
Thanks. The test script does work if you short the pins, however the serial connection to my device is still not working.
I've been able to identify the problem, the buffer isn't getting flushed.
Code:[B]import[/B] serial [B]import[/B] sys port = serial.Serial([B]"/dev/ttyAMA0"[/B], baudrate=115200, timeout=0.1) port.flushInput() port.flushOutput() write = sys.argv[1] port.write([B]"\x02"[/B] + write + [B]"\x03"[/B]) rcv = port.read(100) [B]print[/B](rcv)
Comment
Comment