Tag Archive: Serial


Many corporate laptops come with a Microsoft Windows license. Often the serial / key is embedded in the BIOS so if/when you format/re-install it will be automatically licensed/activated.

I had a few dead HP Probooks I needed to retrieve the license key from; I was able to dump the BIOS (see notes on an earlier blog entry https://tickett.wordpress.com/2018/08/26/unlock-remove-hp-probook-430-g3-bios-password-part-2/) then it was a case of scanning through lots and lots of garbage to find what looked like a valid serial. I eventually found it around address 00B14AE0;

bios

Thanks to ADH Heating Services I now have jeenodes counting pulses from my mains cold water supply:


Boiler hot water outlet:


And gas meter:


The pulses are being pulled into DomotiGa:

Which allows me to graph with RRDTool:

I also created my own module for DomotiGa to hook up to my custom 433Mhz RF receiving jeenode- I now have my window/door sensors (along with a bunch of rogue devices?) appearing:


I’m not best sure how to tackle the fact that the devices don’t issue an idle command when the alert has finished (i.e. when the door is closed or the fire is put out?). I’m considering trying out the built in DomotiGa feature to revert the values after 1minute or so (the smoke alarm should continue to send data whilst the alarm is being sounded so this shouldn’t be a problem).

I’m still troubleshooting a few problems- for example USB serial ports failing to open with error: "Cannot open serial port (#5)":

And some jeenodes going offline. Hopefully I will have more time to look into this later in the week.

L

Now my 2nd Raspberry Pi has turned up I can (re)start work on my home automation project.

Previously I’ve setup a wireless sensor network (WSN) comprised of a number of jeenodes (http://www.jeelabs.org) using the RFM12B to connect back to central jeelink usb plugged into a repurposed orange livebox router (running http://www.homeautomationhub.com). Additionally I installed a number of CurrentCost individual appliance monitors (iams) and a EnviR energy monitor plugged into the home automation hub (hah) to monitor and log household and appliance level energy consumption. Refer to some old blog entries: https://tickett.wordpress.com/category/home-automation/. All of the data was being sent to pachube for logging.

I wasn’t too keen on the home automation hub as I didn’t really fully understand it and couldn’t push it where I wanted to go (although the community was really good and I imagine I will be seeking assistance from them in connection with the new project :)

In my new setup I intend to use a Raspberry Pi the "hub"- with a "full blown" linux distribution (debian?) I should hopefully be able to accomplish everything I am looking for. As python is the first language discussed in conjunction with the raspi I’ve started playing with that, but eventually may move to a LAMP solution (php with mysql backend for logging and apache web front end).

Here’s a high level summary of the steps I’ve covered:

The python example from the link above didn’t produce any output for me so I modified it slightly:

import serial, sys
ser = serial.Serial('/dev/ttyUSB0', 57600)
while 1 :
sys.stdout.write(ser.readline())

That’s all I have time for now- watch this space.

L

Home Automation Progress

An update since last week.

I decided I’d like to keep my CurrentCost netsmart pro posting electricity consumption data to pachube so spliced into the cable to see if I could pickup on the serial data using my home automation hub without disrupting communication between the enviR (CC128) and the bridge.

Taking the leftmost pin of the two connectors with the notch/clip facing downwards the pins are joined as so:

RJ45 -> RJ11
1 -> 1 (Yellow)
4 -> 2 (White)
7 -> 3 (Blue)
8 -> (White)

Rather annoying that they used white for 2 of the cores! On my USB serial cable for the enviR the pinout was as so:

RJ45
4 (Red) -> Spliced into White (pin2)
7 (Green) -> Spliced into Blue
8 (Yellow) -> Spliced into White (pin8)

After hooking the bridge, enviR and usb up to the laptop I could see data coming in over through the serial port- voila!

I punched the CurrentCost details into the hah web interface:

Then configured the extra data streams to pachube:

Just waiting for a few hours for some data but it appears to be flowing in nicely:

<eeml xmlns="http://www.eeml.org/xsd/005"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.eeml.org/xsd/005 http://www.eeml.org/xsd/005/005.xsd" version="5"><environment><data id="2"><tag>Light</tag><value>0.00</value></data><data id="3"><tag>Humidity</tag><value>0.00</value></data><data id="1"><tag>Temperature</tag><value>0.00</value></data><data id="13"><tag>CCIAM3</tag><value>44.00</value></data><data id="12"><tag>CCIAM2</tag><value>157.00</value></data><data id="11"><tag>CCIAM1</tag><value>5.00</value></data><data id="15"><tag>CCIAM5</tag><value>0.00</value></data><data id="14"><tag>CCIAM4</tag><value>82.00</value></data><data id="10"><tag>CCTotal</tag><value>415.00</value></data><data id="16"><tag>CCIAM6</tag><value>0.00</value></data></environment></eeml>

I took delivery of the two water meters today- just waiting for a friend to help me fit them and my additional jeenodes to arrives so I can get the data into the hah!

The crazy looking squid thing is the cheapest usb hub I could find to allow me to plug both the jeelink and currentcost enviR into the hah at the same time- hideous but does the job :)

L

It was delivered a few days back but i had no idea what the management interface IP address was to get going!

I found my USB-to-Serial cable and serial console cable and tried to connect- the best i got was some corrupt looking characters scrolling across hyperterminal. After a bit of a googling i found http://www.experts-exchange.com/Storage/Storage_Technology/Q_26123627.html which helped me to start getting readable output with settings:

9600 baud
8 bits
no parity
one stop bit

But i couldn’t enter commands (like a read only connection). At first i thought it could’ve been my cable but eventually sussed it. There was one setting which wasn’t mentioned on experts-exchange: the “flow control” setting. Changing this to Xon\Xoff fixed everything!

I logged in with default username admin/password and issued the commands to determine the current management interface IP and change it:

ipaddrshow
ipaddrset

I’ve not really had time to get it all up and running with the servers etc, but wanted to post before i forgot how i got it working!

L

%d bloggers like this: