more G-Labs products

Author Topic: TESTING RELEASE  (Read 196296 times)

December 30, 2014, 10:08:14 PM
Reply #375

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi Jens,

as for rev 442:
"- Fixed wrong isConnected assigment order in SerialPortLib"

this is the only change. If you don't know how to fix, post your code, I'll give it a look.

Cheers,
g.

December 30, 2014, 10:40:31 PM
Reply #376

Jens

  • *****
  • Information
  • Global Moderator
  • Posts: 211
Hi Gene,

I am using not much more than this as core function

Action<string>
HandleStringReceived = (string message) => {
     // this will be called every time a message is received from serial port
    Program.Parameter("Status.Level").Value = message;
};
SerialPort
     .WithName( portname )
     .OnStatusChanged( HandleStatusChanged )
     .OnMessageReceived( HandleMessageReceived )
     .OnStringReceived( HandleStringReceived )
     .Connect( 57600 ); // change baud rate if needed to 57600
// initial modem configuration
SerialPort.SendMessage("AT.....\r");

As the RS232 on Raspberry is using GND/TX/RX only and missing handshake signals, how does the serial port know whether it is connected or not?

Maybe I am wrong and it is not the update as such but X10 Interface switching to /dev/ttyS0. Is this the same than /dev/ttyAMA0 and using the serial port?

I will test further tomorrow

Regards
Jens







December 31, 2014, 12:09:36 AM
Reply #377

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Do you have any code inside the "HandleStatusChanged"?
You should check the connection status before using:

SerialPort.SendMessage("AT.....\r");

otherwise it won't send anything.
What do you mean by "switching to /dev/ttyS0" ?
On RPi the serial port is /dev/ttyAMA0 afaik.

g.

December 31, 2014, 11:30:20 AM
Reply #378

Jens

  • *****
  • Information
  • Global Moderator
  • Posts: 211
I am using raspberry only, in the interfaces setup for X10 there are 3 options.
These are USB, /dev/ttys0 and /dev/ttyAMA0 - not sure whether ttyS0 has been there ever since.

I will do another upgrade test.

Regards
Jens

January 01, 2015, 09:28:24 PM
Reply #379

Jens

  • *****
  • Information
  • Global Moderator
  • Posts: 211
It is working even after upgrade, I did not recognize the switch to /dev/ttyS0 whilst doing the first test, which seems to be the same as ttyAMA0.

Regards

Jens

January 02, 2015, 04:09:11 PM
Reply #380

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
At the last Update to R452 from HG UI, all my ConfigurationOptions.Parameter have been lost, Generic Thermostat Configuration, Groups definition, ZWave Modules Setup, Log file Enable instead of Disable.

January 02, 2015, 04:38:13 PM
Reply #381

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
We got display of NaN instead of temperature in the Group Status Display.
Because in French, the t° in the module is stored with coma instead of point : 18,5 instead of 18.5.

January 02, 2015, 09:42:36 PM
Reply #382

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
I'll fix the NaN issue.
Also r452 introduced a bug and modules are not saving (that's probably why you lost all parameters) =/
I'll be pushing an update soon. Sorry about that.

g.

January 02, 2015, 11:12:52 PM
Reply #383

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi dani and all,

just uploaded r453. Please help testing! =)

https://sourceforge.net/projects/homegenie/files/testing/

03/01/2015 1.00 beta rev 453
    - Fixed bug introduced with r452 and that was preventing modules config from being saved
    - Fixed parsing of negative sensor values in ZWaveLib
    - Fixed "NaN" issue in group values indicator for locales using "," as decimal separator
    - Added modules.xml fields encryption
    - Fixed missing scheduler config restore from a backup

Cheers,
g

January 02, 2015, 11:28:41 PM
Reply #384

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Can I assume this also includes the public properties in the HistoryValues class?

January 02, 2015, 11:33:39 PM
Reply #385

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Yes... you assume right but fields have been renamed:

History.Values (the list with the history values)
History.Last
History.LastEmpty
History.LastNonEmpty

Cheers,
g.

January 03, 2015, 01:55:25 AM
Reply #386

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I'm getting an error during install of r453.

Code: [Select]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Building data structures... Done

Requires the installation of the following packages:
arduino-core  arduino-mk  avr-libc  avrdude  binutils-avr  empty-expect  gcc-avr  libconfig-yaml-perl  libyaml-libyaml-perl  libyaml-perl  perl-doc
Open Source Home Automation Server in a "Internet Of Things" world.
             Supports UPnP, X10, Z-Wave, Philips Hue and more...
Do you want to install the software package? [y/N]:y
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libyaml-libyaml-perl armhf 0.38-3+deb7u2
  404  Not Found
Fetched 0 B in 0s (0 B/s)
Error during install: 'Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/liby/libyaml-libyaml-perl/libyaml-libyaml-perl_0.38-3+deb7u2_armhf.deb 404  Not Found

I wasn't sure what the issue was, so I tried to install a second time and got the same issue (the output above is from the second attempt).  The first install attempt took a very long time since apparently there were a number of packages updated.  Perhaps the mirror my Raspi chose to use is not available right now.  I'll try again later to see if I can get it to work.

January 03, 2015, 01:57:45 AM
Reply #387

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I found the issue.  The HG installer is looking for:
libyaml-libyaml-perl_0.38-3+deb7u2_armhf.deb

But, there is a new update available on the server:
libyaml-libyaml-perl_0.38-3+deb7u3_armhf.deb

January 03, 2015, 02:06:34 AM
Reply #388

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I manually installed the package with the error and the installer was happy again.

Code: [Select]
wget http://mirrordirector.raspbian.org/raspbian/pool/main/liby/libyaml-libyaml-perl/libyaml-libyaml-perl_0.38-3+deb7u3_armhf.deb
sudo gdebi libyaml-libyaml-perl_0.38-3+deb7u3_armhf.deb

January 03, 2015, 03:20:41 AM
Reply #389

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi bkenobi,

to fix that installation error, you should have just done:

Code: [Select]
sudo apt-get update

before installing r453 package.

g.