2014-10-28

GSMIRRC: Issues

The issues detected so far:

1) The distance to control infrared device is too small - less than 1 meter. I suspect one of 2 cases :
   a) the infrared transmitter frequency 38KHz is not the best choice for any device. Although I tested 36KHz, 38KHz, 40KHz - the best results/distance I noticed for 38KHz
   b) the infrared transmitter is not powerful enough - it is infrared diode with 200 Ohm resistor:

 I want to improve IR transmitter by adding transistor amplifier into this device:


If you do not want to solder anything, you may try "4 Directional IR Transmitter" (but I did not notice the amplifier there):

GSMIRRC: IR transmitter amplifier

The infrared transmitter I bought on Ebay looks nice, but it does not have an amplifier - so the distance is less than 1 meter:


You can increase the distance up to 3 meters by adding simple transistor amplifier:

GSMIRRC: Configure Arduino + Bluetooth HC-05 Slave

How to connect Arduino to Bluetooth HC-05 module:


HC-05 is not visible for Android by default - because of "secure device class" of "1f00"
AT+CLASS? 1f00

We will set the Class to "1":
AT+CLASS=1

and the Role to "Slave"
AT+ROLE?
AT+ROLE=0


1.1. Connect Arduino to Bluetooth HC-05 according to the layout:


1.2. Do not supply the power yet

1.3. Connect the HC-05 "key" pin (1st pin from the left) to Arduino "VCC" pin


1.4. Power On HC-05 (connect Arduino to USB)


1.5.1  Connect on 38400, 8n1
or
1.5.2 Load the Arduino test sketch:

#include <SoftwareSerial.h>

SoftwareSerial BTSerial(5, 4); // RX | TX

void setup()
{
  Serial.begin(9600);
  Serial.println("Enter AT commands:");
  BTSerial.begin(38400);  // HC-05 default speed in AT command more

//38400?
}

void loop()
{

  // Keep reading from HC-05 and send to Arduino Serial Monitor
  if (BTSerial.available())
    Serial.write(BTSerial.read());

  // Keep reading from Arduino Serial Monitor and send to HC-05
  if (Serial.available())
    BTSerial.write(Serial.read());
}


1.7. Open Arduino Serial Monitor (Tools > Serial Monitor) and run the AT commands:

>OK



<AT+ROLE
>+ROLE:0
 

<AT+CLASS
>+CLASS:1f00 

>OK  

AT+PSWD=4321

>+UART=9600,0,0

>OK 
>+UART:4800,1,0


>+NAME:HC-05


Now restart HC-05 (reconnect Arduino USB) and try to find and pair HC-05 from your Android (Settings > Bluetooth > Discover new devices)
Default HC-05 pin is 1234

Let me know if you have any questions.

References:
http://www.instructables.com/id/Modify-The-HC-05-Bluetooth-Module-Defaults-Using-A/?ALLSTEPS
http://byron76.blogspot.com/2011/09/hc05-firmware.html

AVR links

http://www.engbedded.com/fusecalc/

http://projectsfromtech.blogspot.com/2013/04/using-reset-pin-as-io-on-attiny8545.html

http://www.simpleavr.com/avr/hvsp-fuse-resetter
http://www.rickety.us/2010/03/arduino-avr-high-voltage-serial-programmer/

(Mosfet motor driver)

Mosfet IRF530 H-Bridge motor driver module:


Dual H Bridge L298N DC Stepper Motor Driver Module Controller Board:

nRF options


433Mhz RF transmitter and receiver kit for Arduino
$2.5-3 for 2 transceiver sets (2 transmitters, 2 receivers)
2.Operating voltage: DC5V
4.Receiving frequency: 433.92MHZ
5.Receiver sensitivity:-105DB
7.External antenna: 32CM single core wire, wound into a spiral
2.Launch distance :20-200 meters (different voltage, different results)
3.Operating voltage :3.5-12V
5.Operating mode: AM
6.Transfer rate: 4KB / S
7.Transmitting power: 10mW
8.Transmitting frequency: 433M
9.An external antenna: 25cm ordinary multi-core or single-core line

http://www.instructables.com/id/RF-315433-MHz-Transmitter-receiver-Module-
and-Ardu/?ALLSTEPS



$3.5 for 2
 ?100m Range at 250kbps
5V tolerant input pins


$3.5 for 2
  • 2.4GHz
  • 100m range?
  • 1.9V-3.3V Vcc input
  • 2Mbps/1Mbps/250Kbp


     
    ?6$ for 2
    In the 1.9 to 3.6V low voltage operation




    $12-15 for 2
    3-3.6V
     nRF24L01+ Wireless Transceiver Module + PA + SMA Antenna 2.4G wireless
    with 250Kbps transmission rate it can reach up to 800~1000 meters distance
    Transmission distance(Open area): 520m  (2Mbps)/750m(1Mbps)/1000m (250Kbps

    Details about  2pcs 2.4G NRF24L01+ Wireless Transceiver Module with SMA Antenna
    1.9 to 3.6 V low voltage


    $14
    2pcs V5.0 2.4G NRF24L01+PA+LNA Wireless Module without Antenna



    2pcs CC1101 wireless module /433M/2500/NRF 350m Distance Transmission
    350M
    $14
    <h1 class="it-ttl" id="itemTitle" itemprop="name">


    CC1101 Wireless Module SMA Antenna Wireless Transceiver Module for Arduino
    $16 for 2 items



    $8 for 2
    SI4432 470MHz 1000m Wireless Module 470M 433mhz Wireless Communication Module


    470MHz SI4432 Wireless Module Wireless Communication Module 470M
    $11 for 2
    2. Sensitivity: -113dBm(1.2Kbps)
    3. Maximum output power: 100mA@19.6dBm
    4. data transfer rate: 0.123-256KBPS
    5. modulation mode: FSK, GFSK and baton
    6. power supply: 1.8-3.6V



    $8 or $16 for 2 items
    2pcs NRF905 wireless module (PTR8000+) wireless transmission 433/486/915MHz
    Operating voltage :2.7 - 3.3V 



    A7105 2.4G Wireless Module CC2500/ NRF24L01 MD7105-SY Transceiver AA
     $6 for 2
    XL7105-SY adopt Taiwan sheng division (AMIC) 2.4 G wireless transceiver chip high performance A7105 make!!!!! Working in 2400 2483 M international open ISM band, the biggest launch power is 0 (dBm), 1 mW 500 KBPS, the highest rate high rx sensitivity-99 dBm @ 250 KBPS, module open two-way test of 120 M distance as far as!!!!!



    jklh

    2014-10-24

    IR codes

    ###############################################
    F A/C ON
    3367,1537,465,350,460,350,465,1169,464,350,460,1173,465,345,465,379,460,324,465,1164,464,1164,490,324,464,354,480,350,435,1165,464,1172,464,345,464,350,486,353,460,354,435,350,459,354,485,353,460,325,490,350,435,354,485,354,434,349,464,350,460,1168,464,350,464,380,460,349,435,350,464,350,460,354,465,346,464,1164,490,328,464,346,465,350,460,379,460,354,439,1160,464,1168,465,1164,489,1143,465,1164,464,1165,464,354,485,348,460,324,465,1164,490,350,439,350,460,354,486,354,435,350,463,354,460,350,486,354,460,1142,490,1139,463,349,464,354,486,1138,490,324,465,350,460,354,490,1139,464,350,460,1173,465,1160,490,1143,465,350,460,354,485,354,435,349,464,375,459,354,460,350,439,375,435,1169,464,350,464,375,460,353,459,329,464,345,464,350,460,379,460,349,439,350,460,379,460,354,460,350,439,375,434,380,460,349,439,349,464,354,460,375,435,375,439,379,435,375,460,350,439,350,460,384,460,350,460,353,435,350,460,384,460,350,460,350,435,379,435,380,460,1143,460,1168,465,1168,460,1169,465,1168,485,1143,464,0,0,0,0,0,0,
    3298,1631,426,413,397,418,422,1185,447,362,448,1181,452,391,396,413,396,388,426,1207,422,1211,396,439,422,367,397,417,426,1228,447,1160,422,362,528,286,528,282,477,337,528,286,532,282,528,312,477,307,557,282,452,337,477,337,503,337,502,282,477,1156,528,282,477,337,502,312,477,363,502,282,503,337,452,337,502,1126,502,312,528,286,473,336,451,363,502,312,473,1180,477,1105,498,1185,447,1181,452,1152,476,1181,451,363,528,256,502,311,528,1105,473,366,473,337,477,341,473,337,447,336,477,362,452,362,452,362,421,1182,477,1181,476,333,452,337,473,1181,451,341,473,362,422,392,447,1181,426,414,396,1181,477,1181,477,1126,422,418,452,362,422,388,452,337,452,388,452,354,430,384,451,363,477,1135,498,307,477,341,477,358,426,388,447,392,422,337,451,388,448,363,426,388,451,362,448,367,421,388,452,362,422,392,456,358,425,383,425,388,422,371,447,414,447,312,452,362,451,388,422,417,397,388,425,388,422,418,422,362,426,387,452,392,396,388,452,384,375,414,422,1236,397,1206,421,1207,426,1207,447,1181,452,1207,421,0,0,0,0,0,0,
    A/C OFF
    3340,1563,469,350,465,345,460,1168,464,354,460,1164,489,325,464,350,464,345,490,1143,490,1139,490,324,490,324,464,350,486,1143,465,1164,464,350,490,324,465,350,464,346,490,329,490,320,464,350,460,354,464,346,464,350,464,350,486,328,464,345,465,1168,490,350,459,324,465,350,464,346,464,350,464,349,464,350,460,1168,490,324,465,350,460,349,464,350,464,1164,490,354,460,350,464,350,439,349,490,349,460,324,465,0,0,0
    3353,1554,473,337,452,384,426,1232,371,418,401,1228,422,418,397,388,400,438,401,1177,452,1207,422,366,498,312,502,312,477,1152,426,1232,422,392,422,387,401,413,452,362,422,418,375,464,371,413,396,421,396,384,427,388,422,367,472,367,507,278,528,1105,477,333,503,311,447,392,447,336,503,312,477,337,477,358,479,1152,477,311,472,392,422,363,426,388,477,1152,452,337,502,337,477,337,422,392,451,358,477,312,473,0,0,0

    ######################
    Sony TV PWR

    2420,520,1220,540,620,520,1220,540,620,520,1220,540,620,520,640,520,1220,520,640,520,640,520,620,520,640,25300,2420,540,1200,540,620,540,1200,540,620,540,1200,540,620,520,640,520,1220,540,620,520,640,520,620,540,620,25320,2400,540,1220,520,640,520,1220,520,640,520,1220,540,620,520,620,540,1200,540,620,540,620,520,620,540,620,25180,2420,520,1220,540,620,520,1220,540,620,520,1220,540,620,520,640,520,1220,540,620,520,620,540,620,520,620,25180,2420,520,1220,540,620,540,1200,540,620,540,1200,540,620,540,620,520,1220,540,620,520,640,520,620,520,640,25180,2400,540,1200,540,620,540,1220,520,640,520,1220,520,640,520,620,540,1200,540,620,540,640,500,640,520,620,

    ######################
    Fuji 2014 Power on
    3298,1618,435,375,435,375,435,1190,435,375,435,1189,434,374,434,375,435,384,435,1190,434,1194,430,375,435,375,434,375,435,1189,435,1194,430,388,430,375,435,374,434,375,409,401,430,380,429,379,430,375,435,384,434,375,409,401,409,401,431,379,430,1194,431,379,430,380,430,384,435,374,408,401,409,400,430,379,430,1194,409,401,431,379,431,387,430,375,434,1194,430,1194,409,1215,434,1194,430,1194,431,1194,409,1224,435,1194,431,379,430,375,435,1194,430,375,435,375,434,375,408,408,409,400,430,379,431,375,435,375,409,1219,430,1194,431,379,430,388,430,1194,431,379,430,375,435,375,435,375,404,1219,434,375,409,1228,430,375,434,375,435,1194,430,375,434,375,409,400,409,400,430,387,430,379,431,1194,430,379,431,375,435,375,435,375,405,405,430,387,431,379,430,375,435,375,434,375,405,405,430,379,430,379,405,409,434,375,408,400,405,405,430,379,430,375,435,375,409,401,405,413,405,405,430,379,405,401,409,401,409,401,404,404,430,379,430,388,405,405,405,400,434,375,405,405,404,404,430,1194,404,405,431,388,430,1194,405,405,430,379,431,1194,404,405,431,379,405,400,409,400,409,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    Fuji 2014 Power off
    3303,1618,435,375,431,379,430,1194,435,375,430,1194,435,375,430,379,430,388,430,1193,434,1189,435,375,435,375,430,379,430,1194,434,1190,435,384,434,375,435,375,430,379,430,375,435,374,434,375,435,375,431,388,431,380,430,375,434,375,435,375,434,1190,434,375,435,375,430,388,430,379,430,375,435,375,435,375,409,1215,435,376,435,375,431,388,430,380,431,1194,430,379,430,375,434,374,409,401,409,400,430,388,430,1194,409,401,430,1194,409,1214,435,1194,430,1193,434,1189,435,1194,430,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

    ######################################

    LGo
    8962,4168,534,1580,502,532,509,530,508,531,509,1574,510,528,510,530,509,536,502,532,507,534,507,530,509,534,500,534,508,533,505,532,508,538,498,1577,509,1577,506,1572,509,1580,505,529,507,1570,509,535,504,531,509,532,507,531,508,1573,509,1575,507,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    8942,4184,535,1574,508,529,509,530,508,536,508,1583,510,531,509,531,504,534,505,1580,509,1570,508,532,507,534,508,529,507,530,505,532,507,531,507,534,501,537,508,533,504,532,508,531,505,1577,506,535,508,1571,509,530,508,533,507,529,508,1575,508,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    10001000000001001001000011011

    LGh
    10001000110000000000010100011
    8520,4040,500,1520,420,580,480,520,400,600,400,1600,460,540,460,520,420,580,420,580,480,520,480,520,460,540,460,540,400,580,420,580,460,540,420,580,480,520,440,1560,400,1600,460,540,400,1600,440,560,400,1600,460,1540,400,600,460,520,420,580,460,

    8520,4040

    ,500,1520
    ,420,580
    ,480,520
    ,400,600
    ,400,1600
    ,460,540
    ,460,520
    ,420,580

    ,420,580
    ,480,520
    ,480,520
    ,460,540
    ,460,540
    ,400,580
    ,420,580
    ,460,540

    ,420,580
    ,480,520
    ,440,1560
    ,400,1600
    ,460,540
    ,400,1600
    ,440,560
    ,400,1600

    ,460,1540
    ,400,600
    ,460,520
    ,420,580
    ,460,

    ##################

    Sams TV PWR 135pulses
    4240,4180,520,1520,540,1520,540,1520,540,480,520,480,540,480,520,480,540,480,520,1520,540,1520,540,1520,540,480,520,480,540,480,520,480,540,480,520,480,540,1520,540,480,520,480,540,480,520,480,540,480,520,500,520,1540,520,480,540,1520,520,1540,520,1540,520,1540,520,1540,520,1520,540,43760,4240,4160,540,1520,540,1520,540,1520,540,480,520,480,520,500,520,500,520,480,520,1540,520,1540,520,1540,520,480,540,480,520,480,540,480,520,480,540,480,520,1520,540,480,540,460,540,480,540,460,540,480,520,480,540,1520,540,480,520,1520,540,1520,540,1520,540,1520,540,1520,540,1520, 540, 0

    not RCA 
    4240,4180

    ,520,1520
    ,540,1520
    ,540,1520
    ,540,480
    ,520,480
    ,540,480
    ,520,480
    ,540,480

    ,520,1520
    ,540,1520
    ,540,1520
    ,540,480

    ,520,480
    ,540,480
    ,520,480
    ,540,480

    ,520,480
    ,540,1520
    ,540,480
    ,520,480
    ,540,480
    ,520,480
    ,540,480
    ,520,500

    ,520,1540
    ,520,480
    ,540,1520
    ,520,1540
    ,520,1540
    ,520,1540
    ,520,1540
    ,520,1520

    ,540,43760

    ,4240,4160
     ...

    orig:
    ,4510,4503,549,1685,549,1686,549,1685,550,568,549,568,548,566,548,568,547,567,549,1686,548,1687,549,1684,551,566,549,569,548,568,548,566,551,567,549,566,550,1685,524,592,548,568,548,568,548,566,548,566,547,568,548,1685,550,568,549,1686,548,1684,551,1684,551,1686,549,1687,547,1686,549,14037,4506,4504,549,1686,550,1686,548,1686,549,567,548,567,549,567,549,566,549,567,549,1686,549,1685,550,1686,549,566,551,566,548,568,549,566,549,568,548,566,549,1686,550,566,549,566,549,568,547,567,548,568,548,568,548,1683,549,567,549,1686,549,1685,549,1686,549,1686,549,1687,547,1686,549,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    valid copy:
    ,4462,4470,582,1711,582,1710,581,1682,562,639,579,588,583,615,551,613,587,615,552,1711,561,1737,580,1684,559,639,582,613,557,614,582,613,557,612,583,612,549,1715,534,666,555,605,589,613,558,612,580,587,605,592,551,1712,584,614,582,1711,556,1709,581,1684,582,1710,581,1712,579,1682,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

    ########################
    Pion DVD
    pwr:8561,4247,555,1570,556,1571,555,512,556,512,554,513,555,1570,555,511,555,1571,557,510,556,510,555,1570,556,1570,556,1570,556,512,556,1570,556,509,557,1570,557,511,556,510,556,1570,557,1569,557,510,557,511,556,1570,558,509,558,1568,558,1569,558,509,557,509,559,1568,559,1568,559,504,558,25223,8567,4243,562,1565,560,1567,559,1567,559,1567,561,506,560,1568,559,509,558,1568,559,509,558,508,560,508,559,509,558,1568,560,507,560,
    up:8400,4160,540,1520,540,1540,540,500,520,500,520,520,540,1540,540,480,560,1520,540,500,520,520,520,1540,540,1520,540,1540,540,480,560,1520,540,500,540,1520,560,480,540,500,540,1520,540,1540,540,500,540,480,540,1540,540,500,520,1540,540,1540,540,480,520,520,520,1540,520,1560,520,520,520,24780,8400,4160,520,1560,500,1560,520,1560,540,1540,540,480,520,1560,540,500,500,1560,520,520,500,520,520,520,520,520,520,1540,520,520,560,1500,520,520,540,500,540,1520,540,500,540,500,560,1500,520,1560,500,1580,520,1540,520,1560,500,540,520,1540,540,1540,500,520,520,520,540,480,520,520, 520, 0
    down:8400,4160,500,1580,500,1560,540,500,560,480,520,500,560,1520,520,520,500,1560,540,500,540,480,520,1560,540,1540,540,1520,560,480,540,1540,540,480,540,1540,540,500,540,480,540,1540,540,1540,520,500,540,500,540,1520,540,500,540,1520,560,1520,540,500,540,480,560,1520,540,1540,540,480,560,24740,8400,4160,560,1520,540,1540,540,1520,540,1540,540,500,540,1520,540,500,540,1520,540,500,540,500,540,480,540,500,540,1520,560,480,540,1540,540,480,540,1540,540,1540,540,480,540,500,500,1580,520,1540,540,1540,540,1520,540,500,540,500,500,1560,520,1560,500,520,520,520,540,500,500,520, 520, 0

    #############################
    Toy car :8bit
    3019,243,808,259,797,256,794,259,812,242,835,258,823,256,835,733,343,8118,
    3044,231,799,255,796,257,824,230,811,255,821,258,822,257,834,258,823,3445,
    3029,245,810,243,807,246,809,244,822,245,836,242,833,245,845,247,824,3457,
    3045,230,821,233,823,230,824,228,838,229,847,232,849,229,855,236,835,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

    3031,243,797,244,833,722,318,245,821,245,835,244,837,242,833,259,822,

    ################################################
    carCD:
    pwr:
    ir_read_icp
    8946,4475,556,551,570,549,541,641,488,549,570,544,546,577,551,553,572,544,546,1684,575,1668,554,1733,483,1684,573,1669,553,1671,547,1683,574,1671,552,552,569,545,546,639,489,552,571,1671,553,552,571,550,541,576,553,1670,548,1683,573,1671,554,1670,548,577,550,1674,546,1683,573,1673,576,6922,8945,2228,571,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    irtestraw
    8760,4380,560,520,580,520,580,500,580,520,580,520,560,540,560,520,580,520,560,1620,580,1620,560,1620,580,1620,580,1620,560,1620,580,1600,580,1620,560,540,560,520,580,520,560,540,560,1640,540,540,560,520,580,520,560,1640,560,1620,560,1640,560,1620,580,540,540,1620,580,1620,560,1640,540,39000,8780,2180,560,

    NEC
    8760,4380

    ,560,520
    ,580,520
    ,580,500
    ,580,520
    ,580,520
    ,560,540
    ,560,520
    ,580,520

    ,560,1620
    ,580,1620
    ,560,1620
    ,580,1620
    ,580,1620
    ,560,1620
    ,580,1600
    ,580,1620

    ,560,540
    ,560,520
    ,580,520
    ,560,540
    ,560,1640
    ,540,540
    ,560,520
    ,580,520

    ,560,1640
    ,560,1620
    ,560,1640
    ,560,1620
    ,580,540
    ,540,1620
    ,580,1620
    ,560,1640

    ,540,39000,8780,2180,560,

    v+:
    8800,4380,560,520,580,520,580,520,560,520,580,520,560,540,560,520,580,520,560,1620,580,1620,560,1620,580,1620,560,1640,560,1620,580,1600,580,1640,560,1600,580,540,540,540,560,1640,560,520,580,520,560,540,560,520,580,520,560,1620,580,1620,560,520,580,1620,560,1620,580,1620,560,1640,560,38980,8780,2180,580,
    v-:
    8740,4380,540,540,600,500,560,540,540,540,560,540,560,540,540,540,560,540,560,1620,560,1640,560,1620,560,1620,580,1640,560,1620,560,1620,580,1700,480,1640,520,580,540,540,560,1640,540,1640,560,540,540,540,560,540,540,560,540,1640,540,1660,560,520,560,540,560,1620,560,1640,560,1640,540,39000,8780,2180,560,
    +:
    8760,4400,540,560,540,540,560,540,540,540,560,540,560,540,540,540,540,560,540,1660,520,1680,520,1660,560,1620,560,1640,540,1640,540,1660,540,1660,580,500,560,540,560,1620,540,1660,520,560,540,560,540,1660,520,560,560,1640,520,1680,500,580,560,540,520,1660,520,1680,520,560,560,1640,540,39000,8740,2220,540,
    -:
    8800,4380,560,520,580,520,560,540,540,540,600,500,560,540,580,500,600,500,560,1620,580,1620,560,1640,520,1660,580,1620,540,1640,560,1620,580,1640,540,1640,560,540,540,1700,500,1620,600,500,560,540,560,1620,540,580,540,540,560,1640,540,540,560,520,500,1700,560,1640,540,540,560,1700,480,39000,8780,2180,560,
    1:
    8800,4380,560,540,560,540,540,540,560,540,560,540,540,540,560,540,560,540,540,1640,540,1640,560,1660,520,1660,560,1620,560,1640,520,1660,560,1640,520,1680,540,1640,540,1640,600,500,560,1620,540,560,540,560,540,540,540,560,540,560,520,560,540,1660,520,560,540,1680,500,1680,520,1660,540,39000,8760,2220,500,
    2:
    8840,4380,520,560,560,540,520,560,560,540,560,540,540,540,560,540,560,540,520,1660,540,1660,560,1620,520,1680,540,1640,560,1640,540,1640,540,1660,560,540,520,1660,560,540,560,540,540,1640,540,560,540,540,560,540,560,1620,560,540,540,1640,560,1660,520,580,520,1660,540,1640,540,1640,560,38980,8800,2180,520,
    3:
    8800,4380,540,540,540,580,500,580,560,540,540,560,520,540,540,560,540,560,540,1660,520,1660,520,1680,540,1640,540,1640,540,1660,520,1680,560,1620,560,540,560,1620,540,1660,520,580,580,1620,500,580,540,560,540,560,520,1660,520,580,540,540,560,1640,520,560,540,1660,520,1660,560,1640,540,38980,8780,2200,540,

    #######################
    dport AC
    8760,4360,620,1620,620,1580,660,540,620,1600,640,540,620,1600,620,1620,620,560,600,560,620,540,620,540,620,1620,620,540,620,540,640,540,620,540,620,540,620,560,620,540,620,540,620,560,620,1600,620,1620,620,540,620,560,620,540,620,540,620,540,620,1620,620,540,620,1620,620,540,620,560,620,1600,620,560,620,19460,620,1620,620,540,640,540,620,540,620,1620,620,540,620,540,620,540,640,540,620,540,620,540,620,560,620,540,620,1620,620,540,620,540,620,560,620,540,620,540,620,540,640,540,620,540,620,540,620,560,620,540,620,540,620,540,620,560,620,540,620,540,620,540,640,540,620,
    8740,4380,620,1600,620,1620,620,540,620,560,600,560,620,1600,620,1620,620,540,620,560,620,540,620,540,620,1620,620,540,620,560,600,560,620,540,620,540,620,560,620,540,620,540,620,560,620,1600,620,1620,620,540,620,560,600,560,620,540,620,560,600,1620,620,540,620,1620,620,540,620,560,620,1600,620,560,620,19460,620,1620,620,560,600,560,620,540,620,1620,620,540,620,540,620,560,600,560,620,540,620,540,620,560,600,560,620,1620,620,540,620,540,620,560,620,540,620,540,620,560,600,560,620,540,620,540,620,560,600,560,620,540,620,560,600,560,620,540,620,540,620,560,600,1620,620,