Hardware

Description

Building / testing and troubleshooting the HAH hardware.

Forums

Hi All,

I've not been on for quite a while now, not had the time nor inclination to mess with my set-up. My HAH has been running fine for several years I primarily use it to monitor my solar and also immersion hot water temperature so I have a Current Cost EnviR and a wireless jeenode connected via USB to my HAH. Recently my powered USB hub failed so I've purchased a new one however I’m not getting any data from my CC or my wireless jeenode when connected.

Looking at /var/log/messages

I’m seeing…

hub.c: USB new device connect on bus1/1, assigned device number 2

usb.c: USB device not accepting new address=2 (error=-145)

Algorithmics/MIPS FPU Emulator v1.5

hub.c: USB new device connect on bus1/1, assigned device number 3

usb.c: USB device not accepting new address=3 (error=-145)

 

and /var/log/xap-currentcost.log says:

 

[crt][currentcost.c:580:setupSerialPort] errno 19 (No such device)

[crt][currentcost.c:580:setupSerialPort] Failed to open serial port /dev/ttyUSB1

 

 

Anyone know what is wrong?

Forums

I'm not sure if anyone still visits here. I know I don't visit enough but my system has been so stable for so long that I have had no need. Sorry.

I'm currently having various issues with my HAH. A pity really as it's been running well for so long. So long that some things about it are a dim and distant memory. 

My main issue at the moment is no RF from the HAH relay board as well as no data from the 1wire sensor. I have replaced the RF module and 1 wire sensor. I have also copied the contents of the LiveboxHAH AVR onto a new AVR as I can't see anything coming from the RF pin on the existing AVR. Is it possible that the code has become corrupted?

I could reflash the hex if I wasn't using a BBB. Plus I use a 4x20 LCD and the hex is for a 2x8 LCD. I do have the LiveboxHAH.pde, so I could make the edits I need but then I will have to make edits to the boards.txt file or the frequency will be wrong (Arduino defaults to 16MHz but the board is designed to run at 7.3728MHz)

Any ideas on best course of action or maybe something I have missed?

Mark

Forums

Dear all,

I Hope all is well - my apologies for the long post - i could spend a few more minutes making it shorter but i would rather give as many details as possible

I'm revisiting the HAH again as my Livebox kept failing and was eventually chucked in a box to be fixed on a rainy day

I figured the portable build was the way to go as i have a number of raspberry pi units and a BBB sitting around waiting for a valid project.

Mark Baldwin kindly insisted i should go the BBB route as technically its a more powerful device

Following Bretts and Marks Portable / BBB notes i now have the HAH build Build: 313 (SVN - Revision 650 on Ubuntu 14.04 with a REV C BBB - appreciate others are running 12.04 / 13.10

I have set a static IP using interfaces to 192.168.1.12

The Ubuntu 14.04 install is flashed to the eMMC (no SD card required to boot)

1) How do i upgrade to the advertised current firmware 317 or latest beta
with the livebox build i used either of the below

Stable - /etc/init.d/update

Beta - /etc_ro_fs/update-dev hah-beta.dbzoo.com

2) I appear to have a serial comms issue between the GUI and the HAH PCB - i'll do my best to explain below

By default only the console port ttyO0 is enabled on the BBB, if you want to use UART 1, 2 or 4 you have to manually enable.

Adding a cape to \boot\uboot\uEnv.txt is the recommended solution for REV C boards however this did not work for me.

I have however enabled UART 4 using a cape based on the following commands
cd /sys/devices/platform/bone_capemgr then sudo sh -c 'echo BB-UART4 > slots'

The UART is now listed as \dev\ttyO4 there is also an entry for \dev\ttyS4 which i understand is standard linux tty numbering

Kernal debug - dmesg | grep tty gives me the following

[    0.000000] Kernel command line: console=ttyO0,115200n8 capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN capemgr.enable_partno=BB-UART1,BB-UART2,BB-UART4,BB-UART5 root=UUID=d59b6515-d514-4a8a-95e8-77e8718bc053 ro rootfstype=ext4 rootwait coherent_pool=1M quiet cape_universal=enable
[    0.000427] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    3.553473] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a 8250
[    3.560948] console [ttyS0] enabled
[   27.826909] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 192, base_baud = 3000000) is a 8250
ubuntu@arm:~$
50

A bit confusing - have i enabled ttyS4 or ttyO4 or both prehaps?

I have updated my \etc\xap.d\xap-livebox.ini as follows

[livebox]
enable=1
port=/dev/ttyO4

I have also enabled serial \etc\xap.d\xap-serial.ini

[serial]
enable=1

I have also confirmed ttyO4 works by running two SSH connections and wiring TXD to RXD

Heres the issue - The HAH web GUI will not communicate with the HAH PCB in anyway, i.e no relay toggling, no 1wire data - the LCD remains on Booting V3.4 - no IP is displayed.

With that said it appears somethings are working...

If i cat -v < /dev/ttyO4 - do indeed see my 1Wire devices which means everything should probably work correctly? theres HAH PCB data on ttyO4 as required.

1wire 28726B9C0300009E 19.8^M
1wire 28DB8F5C040000D2 21.0^M

Additionally xFX viewer is showing the device present on the network

xap-hbeat
{
v=12
hop=1
uid=FF00D500
class=xap-hbeat.alive
source=dbzoo.arm.Serial
interval=60
port=3641
pid=192.168.1.12:1051
}

The 1wire packet is however missing the 1wire information

xap-header
{
v=12
hop=1
uid=FF00DB80
class=xAPBSC.info
source=dbzoo.arm.Controller:1wire.1
}
input.state
{
state=?
text=?
displaytext=Sensor 1 ?
}

I suspect the issue is a simple one relating to configuring the HAH to the correct tty04 or S4

Maybe i have missed a file somewhere or i need to setup a Symbolic link between ttyS4 and ttyO4 or vice-versa - i did try this but same issue.

any help or suggestions would be great.

Many Thanks

Andrew

Forums

Another proof of concept.

Here is some firmware for the ESP8266 that will accept the following osd style xap packet to control an OLED display.

xap-header
{
v=12
hop=1
uid=FF111300
Class=xAP-OSD.Display
Target=dbzoo.eap.display
}
Display.Text
{
Line1=Incoming : Mobile Phone call
Line2=Telephone, 07887 123456
Size2=2 }

I have added the optional size function such that size2=2 means line2 will have size 2.

lines can be of size 1 (default) or 2.

My display has 8 lines available. A size 2 takes up two lines such that in the example above line 4 in the next available line.

still rough round the edges but working nicely so far.

Garry.

 

Forums

Hi

I am having issues with my Livebox and am considering the new enhanced Raspberry Pi 2. Has anyone got a fully functional set up hooked up to the HAH pcb with RF etc and jeenode. Any advice appreciated.

thanks

John

Forums

I've been away from the forums for a while with a few home improvments and building jobs taking place and missing my hobby time!!

I hope everyone is well and continuing with their HAHs and surrounding projects, i would hate to see a great project like this fade away with loss of interest

fairly often i search for new Arduino modules focusing around networking as i believe this is the way to go for all things IoT and HA rather than the current 433 / 868mhz RF radios we tend to play with, i know Brett did some work on the standalone Ethernet relay module sometime back http://www.dbzoo.com/livebox/ethrelay

This little beauty came up which appears to be a fairly new entry to the makers market and is exactly what i've been looking for and at such a low cost

I wonder if we could Xap enable it, some bright spark has already coded up a lua interpreter firmware - https://github.com/nodemcu/nodemcu-firmware here so i gather its reasonable possible

Thanks Andrew

Forums

Hi Guys,

Try to fire up my nokia 7310 with HAH.  I have the cable, the usb serial adapter etc...and although I was haveing trouble getting xap-sms to start, I am now up and running.

Problem is I have no idea where to start.  I have sent a couple of msgs to the phone and was expecting xap-sms to spurt out a xap message which I was then going to use to start a lua script but nothing happens.  When I debug and watch when a msg cmes in I get:

[inf][sms.c:67:processSerialMsg] Serial Rx:
[inf][sms.c:67:processSerialMsg] Serial Rx: 30
[inf][tx.c:19:xapSend] send

So somethings working.

Any pointers?

Cheers

Gary

Forums

I was contact by Marcus one of the forum members who sent me this email

 


I have two liveboxes, one flashed with the latest HAH  firmware the other is just standard, and a power supply. I'm sorry to say I've gone to the dark side and am using a raspberry PI, so I'd like to get rid of my liveboxes. I don't want to join the forum just to make one post, so I'm wondering if you 
can post/ask for me?

 

I'm in Coventry UK. They are free if they are picked up, or if someone 
arranges a courier - I'll pack them.

Don't want to see them go to waste if I can find someone that wants them.
Thanks for any help.

Marcus

 


 

If anybody is interested drop me a private message and I'll pass along Marcus's email addr.

Brett

Forums

Brett,

when you built the ether URF device did you just use the 5v output from the duino to power the module?

current hardware uses a separate 12v feed, can this device take a wide voltage range or did you use a different module?

if so do 12v units have a better range?

thanks 

Garry