Browse By Tags

  • IOError: [Errno 9] Bad file descriptor (Multi-threaded SPI Issue)

    In my case this error was occurring due to multi-threaded accesses to a MCP23S17 I/O expander and an MCP3008 ADC analog to digital converter. Errors looked like: File "/home/pi/RWPi/PDALib.py", line 324, in writeDio r = spi.xfer([0x40,reg,val&255,val…
  • Transfer Image from Raspberry Pi (Python) to Android app (Java)

    Hi everyone! I need help transferring an image via TCP from a python program on my raspberry pi to an android application. I have set up a client-server architecture such that my raspberry pi 3 records audio, performs some analysis on it, and then sends…
  • My Very First Ever Python Programme and on a Raspberry Pi

    I wished to join the Raspberry Pi day activity so I decided that I would combine this with writing my very first own Python programme as well. I recently did an online Python course which had some directed programmes in but I wanted to make up my own…
  • [Pi IoT] Smart Competition Home #9: Competition system IV - Adding the competiton to the central node

    This post describes the last step to have a functional competition system. It will show how to update the python GUI of the central node with the data stored in the database (coming from each of the roommates phones, as explained in the previous post…
  • Multi PiFace Card... Help!

    Hello, and Help! I bought one RaspRack and 4 Piface cards. The PiRack is made to add 4 Piface cards (they are addressable hardware 0-3 by jumpers). No guidbook or example in C or Python to comment on the software part! So, I installed both cards, the…
  • Python socket server lost connection - restart:

    I am using python socket module for a TCP client/server set-up. I have a question: How can I send some sort of message to the client or server that the connection has been lost? and then: how can I get the connection back up again, knowing that the connection…
  • Spidev problems in xfer2()

    Hi, I am trying to use the spi bus from Python on my Raspberry pi 2 model B and my python script just stops when I try to do an xfer2. Background: I have an MCP3008 hooked up to the spi bus When I do an ls /dev I see both spidev0.0 and spidev 0.1 so I…