You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query-continue>
    <allpages gapcontinue="Software_flow_control" />
  </query-continue>
  <query>
    <pages>
      <page pageid="1065" ns="0" title="SIGNALduino Stick">
        <revisions>
          <rev xml:space="preserve">&lt;div style=&quot;float:left;&quot;&gt;__TOC__&lt;/div&gt;
&lt;div style=&quot;float:left; margin:25px 0 0 100px;&quot;&gt;
&lt;strong&gt;Die deutsche Version dieser Anleitung: [[SIGNALduino_Stick_(deutsch)]]&lt;/strong&gt;
&lt;/div&gt;
&lt;div style=&quot;clear:both; margin-bottom:10px;&quot;&gt;&lt;/div&gt;


=Hardware=

[[File:Signalduino_Stick_433_45_1000.jpg|x300px|right|link=https://shop.in-circuit.de/product_info.php?cPath=22_28&amp;products_id=253 | SIGNALduino Stick]]&lt;br&gt;
[[File:Signalduino_Stick_liegend_aufrecht_1000.jpg|x110px|right|link=https://shop.in-circuit.de/product_info.php?cPath=22_28&amp;products_id=253 | 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 [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.

'''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 &amp; 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 [https://www.raspberrypi.org/downloads/raspbian Raspbian Stretch Lite]
**with screen and Keyboard connected
**network connection via LAN-Cable
**FHEM installed and updated, according to [https://debian.fhem.de/html/nightly.html this instructions] 
*SIGNALduino Stick  868MHz
&lt;!-- *''ELV FHT80TF-2'' Funk-Tür / Fenster-Melder (radio door/window contact)  --&gt;
*PC running Win7 Professional 64Bit
**connected to the network via LAN cable

==Check 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:

  Init eeprom to defaults after flash
  ccFactoryReset done
  CCVersion=20
  CCPartnum=0
  CC1101 found
  Starting timerjob
  receiver enabled

*Typing V&lt;ENTER&gt; 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.

==Connect the SIGNALduino Stick to FHEM==

The following steps are also described in detail in the [https://wiki.fhem.de/wiki/SIGNALduino 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: &quot;/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4&quot; 
  Mar  6 10:15:37 raspberrypi mtp-probe: bus: 1, device: 6 was not an MTP device

*&lt;code&gt;Product: radino CC1101&lt;/code&gt; should appear
*Dertermine the SIGNALduino's device path:&lt;br&gt;
  pi@raspberrypi:/$ ls /dev/serial/by-id/ -l
  total 0
  lrwxrwxrwx 1 root root 13 Mar  6 10:15 usb-Unknown_radino_CC1101-if00 -&gt; ../../ttyACM0

*In this case the port is: &lt;code&gt;usb-Unknown_radino_CC1101-if00&lt;/code&gt;
'''Update FHEM'''
*The following steps are done in FHEM
*Open a browser on your PC and enter FHEM: &lt;code&gt;http://''&lt;IP-adress&gt;:8083''/fhem&lt;/code&gt;
*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 &lt;code&gt;radinoCC1101&lt;/code&gt; in the ''DeviceOverview''
*Reset the Stick by &lt;code&gt;set&lt;/code&gt; &lt;code&gt;reset&lt;/code&gt; parameter 
*'''IMPORTANT:''' When using the 868MHz version of the SIGNALduino Stick, the operating frequency has to be changed manually
**Therefor &lt;code&gt;set&lt;/code&gt; the parameter &lt;code&gt;cc1101_freq&lt;/code&gt; of radinoCC1101 to &lt;code&gt;868.35&lt;/code&gt;
**check if the frequency has been set correctly: &lt;code&gt;get&lt;/code&gt; &lt;code&gt;ccconfig&lt;/code&gt;
  ccconf: freq:868.350MHz bWidth:325KHz rAmpl:42dB sens:4dB (DataRate:5603.79Baud)

==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.&lt;br&gt;
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]])&lt;br&gt;</rev>
        </revisions>
      </page>
      <page pageid="1068" ns="0" title="SIGNALduino Stick (deutsch)">
        <revisions>
          <rev xml:space="preserve">&lt;div style=&quot;float:left;&quot;&gt;__TOC__&lt;/div&gt;
&lt;div style=&quot;float:left; margin:25px 0 0 100px;&quot;&gt;
&lt;strong&gt;The english version of this tutorial: [[SIGNALduino_Stick]]&lt;/strong&gt;
&lt;/div&gt;
&lt;div style=&quot;clear:both; margin-bottom:10px;&quot;&gt;&lt;/div&gt;


=Hardware=


[[File:Signalduino_Stick_433_45_1000.jpg|x300px|right|link=https://shop.in-circuit.de/product_info.php?cPath=22_28&amp;products_id=253 | SIGNALduino Stick]]&lt;br&gt;
[[File:Signalduino_Stick_liegend_aufrecht_1000.jpg|x110px|right|link=https://shop.in-circuit.de/product_info.php?cPath=22_28&amp;products_id=253 | SIGNALduino Stick]]

Der SIGNALduino Stick vereint unser voll Arduino kompatibles radino CC1101 Funkmodul mit dem handlichen Format eines USB-Sticks. Der SIGNALduino Stick ist mit 433 oder 868MHz Funk-Frontend erhältlich.

Als Microcontroller kommt der Atmega 32U4 Prozessor mit 8MHz Taktfrequenz zum Einsatz. Beim RF-Transceiver handelt es sich um den CC1101 von Texas Instruments (433 / 868MHz).

Mit entsprechender Firmware können zahlreiche Funkprotokolle übertragen und empfangen werden. So lassen sich unterschiedliche Sensoren und Aktoren, via FHEM-Server, auslesen und ansteuern.

Der SIGNALduino Stick verhält sich wie ein Arduino Micro und kann somit über die Arduino IDE programmiert werden

Der SIGNALduino Stick kommt vorbespielt mit der [https://github.com/RFD-FHEM/RFFHEM/commit/257aaeb19b0186121f79faf329496d7ecfd45ec9#diff-333ef8333f74797a8b4f43ef7f67ef20 SIGNALDuino_radinoCC1101.hex] Firmware. (5 Mar 2017, commit:257aaeb19b0186121f79faf329496d7ecfd45ec9) 

'''Eigenschaften:'''

*Arduino kompatibel (Atmega 32U4 Prozessor, 8MHz)
*CC1101 Transceiver (433 oder 868MHz)
*USB-A Stecker
*RP-SMA Antennenbuchse
*Input voltage: 5 VDC (USB)
*on Board 3.3V Regler
*Reset-Taster + Taster für Boot-select(BSL)
*User LED, RX/TX LEDs und Power-LED
*erhältlich in 433 oder 868MHz Variante
*inklusive Antenne 5cm +3dBi für erhöhte Reichweite (stärkere Antenne optional wählbar)

=SIGNALduino Stick &amp; FHEM=

Es folgt eine kurze Anleitung, wie die Firmware des SIGNALduino Sticks auf korrekte Funktion überprüft werden kann und wie der Signalduino Stick in FHEM eingebunden wird.

'''Unser Testsetup:'''
*Raspberry Pi 3 Model B mit [https://www.raspberrypi.org/downloads/raspbian Raspbian Stretch Lite] Betriebssystem
**Monitor und Tastatur angeschlossen
**Netzwerkverbindung hergestellt über Netzwerkkabel
**FHEM installiert und per &lt;code&gt;uptade&lt;/code&gt; auf den neuesten Stand gebracht (nach [https://debian.fhem.de/html/nightly.html dieser Anleitung] 
*SIGNALduino Stick 868MHz
&lt;!-- *''ELV FHT80TF-2'' Funk-Tür / Fenster-Melder (radio door/window contact)  --&gt;
*PC mit Win7 Professional 64Bit Betriebssystem
**Netzwerkverbindung ebenfalls über Netzwerkkabel

==Überprüfen der SIGNALduino Firmware==
Bei des Auslieferung ist der SIGNALduino Stick bereits mit der [https://github.com/RFD-FHEM/RFFHEM/commit/257aaeb19b0186121f79faf329496d7ecfd45ec9#diff-333ef8333f74797a8b4f43ef7f67ef20 SIGNALDuino_radinoCC1101.hex] Firmware bespielt. Um zu überprüfen, ob diese korrekt funktioniert, wird der SIGNALduino Stick per USB an den PC angeschlossen und eine Serielle Verbindung mittels Terminalprogramm (Puuty, HTerm...) und einer Baudrate von 57600 hergestellt. 
*Beim Start der Verbindung meldet sich der Stick mit:

  Init eeprom to defaults after flash
  ccFactoryReset done
  CCVersion=20
  CCPartnum=0
  CC1101 found
  Starting timerjob
  receiver enabled

*Eingabe: V&lt;ENTER&gt; zeigt etwas wie:

  V 3.3.1-dev SIGNALduino cc1101 (868Mhz )- compiled at Mar 10 2017 23:27:29

*Die angezeigte Frequenz hängt von der Version/Konfiguration des SIGNALduino Sticks ab
*Wenn die obige Meldung erscheint, arbeitet die Firmware einwandfrei

==SIGNALduino Stick in FHEM einbinden==

Die folgenden Schritte werden auch im [https://wiki.fhem.de/wiki/SIGNALduino FHEM-Wiki] beschrieben.

'''Bestimmung des SIGNALduino Ports'''
*SIGNALDuino Stick an den Raspberry Pi anschließen
*während dessen, Benachrichtigungen überwachen mit:
  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: &quot;/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4&quot; 
  Mar  6 10:15:37 raspberrypi mtp-probe: bus: 1, device: 6 was not an MTP device

*Es sollte &lt;code&gt;Product: radino CC1101&lt;/code&gt; angezeigt werden
*Bestimmung des Gerätepfades:&lt;br&gt;
  pi@raspberrypi:/$ ls /dev/serial/by-id/ -l
  total 0
  lrwxrwxrwx 1 root root 13 Mar  6 10:15 usb-Unknown_radino_CC1101-if00 -&gt; ../../ttyACM0

*der Gerätepfad ist in diesem Fall: &lt;code&gt;usb-Unknown_radino_CC1101-if00&lt;/code&gt;
'''FHEM Udate durchführen'''
*FHEM am PC öffnen: Browser -&gt; &lt;code&gt;http://''&lt;IP-adress&gt;:8083''/fhem&lt;/code&gt;
*FHEM Update durchführen:
  update
*SIGNALduino Modul aktualisieren:
  update all https://raw.githubusercontent.com/RFD-FHEM/RFFHEM/dev-r33/controls_signalduino.txt
*Website neu starten:
  shutdown restart
'''SIGNALduino Stick in ''FHEM'' bekannt machen'''
*Definition des SIGNALduino Stick in FHEM anhand seines Gerätepfads:
  define radinoCC1101 SIGNALduino /dev/serial/by-id/usb-Unknown_radino_CC1101-if00
*Der Stick wird jetzt als &lt;code&gt;radinoCC1101&lt;/code&gt; im ''DeviceOverview'' aufgeführt
*Reset des Sticks durchführen: &lt;code&gt;set reset&lt;/code&gt;
*'''WICHTIG:''' Wenn die 868MHz Version des SIGNALduino Sticks verwendet wird, muss die Frequenz manuell geändert werden
**Dafür muss der Parameter &lt;code&gt;cc1101_freq&lt;/code&gt; in der Konfiguration des ''radinoCC1101'' auf &lt;code&gt;868.35&lt;/code&gt; gesetzt werden
**Überprüfen ob die Frequenz in die Konfiguration übernommen wurde: &lt;code&gt;get&lt;/code&gt; &lt;code&gt;ccconfig&lt;/code&gt;
  ccconf: freq:868.350MHz bWidth:325KHz rAmpl:42dB sens:4dB (DataRate:5603.79Baud)

==Abweichende Firmware aufspielen==

Der SIGNALduino Stick muss (u.U.) unmittelbar vor dem flashen einer neuen Firmware manuell in den Bootloader versetzt werden. Dazu, den Reset-Buton in dem Moment des Bespielens doppelt drücken. Der Bootloder-Modus wird durch ein Pulsieren der Status LED angezeigt.&lt;br&gt;
Der SIGNALduino Stick ist voll Arduino kompatibel. Um den Stick aus der Arduino IDE zu programmieren, muss die [http://wiki.in-circuit.de/index.php5?title=Downloads#radino_Modules Arduino Library] für radino installiert werden. (siehe [[radino/radino32 software]])&lt;br&gt;</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>