baboom09 / sma-bluetooth

Automatically exported from code.google.com/p/sma-bluetooth
0 stars 0 forks source link

Message is always: "Did not find string..." #121

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I try to connect through my Raspberry Pi and a "Hama" BT adapter to the solar 
system.
The sunny explorer found two systems:
a) 4000TL-20
b) 5000TL-21

But the message is always: "Did not find string..."

hcitool scan:
Scanning ...
        00:80:25:21:8C:FF       SMA004d SN: 2130006189 SN2130006189
        00:80:25:09:4A:6A       SMA004d SN: 2100084599 SN2100084599

hciconfig:
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:1B:DC:06:24:C0  ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING PSCAN
        RX bytes:41451 acl:835 sco:0 events:676 errors:0
        TX bytes:18951 acl:450 sco:0 commands:113 errors:0

smatool.conf:
Inverter        4000TL20
BTAddress       00:80:25:21:8C:FF
BTTimeout
Password        xxxxxx
Config
File            sma.in.new
Latitude        xxxxx
Longitude       xxxxx
MySqlHost       localhost
MySqlDatabase   smatool
MySqlUser       root
MySqlPwd        xxxxx
PVOutputURL     http://pvoutput.org/service/r2/addstatus.jsp
PVOutputKey     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PVOutputSid     xxxxx

"Try to use the line 58 by this one : 7e 59 00 25 83 b4 25 25 80 00 96 07 37 1e 
00 01 00 7e ff 03 60 65
And watch what will happen."

Can you create this line for my correct BT byte?
Perhaps someone can help me?

Best regards,

Ingo

./smatool -d > log.txt:
variable=Inverter value=4000TL20
variable=BTAddress value=00:80:25:21:8C:FF
variable=BTTimeout value=
variable=Password value=1234
variable=Config value=
variable=File value=sma.in.new
variable=Latitude value=xxxxx
variable=Longitude value=xxxxxx
variable=MySqlHost value=localhost
variable=MySqlDatabase value=smatool
variable=MySqlUser value=root
variable=MySqlPwd value=xxxxxxx
variable=PVOutputURL value=http://pvoutput.org/service/r2/addstatus.jsp
variable=PVOutputKey value=xxxxxx
variable=PVOutputSid value=xxxxx
variable=Inverter value=4000TL20
variable=Code1 value=0x67
variable=Code2 value=0x6f
variable=Code3 value=0x9a
variable=Code4 value=0x36
variable=InvCode value=0x4e
variable=InvCode value=
variable=Inverter value=1700TL
variable=Code1 value=0x12
variable=Code2 value=0x1a
variable=Code3 value=0xd9
variable=Code4 value=0x38
variable=InvCode value=0x63
variable=InvCode value=
variable=Inverter value=2100TL
variable=Code1 value=0x17
variable=Code2 value=0x97
variable=Code3 value=0x51
variable=Code4 value=0x38
variable=InvCode value=0x63
variable=InvCode value=
variable=Inverter value=SB3000
variable=Code1 value=0x64
variable=Code2 value=0xc6
variable=Code3 value=0x46
variable=Code4 value=0x3b
variable=InvCode value=0x63
variable=InvCode value=
variable=Inverter value=3000TL
variable=Code1 value=0x32
variable=Code2 value=0x42
variable=Code3 value=0x85
variable=Code4 value=0x38
variable=InvCode value=0x71
variable=InvCode value=
variable=Inverter value=3000TLHF
variable=Code1 value=0x1b
variable=Code2 value=0xb1
variable=Code3 value=0xa6
variable=Code4 value=0x38
variable=InvCode value=0x83
variable=InvCode value=
variable=Inverter value=4000TL
variable=Code1 value=0x78
variable=Code2 value=0x21
variable=Code3 value=0xbf
variable=Code4 value=0x3a
variable=InvCode value=0x4e
variable=InvCode value=
variable=Inverter value=5000TL
variable=Code1 value=0x3f
variable=Code2 value=0x10
variable=Code3 value=0xfb
variable=Code4 value=0x39
variable=InvCode value=0x4e
variable=InvCode value=
variable=Inverter value=7000
variable=Code1 value=0xcf
variable=Code2 value=0x84
variable=Code3 value=0x84
variable=Code4 value=0x3a
variable=InvCode value=0x63
variable=InvCode value=
variable=Inverter value=10000TL
variable=Code1 value=0x69
variable=Code2 value=0x45
variable=Code3 value=0x32
variable=Code4 value=0x39
variable=InvCode value=0x80
variable=InvCode value=
variable=Inverter value=XXXXTL
variable=Code1 value=0x99
variable=Code2 value=0x35
variable=Code3 value=0x40
variable=Code4 value=0x36
variable=InvCode value=0x4e
variable=InvCode value=
variable=InvCode value=
variable=InvCode value=
utc=2013-04-09 19:36 local=2013-04-09 21:36 diff 2 hours
localOffset=2.000000
localOffset=2.000000 isdst=1
tzsecs=e11 3601
tzsecs=0e 11
Before todays Almanac
SELECT sunrise FROM Almanac WHERE date=DATE_FORMAT( NOW(), "%Y-%m-%d" ) 
Before Check Schema
SELECT data FROM settings WHERE value='schema' 
auto_set_dates
SELECT DATE_FORMAT( DateTime, "%Y-%m-%d %H:%i:%S" ) FROM DayData WHERE 
Inverter='4000TL20' and Serial='äö¶' ORDER BY DateTime DESC LIMIT 1
SELECT if(sunrise < NOW(),1,0) FROM Almanac WHERE date= DATE_FORMAT( NOW(), 
"%Y-%m-%d" ) 
SELECT if( dd.datetime > al.sunset,1,0) FROM DayData as dd left join Almanac as 
al on al.date=DATE(dd.datetime) and al.date=DATE(NOW()) WHERE 1 ORDER BY 
dd.datetime DESC LIMIT 1
Before close
Address 00:80:25:21:8C:FF
datefrom=2000-01-01 00:00:00 dateto=2013-04-09 21:36:00
[18] 2013-04-09 21:36:28 Waiting for string
[18] 2013-04-09 21:36:28 waiting for: 7e 1f 00 61 ff 8c 21 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00 

[18] 2013-04-09 21:36:28 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 02 00 00 04 
    00000020: 70 00 04 00 00 00 00 01 00 00 00  rr=31

[18] 2013-04-09 21:36:28 looking for: 7e 1f 00 61 ff 8c 21 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00 
[18] 2013-04-09 21:36:28 received:    7e 1f 00 61 ff 8c 21 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00 04 00 00 00 00 01 00 00 00 

[18] 2013-04-09 21:36:28 Found string we are waiting for
[19] 2013-04-09 21:36:28 Extracting
extracting invcode=04
[20] 2013-04-09 21:36:28 Sending
[20] 2013-04-09 21:36:28 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61 
    00000010: 00 00 00 00 00 00 ff 8c 21 25 80 00 02 00 00 04 
    00000020: 70 00 04 00 00 00 00 01 00 00 00  cc=31

[21] 2013-04-09 21:36:28 Waiting for string
[21] 2013-04-09 21:36:28 waiting for: 7e 22 00 5c ff 8c 21 25 80 00 00 00 00 00 
00 00 05 00 ff 8c 21 25 80 00 

[21] 2013-04-09 21:36:28 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 0a 00 6a 4a 
    00000020: 09 25 80 00 02 c0 24 06 dc 1b 00  rr=31

[21] 2013-04-09 21:36:28 looking for: 7e 22 00 5c ff 8c 21 25 80 00 00 00 00 00 
00 00 05 00 ff 8c 21 25 80 00 
[21] 2013-04-09 21:36:28 received:    7e 1f 00 61 ff 8c 21 25 80 00 00 00 00 00 
00 00 0a 00 6a 4a 09 25 80 00 02 c0 24 06 dc 1b 00 

[21] 2013-04-09 21:36:28 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 0c 00 02 00  rr=20

[21] 2013-04-09 21:36:28 looking for: 7e 22 00 5c ff 8c 21 25 80 00 00 00 00 00 
00 00 05 00 ff 8c 21 25 80 00 
[21] 2013-04-09 21:36:28 received:    7e 14 00 6a ff 8c 21 25 80 00 00 00 00 00 
00 00 0c 00 02 00 

[21] 2013-04-09 21:36:28 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1a 00 64 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 05 00 ff 8c 
    00000020: 21 25 80 00 01 01  rr=26

[21] 2013-04-09 21:36:28 looking for: 7e 22 00 5c ff 8c 21 25 80 00 00 00 00 00 
00 00 05 00 ff 8c 21 25 80 00 
[21] 2013-04-09 21:36:28 received:    7e 1a 00 64 ff 8c 21 25 80 00 00 00 00 00 
00 00 05 00 ff 8c 21 25 80 00 01 01 

[21] 2013-04-09 21:36:28 Found string we are waiting for
[22] 2013-04-09 21:36:28 Extracting
address 2 
[24] 2013-04-09 21:36:28 Sending
[24] 2013-04-09 21:36:28 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 ff 8c 21 25 80 00 03 00 05 00  cc=20

[25] 2013-04-09 21:36:28 Waiting for string
[25] 2013-04-09 21:36:28 waiting for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[25] 2013-04-09 21:36:28 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 c7 af  rr=24

[25] 2013-04-09 21:36:28 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[25] 2013-04-09 21:36:28 received:    7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 c7 af 

[25] 2013-04-09 21:36:28 Found string we are waiting for
[26] 2013-04-09 21:36:28 Extracting
[27] 2013-04-09 21:36:28 Sending
[27] 2013-04-09 21:36:28 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 ff 8c 21 25 80 00 03 00 05 00  cc=20

[28] 2013-04-09 21:36:28 Waiting for string
[28] 2013-04-09 21:36:28 waiting for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[28] 2013-04-09 21:36:28 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 c7 af  rr=24

[28] 2013-04-09 21:36:28 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[28] 2013-04-09 21:36:28 received:    7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 c7 af 

[28] 2013-04-09 21:36:28 Found string we are waiting for
[29] 2013-04-09 21:36:28 Sending
[29] 2013-04-09 21:36:28 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 ff 8c 21 25 80 00 03 00 05 00  cc=20

[30] 2013-04-09 21:36:28 Waiting for string
[30] 2013-04-09 21:36:28 waiting for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[30] 2013-04-09 21:36:28 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 22 00 5c 
    00000010: 6a 4a 09 25 80 00 00 00 00 00 00 00 05 00 6a 4a 
    00000020: 09 25 80 00 01 01 ff 8c 21 25 80 00 01 01  rr=34

[30] 2013-04-09 21:36:28 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[30] 2013-04-09 21:36:28 received:    7e 22 00 5c 6a 4a 09 25 80 00 00 00 00 00 
00 00 05 00 6a 4a 09 25 80 00 01 01 ff 8c 21 25 80 00 01 01 

[30] 2013-04-09 21:36:28 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 12 00 6c 
    00000010: 6a 4a 09 25 80 00 00 00 00 00 00 00 06 00  rr=18

[30] 2013-04-09 21:36:28 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[30] 2013-04-09 21:36:28 received:    7e 12 00 6c 6a 4a 09 25 80 00 00 00 00 00 
00 00 06 00 

[30] 2013-04-09 21:36:28 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 30 00 4e 
    00000010: 6a 4a 09 25 80 00 00 00 00 00 00 00 01 10 ff 8c 
    00000020: 21 25 80 00 00 00 00 00 00 00 00 00 00 00 00 00 
    00000030: 00 00 00 00 00 00 00 00 00 00 00 00  rr=48

[30] 2013-04-09 21:36:28 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[30] 2013-04-09 21:36:28 received:    7e 30 00 4e 6a 4a 09 25 80 00 00 00 00 00 
00 00 01 10 ff 8c 21 25 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 

[30] 2013-04-09 21:36:28 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 c7 af  rr=24

[30] 2013-04-09 21:36:28 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[30] 2013-04-09 21:36:28 received:    7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 c7 af 

[30] 2013-04-09 21:36:28 Found string we are waiting for
[31] 2013-04-09 21:36:28 Sending
sum=80
  length change from 3f to 3e diff=80 
new sum=7e
[31] 2013-04-09 21:36:28 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40 
    00000010: 24 06 dc 1b 00 00 ff ff ff ff ff ff 01 00 7e ff 
    00000020: 03 60 65 09 a0 ff ff ff ff ff ff 00 00 78 00 67 
    00000030: 6f 9a 36 00 00 00 00 00 00 01 80 00 02 00 00 00 
    00000040: 00 00 00 00 00 00 00 5d 26 7e  cc=62

[32] 2013-04-09 21:36:28 Sending
sum=80
  length change from 3b to 3a diff=80 
new sum=7e
[32] 2013-04-09 21:36:28 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3a 00 44 
    00000010: 24 06 dc 1b 00 00 ff ff ff ff ff ff 01 00 7e ff 
    00000020: 03 60 65 08 a0 ff ff ff ff ff ff 00 03 78 00 67 
    00000030: 6f 9a 36 00 03 00 00 00 00 00 80 0e 01 fd ff ff 
    00000040: ff ff ff ae 80 7e  cc=58

[33] 2013-04-09 21:36:28 Sending
sum=7e
  length change from 54 to 52 diff=7e 
new sum=7e
[33] 2013-04-09 21:36:28 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 52 00 2c 
    00000010: 24 06 dc 1b 00 00 ff ff ff ff ff ff 01 00 7e ff 
    00000020: 03 60 65 0e a0 ff ff ff ff ff ff 00 01 78 00 67 
    00000030: 6f 9a 36 00 01 00 00 00 00 02 80 0c 04 fd ff 07 
    00000040: 00 00 00 84 03 00 00 bb 6d 64 51 00 00 00 00 b9 
    00000050: ba bb bc 88 88 88 88 88 88 88 88 1f c0 7e  cc=82

[35] 2013-04-09 21:36:28 Waiting for string
[35] 2013-04-09 21:36:28 waiting for: 7e 6a 00 14 ff 8c 21 25 80 00 

[35] 2013-04-09 21:36:28 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 69 00 17 
    00000010: ff 8c 21 25 80 00 c0 24 06 dc 1b 00 01 00 7e ff 
    00000020: 03 60 65 7d 33 90 78 00 67 6f 9a 36 00 00 8a 00 
    00000030: ad 50 f5 7d 5e 00 00 00 00 00 00 01 80 01 02 00 
    00000040: 00 00 00 00 00 00 00 00 00 00 03 00 00 00 ff 00 
    00000050: 00 10 6d 00 20 01 00 8a 00 ad 50 f5 7d 5e 00 00 
    00000060: 0a 00 0c 00 00 00 00 00 00 00 03 00 00 00 01 01 
    00000070: 00 00 1d c5 7e  rr=105

sum=80length change from 69 to 66

[35] 2013-04-09 21:36:28 looking for: 7e 6a 00 14 ff 8c 21 25 80 00 
[35] 2013-04-09 21:36:28 received:    7e 66 00 1a ff 8c 21 25 80 00 c0 24 06 dc 
1b 00 01 00 7e ff 03 60 65 13 90 78 00 67 6f 9a 36 00 00 8a 00 ad 50 f5 7e 00 
00 00 00 00 00 01 80 01 02 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 ff 00 
00 10 6d 00 20 01 00 8a 00 ad 50 f5 7e 00 00 0a 00 0c 00 00 00 00 00 00 00 03 
00 00 00 01 01 00 00 1d c5 7e 

[35] 2013-04-09 21:36:28 Found string we are waiting for
[36] 2013-04-09 21:36:28 Extracting
togo=0
len=40 data=00 03 00 00 00 ff 00 00 10 6d 00 20 01 00 8a 00 ad 50 f5 7e 00 00 
0a 00 0c 00 00 00 00 00 00 00 03 00 00 00 01 01 00 00 
[38] 2013-04-09 21:36:28 Sending
[38] 2013-04-09 21:36:28 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 ff 8c 21 25 80 00 03 00 05 00  cc=20

[39] 2013-04-09 21:36:28 Waiting for string
[39] 2013-04-09 21:36:28 waiting for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[39] 2013-04-09 21:36:28 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1a 00 64 
    00000010: 6a 4a 09 25 80 00 00 00 00 00 00 00 05 00 c0 24 
    00000020: 06 dc 1b 00 03 01  rr=26

[39] 2013-04-09 21:36:28 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[39] 2013-04-09 21:36:28 received:    7e 1a 00 64 6a 4a 09 25 80 00 00 00 00 00 
00 00 05 00 c0 24 06 dc 1b 00 03 01 

[39] 2013-04-09 21:36:28 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 53 00 2d 
    00000010: ff 8c 21 25 80 00 c0 24 06 dc 1b 00 01 00 7e ff 
    00000020: 03 60 65 0e d0 78 00 67 6f 9a 36 00 01 8a 00 ad 
    00000030: 50 f5 7d 5e 00 01 00 00 00 00 02 80 0d 04 fd ff 
    00000040: 07 00 00 00 84 03 00 00 bb 6d 64 51 00 00 00 00 
    00000050: b9 ba bb bc 88 88 88 88 88 88 88 88 ee c2 7e  rr=83

sum=80length change from 53 to 52

[39] 2013-04-09 21:36:28 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[39] 2013-04-09 21:36:28 received:    7e 52 00 2c ff 8c 21 25 80 00 c0 24 06 dc 
1b 00 01 00 7e ff 03 60 65 0e d0 78 00 67 6f 9a 36 00 01 8a 00 ad 50 f5 7e 00 
01 00 00 00 00 02 80 0d 04 fd ff 07 00 00 00 84 03 00 00 bb 6d 64 51 00 00 00 
00 b9 ba bb bc 88 88 88 88 88 88 88 88 ee c2 7e 

[39] 2013-04-09 21:36:28 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 c7 af  rr=24

[39] 2013-04-09 21:36:28 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[39] 2013-04-09 21:36:28 received:    7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 c7 af 

[39] 2013-04-09 21:36:28 Found string we are waiting for
[40] 2013-04-09 21:36:28 Extracting
[41] 2013-04-09 21:36:28 Sending
[41] 2013-04-09 21:36:28 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 ff 8c 21 25 80 00 03 00 05 00  cc=20

[42] 2013-04-09 21:36:28 Waiting for string
[42] 2013-04-09 21:36:28 waiting for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[42] 2013-04-09 21:36:28 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 c7 af  rr=24

[42] 2013-04-09 21:36:28 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[42] 2013-04-09 21:36:28 received:    7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 c7 af 

[42] 2013-04-09 21:36:28 Found string we are waiting for
[43] 2013-04-09 21:36:28 Sending
[43] 2013-04-09 21:36:28 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 ff 8c 21 25 80 00 03 00 05 00  cc=20

[44] 2013-04-09 21:36:28 Waiting for string
[44] 2013-04-09 21:36:28 waiting for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[44] 2013-04-09 21:36:28 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 c7 af  rr=24

[44] 2013-04-09 21:36:28 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[44] 2013-04-09 21:36:28 received:    7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 c7 af 

[44] 2013-04-09 21:36:28 Found string we are waiting for
[45] 2013-04-09 21:36:28 Sending
sum=7e
[45] 2013-04-09 21:36:28 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5c 00 22 
    00000010: 24 06 dc 1b 00 00 ff ff ff ff ff ff 01 00 7e ff 
    00000020: 03 60 65 10 a0 ff ff ff ff ff ff 00 00 78 00 67 
    00000030: 6f 9a 36 00 00 00 00 00 00 03 80 0a 02 00 f0 00 
    00000040: 6d 23 00 00 6d 23 00 00 6d 23 00 bb 6d 64 51 bb 
    00000050: 6d 64 51 bb 6d 64 51 7d 31 0e 00 00 30 fe 7d 5e 
    00000060: 00 01 00 00 00 2d c6 7e  cc=92

[47] 2013-04-09 21:36:29 Sending
[47] 2013-04-09 21:36:29 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 ff 8c 21 25 80 00 03 00 05 00  cc=20

[48] 2013-04-09 21:36:29 Waiting for string
[48] 2013-04-09 21:36:29 waiting for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[48] 2013-04-09 21:36:29 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 c7 af  rr=24

[48] 2013-04-09 21:36:29 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[48] 2013-04-09 21:36:29 received:    7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 c7 af 

[48] 2013-04-09 21:36:29 Found string we are waiting for
[49] 2013-04-09 21:36:29 Extracting
[50] 2013-04-09 21:36:29 Sending
[50] 2013-04-09 21:36:29 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 ff 8c 21 25 80 00 03 00 05 00  cc=20

[51] 2013-04-09 21:36:29 Waiting for string
[51] 2013-04-09 21:36:29 waiting for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[51] 2013-04-09 21:36:29 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 c7 af  rr=24

[51] 2013-04-09 21:36:29 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[51] 2013-04-09 21:36:29 received:    7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 c7 af 

[51] 2013-04-09 21:36:29 Found string we are waiting for
[52] 2013-04-09 21:36:29 Sending
[52] 2013-04-09 21:36:29 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 ff 8c 21 25 80 00 03 00 05 00  cc=20

[53] 2013-04-09 21:36:29 Waiting for string
[53] 2013-04-09 21:36:29 waiting for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[53] 2013-04-09 21:36:29 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: ff 8c 21 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 c7 af  rr=24

[53] 2013-04-09 21:36:29 looking for: 7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[53] 2013-04-09 21:36:29 received:    7e 18 00 66 ff 8c 21 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 c7 af 

[53] 2013-04-09 21:36:29 Found string we are waiting for
[54] 2013-04-09 21:36:29 Sending
sum=80
  length change from 5b to 5a diff=80 
new sum=7e
[54] 2013-04-09 21:36:29 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5a 00 24 
    00000010: 24 06 dc 1b 00 00 ff ff ff ff ff ff 01 00 7e ff 
    00000020: 03 60 65 10 a0 ff ff ff ff ff ff 00 00 78 00 67 
    00000030: 6f 9a 36 00 00 00 00 00 00 04 80 0a 02 00 f0 00 
    00000040: 6d 23 00 00 6d 23 00 00 6d 23 00 bc 6d 64 51 ba 
    00000050: 6d 64 51 bc 6d 64 51 00 00 00 00 01 00 00 00 01 
    00000060: 00 00 00 36 0e 7e  cc=90

[55] 2013-04-09 21:36:29 Sending
sum=80
  length change from 3f to 3e diff=80 
new sum=7e
[55] 2013-04-09 21:36:29 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40 
    00000010: 24 06 dc 1b 00 00 ff ff ff ff ff ff 01 00 7e ff 
    00000020: 03 60 65 09 a0 ff ff ff ff ff ff 00 00 78 00 67 
    00000030: 6f 9a 36 00 00 00 00 00 00 05 80 00 02 00 58 00 
    00000040: 1e 82 00 ff 21 82 00 8c ae 7e  cc=62

[56] 2013-04-09 21:36:29 Sending
sum=80
  length change from 3f to 3e diff=80 
new sum=7e
[56] 2013-04-09 21:36:29 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40 
    00000010: 24 06 dc 1b 00 00 ff ff ff ff ff ff 01 00 7e ff 
    00000020: 03 60 65 09 a0 ff ff ff ff ff ff 00 00 78 00 67 
    00000030: 6f 9a 36 00 00 00 00 00 00 06 80 00 02 00 58 00 
    00000040: 1e a2 00 ff 1e a2 00 88 47 7e  cc=62

[57] 2013-04-09 21:36:29 Sending
sum=80
  length change from 3f to 3e diff=80 
new sum=7e
[57] 2013-04-09 21:36:29 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40 
    00000010: 24 06 dc 1b 00 00 ff ff ff ff ff ff 01 00 7e ff 
    00000020: 03 60 65 09 a0 ff ff ff ff ff ff 00 00 78 00 67 
    00000030: 6f 9a 36 00 00 00 00 00 00 07 80 00 02 80 51 00 
    00000040: 48 21 00 ff 48 21 00 e0 79 7e  cc=62

[58] 2013-04-09 21:36:29 Waiting for string
[58] 2013-04-09 21:36:29 waiting for: 7e 5a 00 24 ff 8c 21 25 80 00 24 06 dc 1b 
00 00 01 00 7e ff 03 60 65 

[58] 2013-04-09 21:36:29 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5d 00 23 
    00000010: ff 8c 21 25 80 00 c0 24 06 dc 1b 00 01 00 7e ff 
    00000020: 03 60 65 10 d0 78 00 67 6f 9a 36 00 a0 8a 00 ad 
    00000030: 50 f5 7d 5e 00 00 00 00 00 00 4e a9 0a 02 00 f0 
    00000040: 00 00 00 00 00 00 00 00 00 6d 23 00 bc 6d 64 51 
    00000050: 96 5a 64 51 bc 6d 64 51 7d 31 0e 00 00 30 fe 7d 
    00000060: 5e 00 01 00 00 00 b4 5e 7e  rr=93

sum=80length change from 5d to 5a

[58] 2013-04-09 21:36:29 looking for: 7e 5a 00 24 ff 8c 21 25 80 00 24 06 dc 1b 
00 00 01 00 7e ff 03 60 65 
[58] 2013-04-09 21:36:29 received:    7e 5a 00 24 ff 8c 21 25 80 00 c0 24 06 dc 
1b 00 01 00 7e ff 03 60 65 10 d0 78 00 67 6f 9a 36 00 a0 8a 00 ad 50 f5 7e 00 
00 00 00 00 00 4e a9 0a 02 00 f0 00 00 00 00 00 00 00 00 00 6d 23 00 bc 6d 64 
51 96 5a 64 51 bc 6d 64 51 11 0e 00 00 30 fe 7e 00 01 00 00 00 b4 5e 7e 

[58] 2013-04-09 21:36:29 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13 
    00000010: ff 8c 21 25 80 00 c0 24 06 dc 1b 00 08 00 7e ff 
    00000020: 03 60 65 3b 90 78 00 67 6f 9a 36 00 a0 8a 00 ad 
    00000030: 50 f5 7d 5e 00 00 00 00 00 00 05 80 01 02 00 58 
    00000040: 00 00 00 00 04 00 00 00 01 1e 82 10 e3 9f 63 51 
    00000050: 53 4e 3a 20 32 31 33 30 30 30 36 31 38 39 00 00 
    00000060: 10 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 
    00000070: 01 1f 82 08 e3 9f 63 51 41  rr=109

sum=80length change from 6d to 6c

[58] 2013-04-09 21:36:29 looking for: 7e 5a 00 24 ff 8c 21 25 80 00 24 06 dc 1b 
00 00 01 00 7e ff 03 60 65 
[58] 2013-04-09 21:36:29 received:    7e 6d 00 13 ff 8c 21 25 80 00 c0 24 06 dc 
1b 00 08 00 7e ff 03 60 65 3b 90 78 00 67 6f 9a 36 00 a0 8a 00 ad 50 f5 7e 00 
00 00 00 00 00 05 80 01 02 00 58 00 00 00 00 04 00 00 00 01 1e 82 10 e3 9f 63 
51 53 4e 3a 20 32 31 33 30 30 30 36 31 38 39 00 00 10 00 00 00 10 00 00 00 00 
00 00 00 00 00 00 00 01 1f 82 08 e3 9f 63 51 41 

[58] 2013-04-09 21:36:29 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13 
    00000010: ff 8c 21 25 80 00 c0 24 06 dc 1b 00 08 00 1f 00 
    00000020: 01 fe ff ff 00 00 00 00 00 00 00 00 00 00 00 00 
    00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 01 20 82 
    00000040: 08 e3 9f 63 51 72 23 00 00 73 23 00 00 74 23 00 
    00000050: 01 90 23 00 00 91 23 00 00 92 23 00 00 93 23 00 
    00000060: 00 fe ff ff 00 01 21 82 08 10 b5 1e 4f 59 02 00 
    00000070: 01 5b 02 00 01 5d 02 00 01  rr=109

[58] 2013-04-09 21:36:29 looking for: 7e 5a 00 24 ff 8c 21 25 80 00 24 06 dc 1b 
00 00 01 00 7e ff 03 60 65 
[58] 2013-04-09 21:36:29 received:    7e 6d 00 13 ff 8c 21 25 80 00 c0 24 06 dc 
1b 00 08 00 1f 00 01 fe ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 01 20 82 08 e3 9f 63 51 72 23 00 00 73 23 00 00 74 
23 00 01 90 23 00 00 91 23 00 00 92 23 00 00 93 23 00 00 fe ff ff 00 01 21 82 
08 10 b5 1e 4f 59 02 00 01 5b 02 00 01 5d 02 00 01 

[58] 2013-04-09 21:36:29 Did not find string

Original issue reported on code.google.com by privatbu...@gmail.com on 9 Apr 2013 at 7:54

GoogleCodeExporter commented 8 years ago
Hi,

try to replace ALL "$ADD2" Variables from of "sma.in.new" file through your 
BT-dongle address in reversed order:

So for example if the result of the hciconfig command is

#hciconfig
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:09:DD:51:24:D4  ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING PSCAN
        RX bytes:2069491 acl:28076 sco:0 events:14365 errors:0
        TX bytes:526253 acl:10889 sco:0 commands:1276 errors:0

your BT address is 00:09:DD:51:24:D4

You schould replace the $ADD2 through D4 24 51 DD 09 00.

I had the same problem and if fixed it

Original comment by christop...@googlemail.com on 30 May 2013 at 4:10

GoogleCodeExporter commented 8 years ago

00:1B:DC:06:24:C0 --> $ADD2 = C0 24 06 DC 1B 00

Original comment by christop...@googlemail.com on 30 May 2013 at 4:14