2015-09-14

RF433.95 Remote Control

ON:

OFF:
7347,191,183,191,183,191,184,190,183,190,184,190,185,190,184,189,184,190,185,190,185,190,184,189,1889,190,374,378,186,378,185,379,185,189,375,378,187,372,187,188,376,188,376,377,186,377,187,377,187,187,376,377,187,186,376,377,188,376,188,376,188,186,377,186,378,186,378,186,378,186,379,184,379,374,190,374,190,184,380,373,191,184,380,184,380,184,380,373,192,183,380,373,191,373,192,183,381,373,191,373,191,373,192,182,381,183,381,373,191,182,381,372,192,373,192,373,192,372,192,372,192,182,382,183,382,182,381,372,192,182,381,372,192,372,192,372,192,372,193,371,191,372,192,372,192,366,192,371,192,182,382,371,192,182,382,182,

182,192,372,192,372,381,183,381,183,191,373,381,182,381,183,191,373,380,184,380,184,190,374,380,184,380,185,190,374,189,374,380,185,379,185,379,185,189,375,189,375,378,185,379,185,188,375,188,375,378,186,188,375,189,375,189,375,378,186,378,186,188,376,378,187,378,186,188,376,378,186,378,187,378,187,188,376,188,376,378,187,188,376,377,187,377,187,377,186,377,187,377,187,187,377,187,377,187,377,377,187,187,377,377,187,377,188,376,187,377,188,376,188,377,188,376,187,377,187,376,188,186,378,375,188,186,378,186,7763,187,187,188,186,187,187,186,186,188,187,187,187,187,187,187,187,187,187,187,187,187,187,187,1891,187,376,377,187,187,376,186,376,377,187,376,186,187,376,376,187,377,187,187,376,376,187,376,187,186,376,377,188,376,187,187,377,187,377,376,188,376,187,376,186,186,377,186,377,376,188,376,188,186,377,185,378,375,188,186,377,186,377,187,378,376,188,376,188,187,377,376,189,376,189,185,378,376,189,375,183,376,189,186,378,186,378,375,189,186,378,376,188,375,188,376,189,375,185,376,189,186,379,185,378,186,378,375,189,185,378,375,189,375,189,374,185,375,189,376,189,375,189,375,189,375,189,375,190,185,379,374,189,185,378,185,7765,186,187,186,187,186,187,186,188,186,188,186,188,186,188,186,188,186,188,186,188,186,188,186,1892,186,377,376,188,186,377,187,377,376,188,376,188,185,378,375,189,375,188,186,377,375,188,376,188,186,378,375,188,376,189,185,378,186,377,375,189,375,189,375,188,186,378,186,379,375,189,375,189,186,378,185,378,374,188,185,378,185,378,186,378,375,189,375,] 184,379,184,379,184,190,374,380,184,190,374,189,374,379,184,380,185,379,185,378,185,378,185,379,185,189,375,189,374,379,185,188,375,378,186,189,375,189,375,378,186,378,186,189,376,378,186,377,186,378,185,189,375,188,376,378,186,188,376,378,187,378,186,378,187,377,186,377,187,187,376,188,376,187,376,377,187,187,377,377,187,376,186,377,188,376,187,377,188,377,188,377,188,376,188,376,188,187,377,376,188,186,377,187,7763,188,187,188,186,187,187,187,186,187,187,188,187,188,187,187,187,187,187,187,187,187,187,187,1891,377,187,187,376,187,376,187,376,377,186,377,187,186,376,377,187,188,377,376,187,186,377,376,187,376,188,376,187,376,188,376,188,186,376,376,188,186,376,186,377,376,188,376,187,375,187,376,188,376,188,376,188,187,377,186,377,375,188,186,378,375,188,186,378,186,378,376,188,376,188,186,378,376,189,376,189,376,189,186,379,186,378,375,189,185,378,375,189,375,189,375,189,376,188,376,189,185,378,185,379,185,378,375,189,185,379,375,189,375,189,375,188,376,189,375,189,375,189,375,189,375,189,374,190,185,378,375,190,185,379,184,7765,186,188,186,188,186,188,186,188,186,188,187,188,185,188,186,188,185,188,186,188,186,188,186,1892,376,188,185,378,186,378,186,377,376,188,376,188,186,377,375,188,186,377,376,188,186,378,375,188,375,190,374,189,375,189,375,189,185,377,375,189,185,378,186,378,375,189,375,189,375,189,375,188,375,189,375,189,186,378,185,378,375,188,185,378,375,189,185,379,185,379,375,189,376,188,185,379,375,189,375,189,375,190,185,379,185,379,374,190,184,379,375,] 7347,191,183,191,183,191,184,190,183,190,184,190,185,190,184,189,184,190,185,190,185,190,184,189,1889,190,374,378,186,378,185,379,185,189,375,378,187,372,187,188,376,188,376,377,186,377,187,377,187,187,376,377,187,186,376,377,188,376,188,376,188,186,377,186,378,186,378,186,378,186,379,184,379,374,190,374,190,184,380,373,191,184,380,184,380,184,380,373,192,183,380,373,191,373,192,183,381,373,191,373,191,373,192,182,381,183,381,373,191,182,381,372,192,373,192,373,192,372,192,372,192,182,382,183,382,182,381,372,192,182,381,372,192,372,192,372,192,372,193,371,191,372,192,372,192,366,192,371,192,182,382,371,192,182,382,182,7768,183,191,183,191,183,191,183,191,183,191,183,190,183,192,182,190,183,191,183,191,183,191,183,1895,184,380,373,191,373,191,373,191,184,380,373,191,372,191,183,380,183,381,372,191,373,191,373,191,183,381,373,191,183,380,372,191,372,191,372,191,183,381,183,381,183,381,183,381,183,381,183,381,372,192,372,191,183,380,372,190,183,381,183,381,183,381,372,191,183,381,373,192,373,192,183,381,373,189,372,191,372,192,183,381,182,381,373,192,183,382,372,192,373,192,372,191,372,192,372,192,182,382,183,381,182,381,372,192,183,381,372,192,372,191,372,192,372,192,371,192,372,192,372,192,371,192,372,192,182,381,371,192,182,382,182,7767,183,191,183,191,183,190,184,191,183,191,183,191,183,190,184,191,184,190,182,191,183,191,183,1895,183,381,372,190,374,191,373,190,183,379,373,191,373,191,183,380,183,379,373,191,373,191,373,190,182,381,373,191,184,381,373,190,373,190,373,] 373,190,373,380,184,380,184,380,184,190,373,190,374,379,184,190,373,190,374,189,374,190,374,190,374,189,374,189,374,189,375,189,374,379,185,379,185,189,375,378,185,379,185,188,376,379,185,379,186,378,186,189,376,188,375,379,186,188,375,378,186,378,186,377,186,377,187,378,187,187,376,188,376,188,376,377,187,188,376,377,187,377,186,377,187,377,187,377,187,377,187,377,187,376,187,376,187,186,377,377,188,187,377,187,7763,188,186,187,187,187,186,188,186,187,187,188,186,187,186,187,186,187,186,188,187,188,187,188,1891,377,186,187,376,377,186,187,376,377,187,188,376,187,376,377,187,377,187,187,377,376,188,186,377,376,187,187,377,187,377,376,187,376,188,376,187,186,377,186,377,376,188,186,377,186,377,187,377,187,377,187,377,186,377,186,377,187,377,186,377,376,188,375,188,187,377,376,188,376,188,187,378,376,188,376,188,376,188,186,378,186,377,376,188,185,377,376,188,376,188,376,188,376,188,376,189,186,378,186,378,186,377,376,189,186,379,375,188,375,189,375,188,375,189,375,189,375,189,375,190,374,189,375,189,185,379,375,189,185,379,184,7765,186,187,186,187,187,188,186,188,186,188,186,188,186,188,186,187,186,188,186,188,186,188,186,1893,375,188,187,377,376,188,186,377,375,188,186,377,186,378,376,187,376,188,186,378,376,188,186,378,375,188,185,377,186,378,376,186,375,189,375,189,185,378,186,377,375,189,186,378,186,378,186,379,185,378,186,378,186,377,186,377,186,378,186,378,375,188,375,188,186,377,376,189,375,189,186,377,375,189,375,189,375,189,186,379,186,379,375,188,185,379,375,] 
462,446,157,141,462,142,462,142,462,446,159,446,158,141,463,446,159,445,160,141,462,140,463,141,463,141,4720,446,158,445,159,446,160,445,159,445,158,141,463,140,463,445,159,141,462,141,462,140,464,141,463,445,158,141,465,140,463,141,463,445,159,446,159,140,464,444,160,444,159,141,463,140,465,140,464,140,4721,444,160,444,159,445,158,446,159,444,160,140,464,141,463,444,160,140,464,139,465,139,463,141,464,444,160,140,464,139,464,140,464,445,160,444,160,139,464,445,161,443,160,139,465,139,463,140,465,139,4723,444,159,445,160,444,160,444,160,443,160,140,465,140,465,443,160,139,464,139,466,139,464,139,465,444,160,140,466,138,465,139,464,445,160,443,161,139,466,442,160,444,161,139,465,138,466,139,]

2015-08-10

ATmega328 + OLED 0.96" I2C 128X64 Display Module

Refs:
https://code.google.com/p/u8glib/ https://github.com/olikraus/u8glib/wiki/avr
https://bintray.com/olikraus/u8glib/AVR

compiler flags:
  • -ffunction-sections
  • -fdata-sections

linker flags:

 -Wl,--gc-sections

Driver IC: SSD1306
SSD1306_I2C_ADDRESS   0x3C

2015-07-22

ESP8266 WIFI



Ai-Thinker Technology Co.,Ltd.

ready
WIFI CONNECTED
WIFI GOT IP
AT+GMR

AT version:0.40.0.0(Aug 8 2015 14:45:58)
SDK version:1.3.0
Ai-Thinker Technology Co.,Ltd.
Build:1.3.0.2 Sep 11 2015 11:48:04
OK

AT+UART_DEF=57600,8,1,0,0
AT+CWMODE=3
AT+CWJAP="Guanjou","012345"

AT+CIPSTART="TCP","google.com",80

CONNECT

OK
AT+CIPSEND=18


OK
> GET / HTTP/1.0
09 0a
Recv 20 bytes

SEND OK

+IPD,479:HTTP/1.0 302 Found
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Location: http://www.google.com.ua/?gfe_rd=cr&ei=wtSuV93MGqHs8weEsoGoCw
Content-Length: 262
Date: Sat, 13 Aug 2016 08:05:22 GMT

302 Moved

302 Moved

The document has moved
CLOSED

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

OK
AT+UART_DEF=57600,8,1,0,0


OK
\0xf8\0xfe\0xf8\0x80AT


OK
AT+CWMODE=3


OK
AT+CWJAP="Guanjou","jf012345"

WIFI DISCONNECT
WIFI CONNECTED
WIFI GOT IP

OK
AT+CIPSTART="TCP","google.com",80

CONNECT

OK
AT+CIPSEND=18


OK
>
Recv 18 bytes

SEND OK

+IPD,479:HTTP/1.0 302 Found
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Location: http://www.google.com.ua/?gfe_rd=cr&ei=lteuV8aYJcHR8geNvo6oBA
Content-Length: 262
Date: Sat, 13 Aug 2016 08:17:26 GMT

302 Moved

302 Moved

The document has moved
CLOSED

ready
WIFI CONNECTED
WIFI GOT IP
AT+GMR

AT version:1.1.0.0(May 11 2016 18:09:56)
SDK version:1.5.4(baaeaebb)
compile time:May 20 2016 15:06:44
OK

https://developer.mbed.org/users/sschocke/code/WiFiLamp/wiki/Updating-ESP8266-Firmware



http://allaboutee.com/2015/01/20/esp8266-android-application-for-arduino-pin-control/

Default Baud rate is 115200
150mA

Connect CH_PD to +3.3V via 10K pullup resistor



[System Ready, Vendor:www.ai-thinker.com]

AT

OK

# allow multiple connections
AT+CIPMUX=1

# run a TCP server on port 80
AT+CIPSERVER=1,80
 
AT+CIPSEND=0,50
HTTP/1.1 200 OK



1
2
3
AT+CIPCLOSE=0


Recv 50 bytes

busy s...

SEND OK
AT+CIPCLOSE=0

0,CLOSED

OK
AT+CIFSR

+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"1a:fe:34:f9:41:a4"

OK

AT+CIPSEND=;
AT+CIPCLOSE
AT+CIPSERVER=1,80
AT+CIFSR

+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"1a:fe:34:f9:41:a4"


AT+CWLAP 
+CWLAP:(3,"ne",-73,"58:6d:8f:bf:23:14",12)
+CWLAP:(3,"ne",-73,"58:6d:8f:bf:23:14",12)
+CWLAP:(3,"ne",-73,"58:6d:8f:bf:23:14",12)

OK
AT+CWMODE=? 
+CWMODE:(1-3)

OK
AT+CWMODE? 
+CWMODE:1

OK
AT+CWMODE=3

OK
AT+CWSAP? 
+CWSAP:"AI-THINKER_A54B8A","",1,0

OK
AT+CWLIF 
192.168.4.2,cc:f9:e8:fb:ad:45

OK
AT+RST 

OK

 ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x40100000, len 816, room 16 
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8 
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12 
tail 4
chksum 0xcf
csum 0xcf

2nd boot version : 1.2
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size : 4Mbit
jump to run user1


 
do not try this! AT+IPR=57600 
temporary set baud AT+CIOBAUD=57600 
 
 
AI-THINKER Firmware
http://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=984&extra=page%3D1

MEM CHECK FAIL!!!
\0xe4rl\0x8e\0x82r\0xf4
Ai-Thinker Technology Co. Ltd.

invalid
AT


OK
AT+GMR

AT version:0.25.0.0(Jun  5 2015 16:27:16)
SDK version:1.1.1
Ai-Thinker Technology Co. Ltd.
Jun 23 2015 23:23:50

OK

2015-07-03

K-Line Bluetooth adapter V.0.1

The version described below is 0.1.
Next version is 1.0 (ATmega8 5V 8MHz)




















Delco Suite (Daewoo Research, SensDiag, OpenDiagFree):
22:22:56.87  Write F4 57 01 00 B4
22:22:56.89  Read  F4 57 01 00 B4
22:22:56.97  Read  F4 92 01 07 41 00 00 00 80 81 61 F5 F7 FE 19 00 69 00 00 D8 3F 81 79 80 00 09 5A 5A 00 29 19 3B 23 00 00 00 00 20 00 04 2A 5B 80 00 00 CE 00 00 00 00 80 00 08 00 01 01 00 20 06 00 00 E4 98 52
ref: http://lanos.com.ua/forum/topic/58135-programma-dlya-raboty-s-ebu-gm-iefi6/page-40
 
echo -en '\xF4\x57\x01\x00\xB4\xF4\x92\x01\x07\x41\x00\x00\x00\x80\x81\x61\xF5\xF7\xFE\x19\x00\x69\x00\x00\xD8\x3F\x81\x79\x80\x00\x09\x5A\x5A\x00\x29\x19\x3B\x23\x00\x00\x00\x00\x20\x00\x04\x2A\x5B\x80\x00\x00\xCE\x00\x00\x00\x00\x80\x00\x08\x00\x01\x01\x00\x20\x06\x00\x00\xE4\x98\x52' >/dev/ttyUSB1

stty -F /dev/ttyUSB0 speed 9600 cs8 -cstopb -parenb -icanon min 1 time 1  
while read -rs -n 1 c; do echo $c | od -x; done < /dev/ttyUSB0

0000000 abf4 f480 000a
0000005
0000000 0aab
0000002
0000000 0a80
0000002



http://pcmhacking.net/forums/viewtopic.php?f=31&t=592
pl2303 custom baud

https://www.drive2.ru/l/3297671/
HobDrive?
http://vagcom.com.ua/programmy-dlya-lanos-sens-daewoo-chevrolet/

>244,86,1,181,
F4 56 01 B5
244 86 1 181

stty -F /dev/ttyUSB0 speed 9600 cs8 -cstopb -parenb -icanon min 1 time 1
while read -rs -n 1 c; do echo $c | xxd -p; done < /dev/ttyUSB0
echo -en 'A' > /dev/ttyUSB1  
echo -en '\x41' > /dev/ttyUSB1
while true; do cat -v < /dev/ttyUSB0; done
while true; do read -n 1 LINE < /dev/ttyUSB0; echo $LINE | xxd -p; done
 while read -rs -n 1 c; do echo $c | od -x; done < /dev/ttyUSB0

f4ab010a
b50a
7d0a
550a

http://www.oocities.org/ecmguy.geo/diagnostics/baud8192.html
The 8192 GM data format is asynchronous serial data the same as your PC is capable of processing, The 8192 baud rate is non-standard, but you can set the PC to a close enough so that the PC will accommodate the error.

GM started using the 8192 baud OBD-I interface in 1986 and continued using it widely until 1995 when a universal interface and protocol was mandated by SAE (OBD-II). The OBD-I interface on GM cars is a proprietary GM interface.

8192 (10400?)

M - K-Line
A - GND
H,G - +12V
















Soft&Manuals http://slavuta-club.info/forum/index.php?topic=11181


http://open.e-voron.dp.ua/usb_k_l_line_adapter/
http://open.e-voron.dp.ua/usb_k_l_line_adapter/


типовые параметры Ланос 1.5 на холостом ходу:

1 Идентификация калибровки 1857
2 Температура охлаждающей жидкости 95 °С
3 Температура воздуха 16 °С
4 Давление во впускном коллекторе 34,7 КПа
5 Атмосферное давление 99,9 КПа
6 Разрежение во впускном коллекторе 64,9 КПа
7 Напр. датч. полож. дроссельной заслонки 0,54 В
8 Частота вращения коленвала 825 об/мин
9 Выходное напряжение датчика кислорода 807 мВ
10 Скорость автомобиля 0 км/час
11 Выходное напряжение датчика кислорода 0 мВ
12 Давление кондиционера -128 КПа
13 Темп. наддува 59 °С
14 Напряжение бортсети (питания ЭБУ) 14,2 В
15 Регулировка CO (с разомкн. петлей) 128
16 Угол опережения зажигания 3,9 °пкв
17 Желаемое положение РДВ 25 шаг
18 Фактическое положение РДВ 25 шаг
19 Желаемая частота вращ. коленвала 831 об/мин
20 Длительность импульса впрыска 1,21 мс
21 Соотношение воздух/топливо 14,6
22 Обучение блока 120
23 Номер яч. памяти BLM, регулирующей подачу топлива 0
24 Переменная интегратора замкнутой петли топл. 128
25 Coolant temp. switch да
26 Высокая скорость вентилятора нет
27 Соленоид кондиционера нет
28 Низкая скорость вентилятора да
29 Выключатель кондиционера нет
30 Топливный насос да
31 Отсечка топлива нет
32 Флаг полевого обслуживания нет
33 Система впуска переменной геометрии нет
34 Соленоид продувки вкл. нет
35 Дроссель закрыт да
36 Отсечка топлива при торможении нет
37 Обр. связь по кислороду (1-замкнута, 0-разомкнута) да
38 Обучение разрешено да
39 Богатая/бедная смесь (1-богатая, 0-бедная) нет
40 Перегрев дожигателя нет
41 Холостой ход да
42 Низкие обороты да
43 Сброс перем. интегратора петли топл. нет
44 Запрос сброса РХХ нет
45 Сброс РХХ нет
46 Датчик O2 готов к работе да
47 Нейтральная передача нет
48 Кондиционер нет
49 Двигатель регулятора холостого хода нет
50 Запрос кондиционера от водителя нет
51 Запрос включения вентилятора нет
52 Октановое число 95

еще  https://yadi.sk/i/dF17ZJO5jMcUd




http://www.chiptuner.ru/content/kline
 

http://avtosxema.com/shema/321-samyy-prostenkiy-k-line-adapter-na-dvuh-tranzistorah.html


Check It 3.0 :

 
 
 






http://www.getchip.net/posts/adapter-usb-to-k-line-na-baze-atmega8-48-88/




http://www.drive2.ru/l/288230376152371443/#post

http://www.drive2.ru/l/993239/


https://www.drive2.ru/c/2032328/

https://www.drive2.ru/l/1426462/

2015-05-25

ATmega8 + HD44780 LCD

 

Program:     950 bytes (11.6% Full)
(.text + .data + .bootloader)

Data:         26 bytes (2.5% Full)
(.data + .bss + .noinit)

mega8_lcd.zip

Howtos:
HD44780 instruction set
Arduino Character LCD Tutorial
Hitachi HD44780 LCD controller https://www.sparkfun.com/datasheets/LCD/HD44780.pdf http://homepage.hispeed.ch/peterfleury/avr-software.html#libs
i2cmaster.zip lcdlibrary.zip uartlibrary.zip

http://www.protostack.com/blog/2010/04/character-lcd-displays-part-2/
http://www.edaboard.com/thread265706.html
http://www.avrfreaks.net/forum/interfacing-2x16-lcd-atmega16-lcd-jhd162a

2015-02-12

USB

root@office:/usr# lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 2: Dev 7, If 0, Class=Vendor Specific Class, Driver=, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 2: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M

root@office:~# lsusb
Bus 005 Device 007: ID 0403:0000 Future Technology Devices International, Ltd H4SMK 7 Port Hub

usbreset:
http://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line

sudo su -

stty -F /dev/ttyUSB0 speed 9600 cs8 -cstopb -parenb -echo 
 
echo -en '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' > /dev/ttyUSB0
 
while read -r line
do
  echo -en $line > /dev/ttyUSB0
done < "$1" 

stty -F /dev/ttyUSB0 speed 9600 cs8 -cstopb -parenb
while true; do         read -n 1 LINE < /dev/ttyUSB1;         echo $LINE | xxd -p; done
 
stty -F /dev/ttyUSB0 9600 cs8 -cstopb -parenb -icanon min 1 time 1
while true; do
        cat -v < /dev/ttyUSB0
done


 
while read -rs -n 1 c; do echo $c | xxd -p; done < /dev/ttyUSB0
while read -rs -n 1 c; do echo $c | od -x; done < /dev/ttyUSB0

 Text2Conv="Aa"
root@encaps-System-Product-Name:~# for letter in $(echo "$Text2Conv" | sed "s/\(.\)/'\1 /g");do printf '%x' "$letter";done
4161

openwrt

http://cyber-place.ru/download/packages/libusb_0.1.12-3_ar71xx.ipk
opkg -i ./libusb_0.1.12-3_ar71xx.ipk

https://manoftoday.wordpress.com/2007/10/11/writing-and-compiling-a-simple-program-for-openwrt/

libc - 0.9.33.2-1
libelf - 0.8.13-1
libgcc - 4.6-linaro-1

2015-02-09

SIM900A





AT+GMM

SIMCOM_SIM900A


AT+CPIN?

+CPIN: PH-NET PIN #Locked

UNLOCK:
+ http://www.geekonfire.com/wiki/index.php?title=GPRS_Shield%EF%BC%88SIM900%EF%BC%89_Firmware_Update

http://www.instructables.com/id/Using-a-SIM900A-GSMGPRS-module-in-Australia/?ALLSTEPS

fix FTDI
+ http://www.eevblog.com/forum/reviews/ftdi-driver-kills-fake-ftdi-ft232/1695/?PHPSESSID=2a52cb2f8984571712cbdefc17dcbe64
https://mrcn.st/t/ftdi_clone_tool.py

AT+CGMR

Revision:1137B03SIM900A64_ST_ENHANCE

AT+GMM

SIMCOM_SIM900 

GSM signal strength:
AT+CSQ

+CSQ: 10,0 

Уровень сигнала:
0 -115 дБл и меньше
1 -112 дБл
2-30 -110..-54 дБл
31 -52 дБл и сильнее
99 – нет сигнала.


AT+COPS?

+COPS: 0,0,"MTS UKR"  


 AT+CNUM

+CNUM: "","+380661546***",145,7,4



SMS
http://tronixstuff.com/2014/01/08/tutorial-arduino-and-sim900-gsm-modules/
Sample code to receive SMS using SIM900 and Arduino

http://www.smssolutions.net/tutorials/gsm/sendsmsat/
http://tronixstuff.com/2014/01/08/tutorial-arduino-and-sim900-gsm-modules/
http://www.expertcore.org/viewtopic.php?f=18&t=4347
AT+CMGD=1,4"); // Delete all SMS
 sendATcommand("AT+CMGF=1", "OK", 1000);    // sets the SMS mode to text
    sendATcommand("AT+CPMS=\"SM\",\"SM\",\"SM\"", "OK", 1000);    // selects the memory

    answer = sendATcommand("AT+CMGR=1", "+CMGR:", 2000);    // reads the first SMS 

AT+CMGF=OKSpecifies the input and output format of the short messages. 0 for PDU mode and 1 for text mode.








AT+IPR=9600

AT+CPMS=?

+CPMS: ("SM"),("SM"),("SM")   #read, save, receive


AT+CMGF=1  
OK

AT+CPMS="SM"

+CPMS: 6,20,6,20,6,20


AT+CMGR=1  

+CMGR: "REC READ","MTS","","14/02/26,21:16:21+08"
Otrymano 5.00 UAH, 26.02.2014. Vash balans: 9.94 UAH. Termin diji do 26.02.2015. * MMS za 1 kopiyku! Aktyvacija Super MMS: *101*206# (10,63grn)
 


AT+CMGD=1 #delete msg 1 
AT+CMGD=1,4 #delete ALL

+CMTI: "SM",1  #new msg

AT+CMGR=1  

+CMGR: "REC UNREAD","+380664989***"," 0 7 0","15/02/13,19:30:15+08"
Test2

OK  


AT+CMGL="ALL" 

+CMGL: 1,"REC READ","+380664989***"," 0 7 0","15/02/13,19:35:05+08"
Test3

+CMGL: 2,"REC UNREAD","+380664989***"," 0 7 0","15/02/13,19:35:48+08"
Tesy 


SEND:
AT+CMGS="+380664989***"
Water sensor heartbeat active.
 SIM900.print((char)26); // ASCII code of the Ctrl+z is 26
SIM900.putc(0x1A)

Send to GSM: 'ASD
GS="+380664989***" 

> ^z
+CMGS: 3

OK


 delay(100);
 SIM900.println()

ATD*101#
380664989***"


OK

+CUSD: 0,"Zaraz na Vashomu rahunku 2.98 grn. Vash tarif Taryf 'Prostyi MTS' diisny do 07.02.2016. Kil'kist' bonusiv za vhidni dzvinky 0.",64

############################33
misc:
https://github.com/ekapujiw2002/sim900-avr-gcc
http://www.blog.zapro.dk/?p=368
+ http://pixelatedpic.blogspot.nl/2013/08/simcom-sim900a-fixed.html
http://amichalec.net/2014/08/sim900a-fixed-for-europe/
http://forum.arduino.cc/index.php?topic=186374.0
+ http://amichalec.net/2014/08/sim900a-fixed-for-europe/
 
+ http://alex-exe.ru/radio/wireless/gsm-sim900-firmwar-all-in-one/

http://forums.kuban.ru/f1060/gsm_modul-_sim900a_-_kak_zastavit-_rabotat--5363026.html
http://electronix.ru/forum/index.php?s=9f70250bbf1779417aaa05d653006b83&showtopic=117351

Example of how to store your own mobile phone number into your SIM:

AT+CPBS="ON"

OK

AT+CPBW=1,"99XXXXXXXX",129,"Voice"

OK

Your phone number should now be stored. Use the AT+CNUM command to verify.

AT+CNUM

+CNUM: "Voice","99XXXXXXXX",129

OK

AT+CNUM may not return phone number on SIM based products - SIM Provider may not always program

PROBLEM: The AT+CNUM command just returns OK instead of the SIM's phone number.

SOLUTION: The +CNUM command reads a special phone book storage area reserved for the SIM's own phone numbers. The service provider may or may not store the phone number for you. If you want to read the MDN with the +CNUM command and it is not currently programmed, use the following procedure:

AT+CPBS="ON"                            # Select MSISDN(s) phone book
AT+CPBW=,,,  # Write phone number to MSISDN phone book.
AT+CPBS="SM"                            # Optionally re-select default ("SM") phone book


Another way of setting the number on the SIM can be accomplished with one command AT#SNUM which appears in MultiTech's Lxxx, H5, and G3 product user guides. For example,
AT#SNUM=1,"5554443333"

See the AT command manuals for syntax details.

For the rCell 100 Series (MTR) products, go to the Cellular -> Radio Status page and set the MDN through the UI by clicking the MDN Update button.

http://android.stackexchange.com/questions/39748/how-do-i-find-out-my-sim-number

for sim900 AT+CCIDgives CCID.e.g.89912200000280775659
The first two digits (89 in the example) refers to the Telecom Id. The next two digits (91 in the example) refers to the country code (91-India). The next two digits (22 in the example(MNC of IDEA)) refers to the network code.
 http://www.knowreviewtip.com/check-find/know-check-your-mobile-number-sim-card-no/

Incoming call:

RING

+CLIP: "+3***",145,"",," 0 7 0",0

RING

+CLIP: "+3***",145,"",," 0 7 0",0

RING

+CLIP: "+3***",145,"",," 0 7 0",0

NO CARRIER 

2015-02-08

Android tips

int lHeigh = LinearLayout.LayoutParams.MATCH_PARENT;
int lWidth = LinearLayout.LayoutParams.WRAP_CONTENT;

  Log.d(TAG, "iv.getDrawable().getBounds().width(): " + iv.getDrawable().getBounds().width());
    Log.d(TAG, "iv.getDrawable().getIntrinsicWidth(): " + iv.getDrawable().getIntrinsicWidth());
    Log.d(TAG, "iv.getMeasuredWidth(): " + iv.getMeasuredWidth());
    Log.d(TAG, "iv.getWidth(): " + iv.getWidth());

Android framework src:
http://grepcode.com/file/repo1.maven.org/maven2/org.robolectric/android-all/4.4_r1-robolectric-1/android/telephony/TelephonyManager.java#TelephonyManager.getSubscriberInfo%28%29

Syslog dump
*#9900#