Difference between revisions of "SIGNALduino Stick"

From InCircuit
Jump to: navigation, search
Line 11: Line 11:
 
It is able to receive and transmitt different communication protocols depending on the utilized firmware. In this manner it can be used to receive and transmit data from/to different devices via a FHEM Server.
 
It is able to receive and transmitt different communication protocols depending on the utilized firmware. In this manner it can be used to receive and transmit data from/to different devices via a FHEM Server.
  
The [[SIGNALduino Stick]] comes preflashed with the [https://github.com/RFD-FHEM/RFFHEM/commit/257aaeb19b0186121f79faf329496d7ecfd45ec9#diff-333ef8333f74797a8b4f43ef7f67ef20| SIGNALduino_radinoCC1101.hex] firmware.
+
The [[SIGNALduino Stick]] comes preflashed with the [https://github.com/RFD-FHEM/RFFHEM/commit/257aaeb19b0186121f79faf329496d7ecfd45ec9#diff-333ef8333f74797a8b4f43ef7f67ef20 SIGNALduino_radinoCC1101.hex] firmware.
  
 
It behaves like an Arduino Micro and can be programmed using the Arduino IDE.
 
It behaves like an Arduino Micro and can be programmed using the Arduino IDE.
Line 34: Line 34:
 
This is a short instruction on checking if your SIGNALduino Stick is working correctly and connecting it to FHEM running on a raspberry Pi.
 
This is a short instruction on checking if your SIGNALduino Stick is working correctly and connecting it to FHEM running on a raspberry Pi.
  
Our utilized test setup looks like this:
+
'''Our utilized test setup looks like this:'''
*Raspberry Pi 3 Model B running [https://www.raspberrypi.org/downloads/raspbian | Raspbian Stretch Lite]
+
*Raspberry Pi 3 Model B running [https://www.raspberrypi.org/downloads/raspbian Raspbian Stretch Lite]
 
**with screen and Keyboard connected
 
**with screen and Keyboard connected
 
**network connection via LAN-Cable
 
**network connection via LAN-Cable
**FHEM installed and updated, according to [https://debian.fhem.de/html/nightly.html | this instructions]  
+
**FHEM installed and updated, according to [https://debian.fhem.de/html/nightly.html this instructions]  
 
*[SIGNALduino Stick]  868MHz
 
*[SIGNALduino Stick]  868MHz
 
*''ELV FHT80TF-2'' Funk-Tür / Fenster-Melder (radio door/window contact)
 
*''ELV FHT80TF-2'' Funk-Tür / Fenster-Melder (radio door/window contact)
Line 45: Line 45:
  
 
==Checking the SIGNALduino Firmware==
 
==Checking the SIGNALduino Firmware==
The [[SIGNALduino Stick]] comes with preinstalled [https://github.com/RFD-FHEM/RFFHEM/commit/257aaeb19b0186121f79faf329496d7ecfd45ec9#diff-333ef8333f74797a8b4f43ef7f67ef20 | SIGNALDuino_radinoCC1101.hex] firmware. To check if it is working correctly, connect the Stick to an USB port of your PC and open a serial connection using a serial port monitor e.g. Putty at 57600 Baud. Starting the connection leads to:
+
The [[SIGNALduino Stick]] comes with preinstalled [https://github.com/RFD-FHEM/RFFHEM/commit/257aaeb19b0186121f79faf329496d7ecfd45ec9#diff-333ef8333f74797a8b4f43ef7f67ef20 SIGNALDuino_radinoCC1101.hex] firmware. To check if it is working correctly, connect the Stick to an USB port of your PC and open a serial connection using a serial port monitor e.g. Putty at 57600 Baud.
 +
*Starting the connection leads to:
  
 
   Init eeprom to defaults after flash
 
   Init eeprom to defaults after flash
Line 55: Line 56:
 
   receiver enabled
 
   receiver enabled
  
Typing V<ENTER> shows something like this:
+
*Typing V<ENTER> shows something like this:
  
 
   V 3.3.1-dev SIGNALduino cc1101 (868Mhz )- compiled at Mar 10 2017 23:27:29
 
   V 3.3.1-dev SIGNALduino cc1101 (868Mhz )- compiled at Mar 10 2017 23:27:29
  
The shown frequency depends on the Version of the [[SIGNALduino Stick]].
+
*The shown frequency depends on the Version of the [[SIGNALduino Stick]].
If this message shows up, the SIGNALduino Firmware works correctly.
+
*If this message shows up, the SIGNALduino Firmware works correctly.
  
 
==Connecting the SIGNALduino Stick to FHEM==
 
==Connecting the SIGNALduino Stick to FHEM==
  
The following steps are also described [https://wiki.fhem.de/wiki/SIGNALduino |here]<br>
+
The following steps are also described in detail in the [https://wiki.fhem.de/wiki/SIGNALduino FHEM-Wiki]
 +
 
 
'''Determining the SIGNALduino's port'''
 
'''Determining the SIGNALduino's port'''
 
*Connect the [[SIGNALDuino Stick]] to the Raspberry Pi while monitoring messages:
 
*Connect the [[SIGNALDuino Stick]] to the Raspberry Pi while monitoring messages:

Revision as of 14:27, 12 March 2018

THIS PAGE IS CURRENTLY UNDER CONSTRUCTION

Contents

Hardware

SIGNALduino Stick

The SIGNALduino Stick combines our fully Arduino compatible radino CC1101 Module with the handy format of a USB Stick. The SIGNALduino Stick comes in two different versions, either with 433 or 868MHz radio front end.

The utilized microcontroller is an Atmega 32U4 with 8MHz clock frequency. The CC1101 RF-Transceiver form Texas Instruments is used as radio front end either configured in 433MHz or 868MHz mode.

It is able to receive and transmitt different communication protocols depending on the utilized firmware. In this manner it can be used to receive and transmit data from/to different devices via a FHEM Server.

The SIGNALduino Stick comes preflashed with the SIGNALduino_radinoCC1101.hex firmware.

It behaves like an Arduino Micro and can be programmed using the Arduino IDE.

To reprogramm the SIGNALduino Stick it has to be set to bootloader mode by pressing the reset button twice. (bootloader mode is indicated by fading status LED)

Features:

  • Arduino campatible (Atmega 32U4 Processor, 8MHz)
  • CC1101 Transceiver (433 or 868MHz)
  • USB-A Plug
  • RP-SMA Antenna Connector
  • Input voltage: 5 VDC (USB)
  • on Board 3.3V regulator
  • Reset- and boot-select-(BSL) Button
  • User LED, RX/TX LEDs and Power-LED
  • available with 433 oder 868MHz transceiver
  • Antenna 5cm +3dBi included

SIGNALduino Stick & FHEM

This is a short instruction on checking if your SIGNALduino Stick is working correctly and connecting it to FHEM running on a raspberry Pi.

Our utilized test setup looks like this:

  • Raspberry Pi 3 Model B running Raspbian Stretch Lite
    • with screen and Keyboard connected
    • network connection via LAN-Cable
    • FHEM installed and updated, according to this instructions
  • [SIGNALduino Stick] 868MHz
  • ELV FHT80TF-2 Funk-Tür / Fenster-Melder (radio door/window contact)
  • PC running Win7 Professional 64Bit
    • connected to the network via LAN cable

Checking the SIGNALduino Firmware

The SIGNALduino Stick comes with preinstalled SIGNALDuino_radinoCC1101.hex firmware. To check if it is working correctly, connect the Stick to an USB port of your PC and open a serial connection using a serial port monitor e.g. Putty at 57600 Baud.

  • Starting the connection leads to:
 Init eeprom to defaults after flash
 ccFactoryReset done
 CCVersion=20
 CCPartnum=0
 CC1101 found
 Starting timerjob
 receiver enabled
  • Typing V<ENTER> shows something like this:
 V 3.3.1-dev SIGNALduino cc1101 (868Mhz )- compiled at Mar 10 2017 23:27:29
  • The shown frequency depends on the Version of the SIGNALduino Stick.
  • If this message shows up, the SIGNALduino Firmware works correctly.

Connecting the SIGNALduino Stick to FHEM

The following steps are also described in detail in the FHEM-Wiki

Determining the SIGNALduino's port

 pi@raspberrypi:~$ tail -f /var/log/messages
 [...]
 Mar  6 10:15:37 raspberrypi kernel: [   92.131244] usb 1-1.4: new full-speed USB device number 6 using dwc_otg
 Mar  6 10:15:37 raspberrypi kernel: [   92.282248] usb 1-1.4: New USB device found, idVendor=1da9, idProduct=002c
 Mar  6 10:15:37 raspberrypi kernel: [   92.282261] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 Mar  6 10:15:37 raspberrypi kernel: [   92.282269] usb 1-1.4: Product: radino CC1101
 Mar  6 10:15:37 raspberrypi kernel: [   92.282276] usb 1-1.4: Manufacturer: Unknown
 Mar  6 10:15:37 raspberrypi kernel: [   92.283479] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device
 Mar  6 10:15:37 raspberrypi mtp-probe: checking bus 1, device 6: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4" 
 Mar  6 10:15:37 raspberrypi mtp-probe: bus: 1, device: 6 was not an MTP device
  • Dertermine the SIGNALduino's port:
 pi@raspberrypi:/$ ls /dev/serial/by-id/ -l
 total 0
 lrwxrwxrwx 1 root root 13 Mar  6 10:15 usb-Unknown_radino_CC1101-if00 -> ../../ttyACM0
  • In this case the port is usb-Unknown_radino_CC1101-if00

Update FHEM

  • Make sure FHEM is running
  • open the FHEM website: http://<IP-adress of the raspberry pi>/fhem
  • update FHEM by typing: "update" in the FHEM command line
  • restart the website: shutdown restart

Defining the SIGNALduino Stick in FHEM

  • define the SIGNALduino in the FHEM command line by its port: define radinoCC1101 SIGNALduino /dev/serial/by-id/usb-Unknown_radino_CC1101-if00
  • The Stick is now being listed as radinoCC1101 in the DeviceOverview
  • reset the Stick by setting the reset parameter
  • When using the 868MHz version of the SIGNALduino Stick, the operating frequency has to be changed manually
    • Therefor set the parameter cc1101_freq in the radinoCC1101 Device Overview to 868.35
    • check for the correct frequency by get ccconfig
 ccconf: freq:868.350MHz bWidth:325KHz rAmpl:42dB sens:4dB (DataRate:5603.79Baud)
Personal tools