Difference between revisions of "SIGNALduino Stick"
(→Flashing new Firmware) |
|||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <div style="float:left;">__TOC__</div> | |
+ | <div style="float:left; margin:25px 0 0 100px;"> | ||
+ | <strong>Die deutsche Version dieser Anleitung: [[SIGNALduino_Stick_(deutsch)]]</strong> | ||
+ | </div> | ||
+ | <div style="clear:both; margin-bottom:10px;"></div> | ||
+ | |||
=Hardware= | =Hardware= | ||
Line 6: | Line 11: | ||
[[File:Signalduino_Stick_liegend_aufrecht_1000.jpg|x110px|right|link=https://shop.in-circuit.de/product_info.php?cPath=22_28&products_id=253 | SIGNALduino Stick]] | [[File:Signalduino_Stick_liegend_aufrecht_1000.jpg|x110px|right|link=https://shop.in-circuit.de/product_info.php?cPath=22_28&products_id=253 | SIGNALduino Stick]] | ||
− | The | + | 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. | + | 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. | 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 | + | 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. | ||
− | |||
− | |||
'''Features:''' | '''Features:''' | ||
Line 30: | Line 33: | ||
*available with 433 oder 868MHz transceiver | *available with 433 oder 868MHz transceiver | ||
*Antenna 5cm +3dBi included | *Antenna 5cm +3dBi included | ||
+ | |||
=SIGNALduino Stick & FHEM= | =SIGNALduino Stick & FHEM= | ||
Line 40: | Line 44: | ||
**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 |
− | *''ELV FHT80TF-2'' Funk-Tür / Fenster-Melder (radio door/window contact) | + | <!-- *''ELV FHT80TF-2'' Funk-Tür / Fenster-Melder (radio door/window contact) --> |
*PC running Win7 Professional 64Bit | *PC running Win7 Professional 64Bit | ||
**connected to the network via LAN cable | **connected to the network via LAN cable | ||
− | == | + | ==Check the SIGNALduino Firmware== |
− | The | + | 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: | *Starting the connection leads to: | ||
Line 61: | Line 65: | ||
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 | + | *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. | ||
− | == | + | ==Connect the SIGNALduino Stick to FHEM== |
The following steps are also described in detail in the [https://wiki.fhem.de/wiki/SIGNALduino FHEM-Wiki] | The following steps are also described in detail in the [https://wiki.fhem.de/wiki/SIGNALduino FHEM-Wiki] | ||
− | '''Determining the SIGNALduino's | + | '''Determining the SIGNALduino's device path''' |
− | *Connect the | + | *Connect the SIGNALDuino Stick to the Raspberry Pi while monitoring messages: |
pi@raspberrypi:~$ tail -f /var/log/messages | pi@raspberrypi:~$ tail -f /var/log/messages | ||
[...] | [...] | ||
Line 81: | Line 85: | ||
Mar 6 10:15:37 raspberrypi mtp-probe: bus: 1, device: 6 was not an MTP device | Mar 6 10:15:37 raspberrypi mtp-probe: bus: 1, device: 6 was not an MTP device | ||
− | *Dertermine the SIGNALduino's | + | *<code>Product: radino CC1101</code> should appear |
+ | *Dertermine the SIGNALduino's device path:<br> | ||
pi@raspberrypi:/$ ls /dev/serial/by-id/ -l | pi@raspberrypi:/$ ls /dev/serial/by-id/ -l | ||
total 0 | total 0 | ||
lrwxrwxrwx 1 root root 13 Mar 6 10:15 usb-Unknown_radino_CC1101-if00 -> ../../ttyACM0 | lrwxrwxrwx 1 root root 13 Mar 6 10:15 usb-Unknown_radino_CC1101-if00 -> ../../ttyACM0 | ||
− | *In this case the port is <code>usb-Unknown_radino_CC1101-if00</code> | + | *In this case the port is: <code>usb-Unknown_radino_CC1101-if00</code> |
'''Update FHEM''' | '''Update FHEM''' | ||
*The following steps are done in FHEM | *The following steps are done in FHEM | ||
− | *Open a browser and enter FHEM: <code>http://''<IP-adress>''/fhem</code> | + | *Open a browser on your PC and enter FHEM: <code>http://''<IP-adress>:8083''/fhem</code> |
− | *Update FHEM | + | *Update FHEM: |
− | *Restart the website: | + | update |
+ | *Update the SIGNALduino Module: | ||
+ | update all https://raw.githubusercontent.com/RFD-FHEM/RFFHEM/dev-r33/controls_signalduino.txt | ||
+ | *Restart the website: | ||
+ | shutdown restart | ||
'''Defining the SIGNALduino Stick in ''FHEM''''' | '''Defining the SIGNALduino Stick in ''FHEM''''' | ||
− | *Define the | + | *Define the SIGNALduino Stick 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 <code>radinoCC1101</code> in the ''DeviceOverview'' | *The Stick is now being listed as <code>radinoCC1101</code> in the ''DeviceOverview'' | ||
− | *Reset the Stick by | + | *Reset the Stick by <code>set</code> <code>reset</code> parameter |
*'''IMPORTANT:''' When using the 868MHz version of the SIGNALduino Stick, the operating frequency has to be changed manually | *'''IMPORTANT:''' When using the 868MHz version of the SIGNALduino Stick, the operating frequency has to be changed manually | ||
− | **Therefor <code>set</code> the parameter <code>cc1101_freq</code> | + | **Therefor <code>set</code> the parameter <code>cc1101_freq</code> of radinoCC1101 to <code>868.35</code> |
− | **check if the frequency has | + | **check if the frequency has been set correctly: <code>get</code> <code>ccconfig</code> |
ccconf: freq:868.350MHz bWidth:325KHz rAmpl:42dB sens:4dB (DataRate:5603.79Baud) | ccconf: freq:868.350MHz bWidth:325KHz rAmpl:42dB sens:4dB (DataRate:5603.79Baud) | ||
==Flashing new Firmware== | ==Flashing new Firmware== | ||
− | The | + | To flash a new firmare, the SIGNALduino Stick sometimes needs to be set to bootloader mode manually beforehand, by pressing the reset button twice. The bootloader mode is indicated by fading status LED. |
− | + | Be aware that the Stick has an other serial port number in bootloader mode.<br> | |
− | + | The SIGNALduino Stick is fully Arduino compatible. If you want to program it using the Arduino IDE, you just have to download the [http://wiki.in-circuit.de/index.php5?title=Downloads#radino_Modules Arduino Library] for radino. (See also [[radino/radino32 software]])<br> |
Latest revision as of 08:13, 13 September 2018
Contents |
Die deutsche Version dieser Anleitung: SIGNALduino_Stick_(deutsch)
[edit] Hardware
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.
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
[edit] 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
- PC running Win7 Professional 64Bit
- connected to the network via LAN cable
[edit] Check 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.
[edit] Connect the SIGNALduino Stick to FHEM
The following steps are also described in detail in the FHEM-Wiki
Determining the SIGNALduino's device path
- Connect the SIGNALDuino Stick to the Raspberry Pi while monitoring messages:
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
Product: radino CC1101
should appear- Dertermine the SIGNALduino's device path:
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
- The following steps are done in FHEM
- Open a browser on your PC and enter FHEM:
http://<IP-adress>:8083/fhem
- Update FHEM:
update
- Update the SIGNALduino Module:
update all https://raw.githubusercontent.com/RFD-FHEM/RFFHEM/dev-r33/controls_signalduino.txt
- Restart the website:
shutdown restart
Defining the SIGNALduino Stick in FHEM
- Define the SIGNALduino Stick 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
set
reset
parameter - IMPORTANT: When using the 868MHz version of the SIGNALduino Stick, the operating frequency has to be changed manually
- Therefor
set
the parametercc1101_freq
of radinoCC1101 to868.35
- check if the frequency has been set correctly:
get
ccconfig
- Therefor
ccconf: freq:868.350MHz bWidth:325KHz rAmpl:42dB sens:4dB (DataRate:5603.79Baud)
[edit] Flashing new Firmware
To flash a new firmare, the SIGNALduino Stick sometimes needs to be set to bootloader mode manually beforehand, by pressing the reset button twice. The bootloader mode is indicated by fading status LED.
Be aware that the Stick has an other serial port number in bootloader mode.
The SIGNALduino Stick is fully Arduino compatible. If you want to program it using the Arduino IDE, you just have to download the Arduino Library for radino. (See also radino/radino32 software)