Skip to content
Andreas Mohr edited this page Dec 5, 2018 · 4 revisions

Commands this Arduino supports

Send Data via Pin (default is pin 11)

Sendraw = SR;

  • options R= (number of repeats)
  • P<0-7>= (pattern in microseconds; negative for low pin state, positive for a high pin state)
  • D= (Data matching P0-7 defined pattern)

This will send a raw signal. The signal will be generated by the indices specified with the D= statement. The pin will be changed exactly to the state you specified with the sign of the value. P=-2500 will hold the pin 2500 microseconds low. P4=420 will hold the pin 420 microseconds in a high state. With the sequence (D=), the signal order is defined how the pattern (Px=) will be used.

Example:
 SR;R=2;P0=-500;P1=1500;P2=3000;D=0101020201010202;

Sendmanchester = SM;

  • options R= (number of repeats)
  • C= (clock in microseconds, which will be used to generate the manchester signal )
  • D= (Data in hex, which will be modulated with the given clock to manchester signal)

This will generate a manchester encoding for the data specfied after D=. The modulation will follow the IEEE Specification. If you need the encoding specified by G.E. Thomas, you can invert data before you pass it to the microcontroller to achieve this. Please note, that the receiver needs to sync on that signal. For this purpose, you man need to send an 0xA or 0x5 at the beginning of a transmission, which allows the receiver to sync.

Example:
 SM;C=500;D=AA5536EF0F;

Sendcombined = SC;

  • options R= (number of repeats)

Sendcombined is more a macro command. It mainly has one fixed parameter (R=). With the SC Command, it is possible to send a raw signal and a manchester encoded signal with one command. This allows sending some signal in front or after a manchester signal which are not manchester conformant.

Example:
 SC;R=6;SR;P0=2480;P1=-2480;D=0101;D=0;SM;C=500;D=AA5536EF0F;SR;P0=-30415;D=0;

This consists of three send commands:

 SR;P0=2500;P1=-2500;D=0101;D=0;

Brings the pin high for 2500 microseconds, and then low. Note, you can also use the Repeat command for a SR command inside a SC command. With R=2 the data part can be reduced to D=01

 SM;C=500;D=AA5536EF0F;

Sends manchester encoded "AA5536EF0F".

 SR;P0=-30415;D=0;

Brings the pin low for ~30000 microseconds

This is repeated 6 times, as specified after the SC command.

get uptime

get free ram

get detector modules state

set detector modules state

get version