Switching frequency to US is not an option?

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
z130s
Posts: 2
Joined: 15 Dec 2019 02:53

Switching frequency to US is not an option?

Post by z130s »

# Problem

I use z-way. My problem as a user of z-way is a bad response (*1), but I focus on asking about frequency for now.

I'm in the US and have purchased z-wave devices in the US. I see on http://%IPADDR%:8083/expert/#/network/control that the only available "Operating frequency" are EU/RU/IN/CN.
  • Q-1. Isn't it an issue?
  • Q-2. If it is an issue, then how can I change to the appropriate frequency (I assume it's US)?
# Environment

Code: Select all

$ apt-cache policy z-way-server
    z-way-server:
      Installed: 3.0.4
    $ uname -a
    Linux 130s-rpi2 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Raspbian
    Description:    Raspbian GNU/Linux 9.11 (stretch)
    Release:        9.11
    Codename:       stretch

    Firmware
    Library Type:	Static Controller
    SDK Version:	6.81.01
    Serial API Version:	05.36
# What I've done but doesn't seem to work
  • Reboot the RasPI after upgrading firmware to the version above.
*1...My problem is that z-way keeps saying devices are dead. When trying to operate a device via z-way web I/F, the time for an operation to complete takes indefinite amount of time (sometimes it's instant, but a lot of times it takes several seconds or minutes).
z130s
Posts: 2
Joined: 15 Dec 2019 02:53

Re: Switching frequency to US is not an option?

Post by z130s »

I've seen people saying that changezwf.sh has a feature to change the frequency (https://forum.z-wave.me/viewtopic.php?f ... +us#p84813), but looking into that script file that it takes a USB port number as the 1st arg, which in my case with RazBerry I don't think is related. Thus I don't know how to use that script for my case.

Code: Select all

$ more changezwf.sh
# 'changezwf'
# Changes operating frequency for Z-Wave.Me UZB Device

if [ $# -lt 2 ]
then
        echo "Usage : $0 USB_Port Country_Code"
        exit
fi

case $2 in
EU)
        echo 'Switch to European Frequency (848.4 ... 869 MHz)'
        echo -ne "\x01\x04\x00\xF2\x00\x09" > $1 ;;
RU)
        echo 'Switch to Russian Frequency (869 MHz)'
        echo -ne "\x01\x04\x00\xF2\x01\x08" > $1 ;;
IN)
        echo 'Switch to India Frequency (865.2 MHz)'
        echo -ne "\x01\x04\x00\xF2\x02\x07" > $1 ;;
US)
        echo 'Switch to North/South American Frequency (908 MHz ... 916 MHz)'
        echo -ne "\x01\x04\x00\xF2\x03\x06" > $1 ;;
:
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Switching frequency to US is not an option?

Post by PoltoS »

Use /dev/ttyAMA0 as port
seattleneil
Posts: 234
Joined: 02 Mar 2020 22:41

Re: Switching frequency to US is not an option?

Post by seattleneil »

A different way to switch frequency to US is the ZMEFreqChange function.

Run this command from the Pi (substitute your login and password for [username] and [password]):

curl -u [username]:[password] --globoff '127.0.0.1:8083/JS/Run/zway.ZMEFreqChange(3)'

The function and frequency parameter are described in the Z-WayEssentials manual.
Parameter freq: 0x01 RU. 0x02 IN. 0x03 US. 0x04 ANZ. 0x05 HK. 0x06 CN. 0x07 JP. 0x08 KR. 0x09 IL. 0x0A MY. 0xFF request current frequency

Z-Way definitely has a learning curve. I think it's worth climbing.
Post Reply