Thursday, April 21, 2016

HiPi Modules 0.50 Released

This release adds basic support for the Energenie ENER314-RT RF controller board and an interface module for controlling ENER002 radio controlled sockets.

The ENER314-RT board is the 2 way transceiver version that appears to allow full control over the RFM69 controller using the Raspberry Pi  SPI device driver.  Access to additional functionality on this board will be added in the future.




Wednesday, April 6, 2016

HiPi Modules 0.49 Released

Change log

 - Re-factored Build.PL so there are no sudo calls or package installations in there. Moved all that to hipi-install script which now prompts for confirmation before installing any packages.

- Removed suid scripts hipi-i2c and hipi-pud as they  are obsolete since introduction of raspi-gpio and update of i2c device driver in Rasbian distribution.

The installation of packages in the Build.PL script of the distribution was vexing some folks severely. I've removed it so hopefully all can sleep well. They did after all have a point.

All necessary dependency checking is now done in the separate auto installation script - hipi-install - which also now prompts the user for confirmation before installing any package dependencies or pre-built binaries (Wx distribution ).

Monday, April 4, 2016

Raspberry Pi Gadget

The latest issue of MagPi magazine contains instructions on how to create a Raspberry Pi Gadget. That's a Pi Zero that you plug into a host machine's USB port. The host machine sees the USB gadget as a network interface and can therefore communicate with the Pi. The Pi Zero draws its power from the host machine across the USB connection and can use any connected networks on the host machine.

To much fun to pass up really. As the MagPi article refers to, there are also instruction on the adafruit site. Both sources state the need for a USB to serial TTL console cable that allows you to communicate with the Pi Zero over the serial port. I found that because I already had my Pi Zero set up and available on my network through an ethernet connection, I could perform all the setup on the Pi Zero just by ssh-ing to it before shutting down and using it as a gadget with my laptop.

Other than that, everything worked as described in the articles apart from DNS settings.

I couldn't get the Windows Internet Connection to share DNS service with the Pi. It allocated an IP fine and delivered itself as the DNS server (it got written to /etc/resolv.conf on the Pi) but the laptop didn't respond to any requests. Probably a problem with my laptop settings, but my quick fix was to add a couple of lines to /etc/resolv.conf.head that pointed at my home network and nameserver.

domain myhome.net
nameserver 192.168.19.62

and all works fine.

I have to figure out a proper solution for when I'm out and about and want to share a wireless connection - but I can always fall back on editing /etc/resolv.conf.head and reloading everything with

sudo ifdown usb0
sudo ifup usb0

I needed a case for the gadget. The MagPi article shows a naked Pi Zero attached to a laptop with a simple cableless USB Micro B to A converter. It does look cool - but years of experience of destroying USB things and connectors with dongles that stick out of the side of laptops made me think "case and cable needed".

I've recently discovered the wonders of hot glue guns and have a case bought with my first Raspberry Pi Model B. The case has always been fairly pointless as you can't get at the GPIO pins with it closed. It isn't pointless anymore.







Still necessary to open the case to get at GPIO pins but at least now they won't be encrusted with discarded food chunks from my laptop bag.

HiPi::Perl Modules 0.46 released

This release adds methods that help the use of the I2C kernel device drivers with external devices that require repeated start transfers to work. This has been available in the kernel drivers for some time.

Tuesday, March 29, 2016

HiPi Modules 0.45 Released

- Added interface for SPI MCP23S17 GPIO extender
- added convenience methods for MCP23017/MCP23S17
- Fixed bug in MCP23017 write_register_bits
- Build HiPI::Wiring against standard Rasbpian package
- Updated docs for device tree usage

To upgrade an existing installation

hipi-upgrade

For a first time install installation instructions are here.

Tuesday, March 15, 2016

HiPi Perl Modues 0.44 Released

This release of the HiPi Perl modules provides essential fixes for the SPI interface and the build system.

The installer and modules  have been tested on an RPi 3, RPi 2 and RPi Zero running the latest Raspbian Jessie release. They have also been tested on a Model B+, Model B and Model A running the Rasbian Wheezy releases.

Monday, March 7, 2016

HiPi Perl Modules 0.35 Released


              - bcm2835 library updated to version 1.50
              - Support for 40 pin GPO Pis
              - Support for RPI 2, RPI 3 and RPI Zero
              - Support Raspbian - Jessie
              - Fixes for Perl > 5.14
              - changed location of downloads to raspberrypi.znix.com
              - Wx version updated to 0.9928
              - Wx::Demo version updated to 0.22
              - Wx::PdfDocument version updated to 0.20
              - Alien::wxWidgets version updated to 0.67

To upgrade an existing installation

hipi-upgrade

For a first time install installation instructions are here.