nmpinhole / sma-bluetooth

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

Connection procedure gets a Timeout at line 58 after starting Smatool #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just run the App wit -d option
2.
3.

What is the expected output? What do you see instead?
*To connect correctly wit the inverter and read the data out or show inverters 
output power.

What version of the product are you using? On what operating system?

2x SMA 5000TL-20 Inverter
Smatool Ver. 0.14 running on Debian 5.0 (Lenny) at my D-Link DNS-323 NAS (ARM 
Architecture). Can't run Smatool after Ver. 0.14 on my system for what ever 
reason - All versions till 0.14 are running. This issue has just been reported 
- issue 62.

Please provide any additional information below.

The connection procedure stops @ line 58 of the sma.in.new file. I tryed it 
also setting longer Timeouts in the config file but it desn't changed anything.

Here is the my debug information: 

root@dlink-7185AE:/mnt/HD_a2/smatool_wr2# ./smatool -d
variable=Inverter value=5000TL
variable=BTAddress value=00:80:25:0C:73:8E
variable=BTTimeout value=10
variable=Password value=0000
variable=Config value=
variable=File value=sma.in.new
variable=Latitude value=
variable=Longitude value
variable=MySqlHost value=localhost
variable=MySqlDatabase value=
variable=MySqlUser value=
variable=MySqlPwd value=
variable=PVOutputURL value=http://pvoutput.org/service/r2/addstatus.jsp
variable=PVOutputKey value=
variable=PVOutputSid value=
utc=2012-04-24 08:15 local=2012-04-24 10:15 diff 2 hours
localOffset=2.000000
localOffset=2.000000 isdst=1
tzsecs=e11 3601
tzsecs=0e 11
SELECT sunrise FROM Almanac WHERE date=DATE_FORMAT( NOW(), "%Y%m%d" )
SELECT data FROM settings WHERE value='schema'
SELECT DATE_FORMAT( DateTime, "%Y-%m-%d %H:%i:%S" ) FROM DayData 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
datefrom=2000-01-01 00:00:00 dateto=2012-04-24 10:15:00
[18] 2012-04-24 10:15:38 Waiting for string
[18] 2012-04-24 10:15:38 waiting for: 7e 1f 00 61 8e 73 0c 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00

[18] 2012-04-24 10:15:38 Waiting for data on rfcomm

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

[18] 2012-04-24 10:15:38 looking for: 7e 1f 00 61 8e 73 0c 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00
[18] 2012-04-24 10:15:38 received:    7e 1f 00 61 8e 73 0c 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00 0e 00 00 00 00 01 00 00 00

[18] 2012-04-24 10:15:38 Found string we are waiting for

...

[55] 2012-04-24 10:15:40 Sending
sum=80
  length change from 3f to 3e diff=80
new sum=7e
[55] 2012-04-24 10:15:40 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40
    00000010: 50 8d 0e 04 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 3f
    00000030: 10 fb 39 00 00 00 00 00 00 05 80 00 02 00 58 00
    00000040: 1e 82 00 ff 21 82 00 d1 46 7e  cc=62

[56] 2012-04-24 10:15:40 Sending
sum=80
  length change from 3f to 3e diff=80
new sum=7e
[56] 2012-04-24 10:15:40 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40
    00000010: 50 8d 0e 04 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 3f
    00000030: 10 fb 39 00 00 00 00 00 00 06 80 00 02 00 58 00
    00000040: 1e a2 00 ff 1e a2 00 d5 af 7e  cc=62

[57] 2012-04-24 10:15:40 Sending
sum=80
  length change from 3f to 3e diff=80
new sum=7e
[57] 2012-04-24 10:15:40 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40
    00000010: 50 8d 0e 04 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 3f
    00000030: 10 fb 39 00 00 00 00 00 00 07 80 00 02 80 51 00
    00000040: 48 21 00 ff 48 21 00 bd 91 7e  cc=62

[58] 2012-04-24 10:15:40 Waiting for string
[58] 2012-04-24 10:15:40 waiting for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65

[58] 2012-04-24 10:15:40 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5d 00 23
    00000010: 8e 73 0c 25 80 00 c4 50 8d 0e 04 00 01 00 7e ff
    00000020: 03 60 65 10 d0 78 00 3f 10 fb 39 00 a0 4e 00 15
    00000030: f0 2f 7d 5d 00 00 00 00 00 00 49 d4 0a 02 00 f0
    00000040: 00 00 00 00 00 00 00 00 00 6d 23 00 2c 61 96 4f
    00000050: 36 2e 8f 4f 2c 61 96 4f 0e 7d 31 00 00 30 fe 7d
    00000060: 5e 00 01 00 00 00 42 f1 7e  rr=93

sum=80length change from 5d to 5a

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 01 00 7e ff 03 60 65 10 d0 78 00 3f 10 fb 39 00 a0 4e 00 15 f0 2f 7d 00 
00 00 00 00 00 49 d4 0a 02 00 f0 00 00 00 00 00 00 00 00 00 6d 23 00 2c 61 96 
4f 36 2e 8f 4f 2c 61 96 4f 0e 11 00 00 30 fe 7e 00 01 00 00 00 42 f1 7e

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5e 00 20
    00000010: 4a 3c 0c 25 80 00 c4 50 8d 0e 04 00 01 00 7e ff
    00000020: 03 60 65 10 d0 78 00 3f 10 fb 39 00 a0 4e 00 67
    00000030: 7d 31 30 7d 5d 00 00 00 00 00 00 ba c2 0a 02 00
    00000040: f0 00 00 00 00 00 00 00 00 00 6d 23 00 2b 61 96
    00000050: 4f bd 60 96 4f 2b 61 96 4f 0e 7d 31 00 00 30 fe
    00000060: 7d 5e 00 01 00 00 00 9e 08 7e  rr=94

sum=7elength change from 5e to 5a

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 5a 00 24 4a 3c 0c 25 80 00 c4 50 8d 0e 
04 00 01 00 7e ff 03 60 65 10 d0 78 00 3f 10 fb 39 00 a0 4e 00 67 11 30 7d 00 
00 00 00 00 00 ba c2 0a 02 00 f0 00 00 00 00 00 00 00 00 00 6d 23 00 2b 61 96 
4f bd 60 96 4f 2b 61 96 4f 0e 11 00 00 30 fe 7e 00 01 00 00 00 9e 08 7e

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13
    00000010: 8e 73 0c 25 80 00 c4 50 8d 0e 04 00 08 00 7e ff
    00000020: 03 60 65 3b 90 78 00 3f 10 fb 39 00 a0 4e 00 15
    00000030: f0 2f 7d 5d 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 1f 2d 96 4f
    00000050: 57 65 63 68 73 65 6c 72 69 63 68 74 65 72 20 32
    00000060: 00 00 00 00 e6 00 00 00 00 00 00 00 00 00 00 00
    00000070: 01 1f 82 08 1f 2d 96 4f 41  rr=109

sum=80length change from 6d to 6c

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 6d 00 13 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 08 00 7e ff 03 60 65 3b 90 78 00 3f 10 fb 39 00 a0 4e 00 15 f0 2f 7d 00 
00 00 00 00 00 05 80 01 02 00 58 00 00 00 00 04 00 00 00 01 1e 82 10 1f 2d 96 
4f 57 65 63 68 73 65 6c 72 69 63 68 74 65 72 20 32 00 00 00 00 e6 00 00 00 00 
00 00 00 00 00 00 00 01 1f 82 08 1f 2d 96 4f 41

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13
    00000010: 8e 73 0c 25 80 00 c4 50 8d 0e 04 00 08 00 1f 00
    00000020: 01 42 1f 00 00 fe ff ff 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 1f 2d 96 4f 66 01 00 00 67 01 00 01 7c 23 00
    00000050: 00 7d 5d 23 00 00 fe ff ff 00 00 00 00 00 00 00
    00000060: 00 00 00 00 00 00 01 21 82 08 ba a2 af 4d 59 02
    00000070: 00 01 5b 02 00 01 5d 02 00  rr=109

sum=80length change from 6d to 6c

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 6d 00 13 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 08 00 1f 00 01 42 1f 00 00 fe ff ff 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 1f 2d 96 4f 66 01 00 00 67 01 00 01 7c 
23 00 00 7d 23 00 00 fe ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 01 21 82 
08 ba a2 af 4d 59 02 00 01 5b 02 00 01 5d 02 00

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 53 00 2d
    00000010: 8e 73 0c 25 80 00 c4 50 8d 0e 04 00 01 00 01 5e
    00000020: 02 00 01 5f 02 00 00 78 02 00 01 79 02 00 01 7a
    00000030: 02 00 01 01 21 82 08 ba a2 af 4d 7b 02 00 01 7c
    00000040: 02 00 00 7d 5d 02 00 01 87 02 00 01 fe ff ff 00
    00000050: 00 00 00 00 00 00 00 00 00 00 00 00 b0 f4 7e  rr=83

sum=80length change from 53 to 52

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 52 00 2c 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 01 00 01 5e 02 00 01 5f 02 00 00 78 02 00 01 79 02 00 01 7a 02 00 01 01 
21 82 08 ba a2 af 4d 7b 02 00 01 7c 02 00 00 7d 02 00 01 87 02 00 01 fe ff ff 
00 00 00 00 00 00 00 00 00 00 00 00 00 b0 f4 7e

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6a 00 14
    00000010: 8e 73 0c 25 80 00 c4 50 8d 0e 04 00 01 00 7e ff
    00000020: 03 60 65 7d 33 90 78 00 3f 10 fb 39 00 a0 4e 00
    00000030: 15 f0 2f 7d 5d 00 00 00 00 00 00 06 80 01 02 00
    00000040: 58 1a 00 00 00 1a 00 00 00 01 1e a2 00 1f 2d 96
    00000050: 4f 00 00 00 00 00 00 00 00 fe ff ff ff fe ff ff
    00000060: ff 15 f0 2f 7d 5d 15 f0 2f 7d 5d 00 00 00 00 00
    00000070: 00 00 00 c8 f5 7e  rr=106

sum=7elength change from 6a to 66

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 6a 00 14 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 01 00 7e ff 03 60 65 13 90 78 00 3f 10 fb 39 00 a0 4e 00 15 f0 2f 7d 00 
00 00 00 00 00 06 80 01 02 00 58 1a 00 00 00 1a 00 00 00 01 1e a2 00 1f 2d 96 
4f 00 00 00 00 00 00 00 00 fe ff ff ff fe ff ff ff 15 f0 2f 7d 15 f0 2f 7d 00 
00 00 00 00 00 00 00 c8 f5 7e

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 68 00 16
    00000010: 8e 73 0c 25 80 00 c4 50 8d 0e 04 00 01 00 7e ff
    00000020: 03 60 65 7d 33 90 78 00 3f 10 fb 39 00 a0 4e 00
    00000030: 15 f0 2f 7d 5d 00 00 00 00 00 00 07 80 01 02 80
    00000040: 51 00 00 00 00 00 00 00 00 01 48 21 08 27 61 96
    00000050: 4f 23 00 00 00 2f 01 00 00 33 01 00 01 c7 01 00
    00000060: 00 fe ff ff 00 00 00 00 00 00 00 00 00 00 00 00
    00000070: 00 96 9d 7e  rr=104

sum=7elength change from 68 to 66

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 66 00 1a 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 01 00 7e ff 03 60 65 13 90 78 00 3f 10 fb 39 00 a0 4e 00 15 f0 2f 7d 00 
00 00 00 00 00 07 80 01 02 80 51 00 00 00 00 00 00 00 00 01 48 21 08 27 61 96 
4f 23 00 00 00 2f 01 00 00 33 01 00 01 c7 01 00 00 fe ff ff 00 00 00 00 00 00 
00 00 00 00 00 00 00 96 9d 7e

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13
    00000010: 4a 3c 0c 25 80 00 c4 50 8d 0e 04 00 08 00 7e ff
    00000020: 03 60 65 3b 90 78 00 3f 10 fb 39 00 a0 4e 00 67
    00000030: 7d 31 30 7d 5d 00 00 00 00 00 00 05 80 01 02 00
    00000040: 58 00 00 00 00 04 00 00 00 01 1e 82 10 da 2c 96
    00000050: 4f 57 65 63 68 73 65 6c 72 69 63 68 74 65 72 20
    00000060: 31 00 00 00 00 e6 00 00 00 00 00 00 00 00 00 00
    00000070: 00 01 1f 82 08 da 2c 96 4f  rr=109

sum=80length change from 6d to 6b

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 6d 00 13 4a 3c 0c 25 80 00 c4 50 8d 0e 
04 00 08 00 7e ff 03 60 65 3b 90 78 00 3f 10 fb 39 00 a0 4e 00 67 11 30 7d 00 
00 00 00 00 00 05 80 01 02 00 58 00 00 00 00 04 00 00 00 01 1e 82 10 da 2c 96 
4f 57 65 63 68 73 65 6c 72 69 63 68 74 65 72 20 31 00 00 00 00 e6 00 00 00 00 
00 00 00 00 00 00 00 01 1f 82 08 da 2c 96 4f

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13
    00000010: 4a 3c 0c 25 80 00 c4 50 8d 0e 04 00 08 00 41 1f
    00000020: 00 01 42 1f 00 00 fe ff ff 00 00 00 00 00 00 00
    00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 20
    00000040: 82 08 da 2c 96 4f 66 01 00 00 67 01 00 01 7c 23
    00000050: 00 00 7d 5d 23 00 00 fe ff ff 00 00 00 00 00 00
    00000060: 00 00 00 00 00 00 00 01 21 82 08 b3 a2 af 4d 59
    00000070: 02 00 01 5b 02 00 01 5d 02  rr=109

sum=80length change from 6d to 6c

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 6d 00 13 4a 3c 0c 25 80 00 c4 50 8d 0e 
04 00 08 00 41 1f 00 01 42 1f 00 00 fe ff ff 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 da 2c 96 4f 66 01 00 00 67 01 00 01 
7c 23 00 00 7d 23 00 00 fe ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 01 21 
82 08 b3 a2 af 4d 59 02 00 01 5b 02 00 01 5d 02

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 54 00 2a
    00000010: 4a 3c 0c 25 80 00 c4 50 8d 0e 04 00 01 00 00 01
    00000020: 5e 02 00 01 5f 02 00 00 78 02 00 01 79 02 00 01
    00000030: 7a 02 00 01 01 21 82 08 b3 a2 af 4d 7b 02 00 01
    00000040: 7c 02 00 00 7d 5d 02 00 01 87 02 00 01 fe ff ff
    00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 fd 2a 7e  rr=84

sum=7elength change from 54 to 53

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 53 00 2b 4a 3c 0c 25 80 00 c4 50 8d 0e 
04 00 01 00 00 01 5e 02 00 01 5f 02 00 00 78 02 00 01 79 02 00 01 7a 02 00 01 
01 21 82 08 b3 a2 af 4d 7b 02 00 01 7c 02 00 00 7d 02 00 01 87 02 00 01 fe ff 
ff 00 00 00 00 00 00 00 00 00 00 00 00 00 fd 2a 7e

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6a 00 14
    00000010: 4a 3c 0c 25 80 00 c4 50 8d 0e 04 00 08 00 7e ff
    00000020: 03 60 65 7d 33 90 78 00 3f 10 fb 39 00 a0 4e 00
    00000030: 67 7d 31 30 7d 5d 00 00 00 00 00 00 06 80 01 02
    00000040: 00 58 1a 00 00 00 1a 00 00 00 01 1e a2 00 da 2c
    00000050: 96 4f 00 00 00 00 00 00 00 00 fe ff ff ff fe ff
    00000060: ff ff 67 7d 31 30 7d 5d 67 7d 31 30 7d 5d 00 00
    00000070: 00 00 00 00 00 00  rr=106

sum=7elength change from 6a to 63

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 6a 00 14 4a 3c 0c 25 80 00 c4 50 8d 0e 
04 00 08 00 7e ff 03 60 65 13 90 78 00 3f 10 fb 39 00 a0 4e 00 67 11 30 7d 00 
00 00 00 00 00 06 80 01 02 00 58 1a 00 00 00 1a 00 00 00 01 1e a2 00 da 2c 96 
4f 00 00 00 00 00 00 00 00 fe ff ff ff fe ff ff ff 67 11 30 7d 67 11 30 7d 00 
00 00 00 00 00 00 00

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 15 00 6b
    00000010: 4a 3c 0c 25 80 00 c4 50 8d 0e 04 00 01 00 53 91
    00000020: 7e  rr=21

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 15 00 6b 4a 3c 0c 25 80 00 c4 50 8d 0e 
04 00 01 00 53 91 7e

[58] 2012-04-24 10:15:40 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 69 00 17
    00000010: 4a 3c 0c 25 80 00 c4 50 8d 0e 04 00 01 00 7e ff
    00000020: 03 60 65 7d 33 90 78 00 3f 10 fb 39 00 a0 4e 00
    00000030: 67 7d 31 30 7d 5d 00 00 00 00 00 00 07 80 01 02
    00000040: 80 51 00 00 00 00 00 00 00 00 01 48 21 08 29 61
    00000050: 96 4f 23 00 00 00 2f 01 00 00 33 01 00 01 c7 01
    00000060: 00 00 fe ff ff 00 00 00 00 00 00 00 00 00 00 00
    00000070: 00 00 82 fd 7e  rr=105

sum=80length change from 69 to 66

[58] 2012-04-24 10:15:40 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 00 01 00 7e ff 03 60 65
[58] 2012-04-24 10:15:40 received:    7e 66 00 1a 4a 3c 0c 25 80 00 c4 50 8d 0e 
04 00 01 00 7e ff 03 60 65 13 90 78 00 3f 10 fb 39 00 a0 4e 00 67 11 30 7d 00 
00 00 00 00 00 07 80 01 02 80 51 00 00 00 00 00 00 00 00 01 48 21 08 29 61 96 
4f 23 00 00 00 2f 01 00 00 33 01 00 01 c7 01 00 00 fe ff ff 00 00 00 00 00 00 
00 00 00 00 00 00 00 82 fd 7e

[58] 2012-04-24 10:15:40 Did not find string

Thanks for your help guys

Original issue reported on code.google.com by christop...@googlemail.com on 24 Apr 2012 at 8:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The problem seems to be the reading the local bluetooth address and set it 
correct to the variable $ADD2. As you can see at the following examle, the 
string contains the local BT address which is inserted incoplete or shifted in 
the "Looking for:" line. In that case the SmaTool can't find the correct string 
The operation will be repeated 3-4 times and finally end without reading the 
Inverter.

Inverter = 5000TL-20
Inverter codes (sniffed with the Explorer):
Code1       0xAD
Code2       0x52
Code3       0xB2
Code4       0x3A
InvCode     0x4E

Local (D-Link DNS-323, Debian 5 -Lenny, ARM Processor) BT address is: c4 50 8d 
0e 04 00 (inverted)

In this case the variable $ADD2 =  50 8d 0e 04 00 00   instead  of "$ADD2 = c4 
50 8d 0e 04 00"
This happens in every line containing the $ADD2 variable.

[58] 2012-05-03 19:20:00 looking for: 7e 5a 00 24 8e 73 0c 25 80 00 50 8d 0e 04 
00 00 01 00 7e ff 03 60 65
[58] 2012-05-03 19:20:00 received:    7e 5a 00 24 8e 73 0c 25 80 00 c4 50 8d 0e 
04 00 01 00 7e ff 03 60 65 10 d0 78 00 ad 52 b2 3a 00 a0 4e 00 15 f0 2f 7d 00 
00 00 00 00 00 b3 b4 0a 02 00 f0 00 00 00 00 00 00 00 00 00 6d 23 00 2f be a2 
4f 1f a0 a1 4f 2f be a2 4f 11 0e 00 00 34 fe 7e 00 01 00 00 00 0c b0 7e

Replacing $ADD2 in ALL lines after line 57 in the SMA.IN.NEW file by the 
correct BT Address lets SMATool do what it is for but it doesn't work at 100% 
--> watch issue 74 

Would be great to hear from you Stephen.  

Original comment by christop...@googlemail.com on 3 May 2012 at 5:48

GoogleCodeExporter commented 9 years ago
Same issue on 4000TL-20, but mine errors out earlier...

smatool v0.17

$ ./smatool -d               variable=Inverter value=4000TL20
variable=BTAddress value=00:80:25:15:57:6C
variable=BTTimeout value=20
variable=Password value=0000
variable=Config value=
variable=File value=sma.in.new
variable=Latitude value=51
variable=Longitude value=5
variable=MySqlHost value=localhost
variable=MySqlDatabase value=smatool
variable=MySqlUser value=xxxxxxx
variable=MySqlPwd value=xxxxx
variable=PVOutputURL value=http://pvoutput.org/service/r1/addstatus.jsp
variable=PVOutputKey value=
variable=PVOutputSid 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=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=SB4000TL21
variable=Code1 value=0x2D
variable=Code2 value=0x25
variable=Code3 value=0xB0
variable=Code4 value=0x38
variable=InvCode value=0x8A
variable=InvCode value=
variable=Inverter value=4000TL20
variable=Code1 value=0x7d
variable=Code2 value=0x31
variable=Code3 value=0x36
variable=Code4 value=0xd5
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
utc=2012-05-14 14:34 local=2012-05-14 16:34 diff 2 hours
localOffset=2.000000
localOffset=2.000000 isdst=1
tzsecs=e11 3601
tzsecs=0e 11
SELECT sunrise FROM Almanac WHERE date=DATE_FORMAT( NOW(), "%Y-%m-%d" )
SELECT data FROM settings WHERE value='schema'
SELECT DATE_FORMAT( DateTime, "%Y-%m-%d %H:%i:%S" ) FROM DayData 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
datefrom=2000-01-01 00:00:00 dateto=2012-05-14 16:34:00
[18] 2012-05-14 16:34:36 Waiting for string
[18] 2012-05-14 16:34:36 waiting for: 7e 1f 00 61 6c 57 15 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00

[18] 2012-05-14 16:34:36 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61
    00000010: 6c 57 15 25 80 00 00 00 00 00 00 00 02 00 00 04
    00000020: 70 00 07 00 00 00 00 01 00 00 00  rr=31

[18] 2012-05-14 16:34:36 looking for: 7e 1f 00 61 6c 57 15 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00
[18] 2012-05-14 16:34:36 received:    7e 1f 00 61 6c 57 15 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00 07 00 00 00 00 01 00 00 00

[18] 2012-05-14 16:34:36 Found string we are waiting for
[19] 2012-05-14 16:34:36 Extracting
extracting invcode=07
[20] 2012-05-14 16:34:36 Sending
[20] 2012-05-14 16:34:36 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61
    00000010: 00 00 00 00 00 00 6c 57 15 25 80 00 02 00 00 04
    00000020: 70 00 07 00 00 00 00 01 00 00 00  cc=31

[21] 2012-05-14 16:34:36 Waiting for string
[21] 2012-05-14 16:34:36 waiting for: 7e 22 00 5c 6c 57 15 25 80 00 00 00 00 00 
00 00 05 00 6c 57 15 25 80 00

[21] 2012-05-14 16:34:36 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61
    00000010: 6c 57 15 25 80 00 00 00 00 00 00 00 02 00 00 04
    00000020: 70 00 07 00 00 00 00 01 00 00 00  rr=31

[21] 2012-05-14 16:34:39 looking for: 7e 22 00 5c 6c 57 15 25 80 00 00 00 00 00 
00 00 05 00 6c 57 15 25 80 00
[21] 2012-05-14 16:34:39 received:    7e 1f 00 61 6c 57 15 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00 07 00 00 00 00 01 00 00 00

[21] 2012-05-14 16:34:39 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61
    00000010: 6c 57 15 25 80 00 00 00 00 00 00 00 02 00 00 04
    00000020: 70 00 07 00 00 00 00 01 00 00 00  rr=31

[21] 2012-05-14 16:34:42 looking for: 7e 22 00 5c 6c 57 15 25 80 00 00 00 00 00 
00 00 05 00 6c 57 15 25 80 00
[21] 2012-05-14 16:34:42 received:    7e 1f 00 61 6c 57 15 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00 07 00 00 00 00 01 00 00 00

[21] 2012-05-14 16:34:42 Did not find string
^C
.....

Original comment by lcb...@gmail.com on 14 May 2012 at 2:37

GoogleCodeExporter commented 9 years ago
My Smatool is running right now. I had to do some changes in the sma.in.new 
file.

Could you post the entire debug information? Maybe we can change some things...

Original comment by christop...@googlemail.com on 17 May 2012 at 9:41

GoogleCodeExporter commented 9 years ago
Hello I have the same issue with an SMA5000TL-21. but the workaround to replace 
the ADD2 does not work

Any idea about the specific inverter codes for the 5000TL-21 ?

here is the log if somebody can help me

variable=Inverter value=5000TL
variable=BTAddress value=00:80:25:25:B4:83
variable=BTTimeout value=10
variable=Password value=0000
variable=Config value=
variable=File value=sma.in.new
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=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
utc=2012-05-18 14:48 local=2012-05-18 16:48 diff 2 hours
localOffset=2.000000
localOffset=2.000000 isdst=1
tzsecs=e11 3601
tzsecs=0e 11
Auto set dates from 2000-01-01 00:00:00 to 2012-05-18 16:48:00
Address 00:80:25:25:B4:83
datefrom=2000-01-01 00:00:00 dateto=2012-05-18 16:48:00
[18] 2012-05-18 16:48:24 Waiting for string
[18] 2012-05-18 16:48:24 waiting for: 7e 1f 00 61 83 b4 25 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00 

[18] 2012-05-18 16:48:24 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 02 00 00 04 
    00000020: 70 00 02 00 00 00 00 01 00 00 00  rr=31

[18] 2012-05-18 16:48:24 looking for: 7e 1f 00 61 83 b4 25 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00 
[18] 2012-05-18 16:48:24 received:    7e 1f 00 61 83 b4 25 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00 02 00 00 00 00 01 00 00 00 

[18] 2012-05-18 16:48:24 Found string we are waiting for
[19] 2012-05-18 16:48:24 Extracting
extracting invcode=02
[20] 2012-05-18 16:48:24 Sending
[20] 2012-05-18 16:48:24 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61 
    00000010: 00 00 00 00 00 00 83 b4 25 25 80 00 02 00 00 04 
    00000020: 70 00 02 00 00 00 00 01 00 00 00  cc=31

[21] 2012-05-18 16:48:24 Waiting for string
[21] 2012-05-18 16:48:24 waiting for: 7e 22 00 5c 83 b4 25 25 80 00 00 00 00 00 
00 00 05 00 83 b4 25 25 80 00 

[21] 2012-05-18 16:48:24 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 0a 00 83 b4 
    00000020: 25 25 80 00 01 7d b6 07 37 1e 00  rr=31

sum=80length change from 1f to 1e

[21] 2012-05-18 16:48:24 looking for: 7e 22 00 5c 83 b4 25 25 80 00 00 00 00 00 
00 00 05 00 83 b4 25 25 80 00 
[21] 2012-05-18 16:48:24 received:    7e 1e 00 62 83 b4 25 25 80 00 00 00 00 00 
00 00 0a 00 83 b4 25 25 80 00 01 96 07 37 1e 00 

[21] 2012-05-18 16:48:24 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 0c 00 02 00  rr=20

[21] 2012-05-18 16:48:24 looking for: 7e 22 00 5c 83 b4 25 25 80 00 00 00 00 00 
00 00 05 00 83 b4 25 25 80 00 
[21] 2012-05-18 16:48:24 received:    7e 14 00 6a 83 b4 25 25 80 00 00 00 00 00 
00 00 0c 00 02 00 

[21] 2012-05-18 16:48:24 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 22 00 5c 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 05 00 83 b4 
    00000020: 25 25 80 00 01 01 7d b6 07 37 1e 00 02 01  rr=34

sum=7elength change from 22 to 21

[21] 2012-05-18 16:48:24 looking for: 7e 22 00 5c 83 b4 25 25 80 00 00 00 00 00 
00 00 05 00 83 b4 25 25 80 00 
[21] 2012-05-18 16:48:24 received:    7e 21 00 5d 83 b4 25 25 80 00 00 00 00 00 
00 00 05 00 83 b4 25 25 80 00 01 01 96 07 37 1e 00 02 01 

[21] 2012-05-18 16:48:24 Found string we are waiting for
[22] 2012-05-18 16:48:24 Extracting
address 2 
[24] 2012-05-18 16:48:24 Sending
[24] 2012-05-18 16:48:24 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 83 b4 25 25 80 00 03 00 05 00  cc=20

[25] 2012-05-18 16:48:24 Waiting for string
[25] 2012-05-18 16:48:24 waiting for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[25] 2012-05-18 16:48:24 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 ba 00  rr=24

[25] 2012-05-18 16:48:24 looking for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[25] 2012-05-18 16:48:24 received:    7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 ba 00 

[25] 2012-05-18 16:48:24 Found string we are waiting for
[26] 2012-05-18 16:48:24 Extracting
bluetooth signal = 73%
[27] 2012-05-18 16:48:24 Sending
[27] 2012-05-18 16:48:24 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 83 b4 25 25 80 00 03 00 05 00  cc=20

[28] 2012-05-18 16:48:24 Waiting for string
[28] 2012-05-18 16:48:24 waiting for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[28] 2012-05-18 16:48:24 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 ba 00  rr=24

[28] 2012-05-18 16:48:24 looking for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[28] 2012-05-18 16:48:24 received:    7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 ba 00 

[28] 2012-05-18 16:48:24 Found string we are waiting for
[29] 2012-05-18 16:48:24 Sending
[29] 2012-05-18 16:48:24 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 83 b4 25 25 80 00 03 00 05 00  cc=20

[30] 2012-05-18 16:48:24 Waiting for string
[30] 2012-05-18 16:48:24 waiting for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[30] 2012-05-18 16:48:24 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 ba 00  rr=24

[30] 2012-05-18 16:48:24 looking for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[30] 2012-05-18 16:48:24 received:    7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 ba 00 

[30] 2012-05-18 16:48:24 Found string we are waiting for
[31] 2012-05-18 16:48:24 Sending
sum=80
  length change from 3f to 3e diff=80 
new sum=7e
[31] 2012-05-18 16:48:24 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40 
    00000010: 96 07 37 1e 00 02 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 3f 
    00000030: 10 fb 39 00 00 00 00 00 00 01 80 00 02 00 00 00 
    00000040: 00 00 00 00 00 00 00 00 ce 7e  cc=62

[32] 2012-05-18 16:48:24 Sending
sum=80
  length change from 3b to 3a diff=80 
new sum=7e
[32] 2012-05-18 16:48:24 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3a 00 44 
    00000010: 96 07 37 1e 00 02 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 3f 
    00000030: 10 fb 39 00 03 00 00 00 00 00 80 0e 01 fd ff ff 
    00000040: ff ff ff 4f b8 7e  cc=58

[33] 2012-05-18 16:48:24 Sending
sum=7e
  length change from 54 to 52 diff=7e 
new sum=7e
[33] 2012-05-18 16:48:24 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 52 00 2c 
    00000010: 96 07 37 1e 00 02 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 3f 
    00000030: 10 fb 39 00 01 00 00 00 00 02 80 0c 04 fd ff 07 
    00000040: 00 00 00 84 03 00 00 36 61 b6 4f 00 00 00 00 b8 
    00000050: b8 b8 b8 88 88 88 88 88 88 88 88 92 9f 7e  cc=82

[35] 2012-05-18 16:48:24 Waiting for string
[35] 2012-05-18 16:48:24 waiting for: 7e 6a 00 14 83 b4 25 25 80 00 

[35] 2012-05-18 16:48:24 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 69 00 17 
    00000010: 83 b4 25 25 80 00 7d b6 07 37 1e 00 01 00 7e ff 
    00000020: 03 60 65 7d 33 90 78 00 3f 10 fb 39 00 00 8a 00 
    00000030: 14 ab 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 14 ab 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 26 e4 7e  rr=105

sum=80length change from 69 to 65

[35] 2012-05-18 16:48:24 looking for: 7e 6a 00 14 83 b4 25 25 80 00 
[35] 2012-05-18 16:48:24 received:    7e 65 00 1b 83 b4 25 25 80 00 96 07 37 1e 
00 01 00 7e ff 03 60 65 13 90 78 00 3f 10 fb 39 00 00 8a 00 14 ab 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 14 ab f5 7e 00 00 0a 00 0c 00 00 00 00 00 00 00 03 00 
00 00 01 01 00 00 26 e4 7e 

[35] 2012-05-18 16:48:24 Found string we are waiting for
[36] 2012-05-18 16:48:24 Extracting
togo=256
len=39 data=03 00 00 00 ff 00 00 10 6d 00 20 01 00 8a 00 14 ab f5 7e 00 00 0a 
00 0c 00 00 00 00 00 00 00 03 00 00 00 01 01 00 00 
Fred_serial=00:7e:f5:ab
[38] 2012-05-18 16:48:24 Sending
[38] 2012-05-18 16:48:24 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 83 b4 25 25 80 00 03 00 05 00  cc=20

[39] 2012-05-18 16:48:24 Waiting for string
[39] 2012-05-18 16:48:24 waiting for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[39] 2012-05-18 16:48:24 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 ba 00  rr=24

[39] 2012-05-18 16:48:24 looking for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[39] 2012-05-18 16:48:24 received:    7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 ba 00 

[39] 2012-05-18 16:48:24 Found string we are waiting for
[40] 2012-05-18 16:48:24 Extracting
bluetooth signal = 73%
[41] 2012-05-18 16:48:24 Sending
[41] 2012-05-18 16:48:24 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 83 b4 25 25 80 00 03 00 05 00  cc=20

[42] 2012-05-18 16:48:24 Waiting for string
[42] 2012-05-18 16:48:24 waiting for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[42] 2012-05-18 16:48:24 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 53 00 2d 
    00000010: 83 b4 25 25 80 00 7d b6 07 37 1e 00 01 00 7e ff 
    00000020: 03 60 65 0e d0 78 00 3f 10 fb 39 00 01 8a 00 14 
    00000030: ab f5 7d 5e 00 01 00 00 00 00 02 80 0d 04 fd ff 
    00000040: 07 00 00 00 84 03 00 00 36 61 b6 4f 00 00 00 00 
    00000050: b8 b8 b8 b8 88 88 88 88 88 88 88 88 f2 0a 7e  rr=83

sum=80length change from 53 to 51

[42] 2012-05-18 16:48:24 looking for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[42] 2012-05-18 16:48:24 received:    7e 51 00 2f 83 b4 25 25 80 00 96 07 37 1e 
00 01 00 7e ff 03 60 65 0e d0 78 00 3f 10 fb 39 00 01 8a 00 14 ab f5 7e 00 01 
00 00 00 00 02 80 0d 04 fd ff 07 00 00 00 84 03 00 00 36 61 b6 4f 00 00 00 00 
b8 b8 b8 b8 88 88 88 88 88 88 88 88 f2 0a 7e 

[42] 2012-05-18 16:48:24 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 ba 00  rr=24

[42] 2012-05-18 16:48:24 looking for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[42] 2012-05-18 16:48:24 received:    7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 ba 00 

[42] 2012-05-18 16:48:24 Found string we are waiting for
[43] 2012-05-18 16:48:24 Sending
[43] 2012-05-18 16:48:24 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 83 b4 25 25 80 00 03 00 05 00  cc=20

[44] 2012-05-18 16:48:24 Waiting for string
[44] 2012-05-18 16:48:24 waiting for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[44] 2012-05-18 16:48:24 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 ba 00  rr=24

[44] 2012-05-18 16:48:24 looking for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[44] 2012-05-18 16:48:24 received:    7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 ba 00 

[44] 2012-05-18 16:48:24 Found string we are waiting for
[45] 2012-05-18 16:48:24 Sending
sum=7e
[45] 2012-05-18 16:48:24 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5c 00 22 
    00000010: 96 07 37 1e 00 02 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 3f 
    00000030: 10 fb 39 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 36 61 b6 4f 36 
    00000050: 61 b6 4f 36 61 b6 4f 7d 31 0e 00 00 30 fe 7d 5e 
    00000060: 00 01 00 00 00 b9 65 7e  cc=92

[47] 2012-05-18 16:48:25 Sending
[47] 2012-05-18 16:48:25 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 83 b4 25 25 80 00 03 00 05 00  cc=20

[48] 2012-05-18 16:48:25 Waiting for string
[48] 2012-05-18 16:48:25 waiting for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[48] 2012-05-18 16:48:25 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 ba 00  rr=24

[48] 2012-05-18 16:48:25 looking for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[48] 2012-05-18 16:48:25 received:    7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 ba 00 

[48] 2012-05-18 16:48:25 Found string we are waiting for
[49] 2012-05-18 16:48:25 Extracting
bluetooth signal = 73%
[50] 2012-05-18 16:48:25 Sending
[50] 2012-05-18 16:48:25 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 83 b4 25 25 80 00 03 00 05 00  cc=20

[51] 2012-05-18 16:48:25 Waiting for string
[51] 2012-05-18 16:48:25 waiting for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[51] 2012-05-18 16:48:25 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 ba 00  rr=24

[51] 2012-05-18 16:48:25 looking for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[51] 2012-05-18 16:48:25 received:    7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 ba 00 

[51] 2012-05-18 16:48:25 Found string we are waiting for
[52] 2012-05-18 16:48:25 Sending
[52] 2012-05-18 16:48:25 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a 
    00000010: 00 00 00 00 00 00 83 b4 25 25 80 00 03 00 05 00  cc=20

[53] 2012-05-18 16:48:25 Waiting for string
[53] 2012-05-18 16:48:25 waiting for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 

[53] 2012-05-18 16:48:25 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66 
    00000010: 83 b4 25 25 80 00 00 00 00 00 00 00 04 00 05 00 
    00000020: 00 00 ba 00  rr=24

[53] 2012-05-18 16:48:25 looking for: 7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 
[53] 2012-05-18 16:48:25 received:    7e 18 00 66 83 b4 25 25 80 00 00 00 00 00 
00 00 04 00 05 00 00 00 ba 00 

[53] 2012-05-18 16:48:25 Found string we are waiting for
[54] 2012-05-18 16:48:25 Sending
sum=80
  length change from 5b to 5a diff=80 
new sum=7e
[54] 2012-05-18 16:48:25 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5a 00 24 
    00000010: 96 07 37 1e 00 02 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 3f 
    00000030: 10 fb 39 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 37 61 b6 4f 35 
    00000050: 61 b6 4f 37 61 b6 4f 00 00 00 00 01 00 00 00 01 
    00000060: 00 00 00 c5 f4 7e  cc=90

[55] 2012-05-18 16:48:25 Sending
sum=80
  length change from 3f to 3e diff=80 
new sum=7e
[55] 2012-05-18 16:48:25 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40 
    00000010: 96 07 37 1e 00 02 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 3f 
    00000030: 10 fb 39 00 00 00 00 00 00 05 80 00 02 00 58 00 
    00000040: 1e 82 00 ff 21 82 00 d1 46 7e  cc=62

[56] 2012-05-18 16:48:25 Sending
sum=80
  length change from 3f to 3e diff=80 
new sum=7e
[56] 2012-05-18 16:48:25 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40 
    00000010: 96 07 37 1e 00 02 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 3f 
    00000030: 10 fb 39 00 00 00 00 00 00 06 80 00 02 00 58 00 
    00000040: 1e a2 00 ff 1e a2 00 d5 af 7e  cc=62

[57] 2012-05-18 16:48:25 Sending
sum=80
  length change from 3f to 3e diff=80 
new sum=7e
[57] 2012-05-18 16:48:25 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40 
    00000010: 96 07 37 1e 00 02 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 3f 
    00000030: 10 fb 39 00 00 00 00 00 00 07 80 00 02 80 51 00 
    00000040: 48 21 00 ff 48 21 00 bd 91 7e  cc=62

[58] 2012-05-18 16:48:25 Waiting for string
[58] 2012-05-18 16:48:25 waiting for: 7e 5a 00 24 83 b4 25 25 80 00 96 07 37 1e 
00 02 01 00 7e ff 03 60 65 

[58] 2012-05-18 16:48:25 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5e 00 20 
    00000010: 83 b4 25 25 80 00 7d b6 07 37 1e 00 01 00 7e ff 
    00000020: 03 60 65 10 d0 78 00 3f 10 fb 39 00 a0 8a 00 14 
    00000030: ab f5 7d 5e 00 00 00 00 00 00 7d 5e da 0a 02 00 
    00000040: f0 00 00 00 00 00 00 00 00 00 6d 23 00 39 61 b6 
    00000050: 4f 4c 02 b6 4f 39 61 b6 4f 7d 31 0e 00 00 30 fe 
    00000060: 7d 5e 00 01 00 00 00 a4 e8 7e  rr=94

sum=7elength change from 5e to 59

[58] 2012-05-18 16:48:25 looking for: 7e 5a 00 24 83 b4 25 25 80 00 96 07 37 1e 
00 02 01 00 7e ff 03 60 65 
[58] 2012-05-18 16:48:25 received:    7e 59 00 25 83 b4 25 25 80 00 96 07 37 1e 
00 01 00 7e ff 03 60 65 10 d0 78 00 3f 10 fb 39 00 a0 8a 00 14 ab f5 7e 00 00 
00 00 00 00 7e da 0a 02 00 f0 00 00 00 00 00 00 00 00 00 6d 23 00 39 61 b6 4f 
4c 02 b6 4f 39 61 b6 4f 11 0e 00 00 30 fe 7e 00 01 00 00 00 a4 e8 7e 

[58] 2012-05-18 16:48:25 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13 
    00000010: 83 b4 25 25 80 00 7d b6 07 37 1e 00 08 00 7e ff 
    00000020: 03 60 65 3b 90 78 00 3f 10 fb 39 00 a0 8a 00 14 
    00000030: ab 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 d1 c8 b5 4f 
    00000050: 53 4e 3a 20 32 31 33 30 30 32 39 33 33 32 00 00 
    00000060: 10 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 
    00000070: 01 1f 82 08 d1 c8 b5 4f 41  rr=109

sum=80length change from 6d to 6b

[58] 2012-05-18 16:48:25 looking for: 7e 5a 00 24 83 b4 25 25 80 00 96 07 37 1e 
00 02 01 00 7e ff 03 60 65 
[58] 2012-05-18 16:48:25 received:    7e 6d 00 13 83 b4 25 25 80 00 96 07 37 1e 
00 08 00 7e ff 03 60 65 3b 90 78 00 3f 10 fb 39 00 a0 8a 00 14 ab 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 d1 c8 b5 4f 
53 4e 3a 20 32 31 33 30 30 32 39 33 33 32 00 00 10 00 00 00 10 00 00 00 00 00 
00 00 00 00 00 00 01 1f 82 08 d1 c8 b5 4f 41 

[58] 2012-05-18 16:48:25 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13 
    00000010: 83 b4 25 25 80 00 7d b6 07 37 1e 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 d1 c8 b5 4f 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 88 82 79 47 59 02 00 
    00000070: 01 5b 02 00 01 5d 02 00 01  rr=109

sum=80length change from 6d to 6c

[58] 2012-05-18 16:48:25 looking for: 7e 5a 00 24 83 b4 25 25 80 00 96 07 37 1e 
00 02 01 00 7e ff 03 60 65 
[58] 2012-05-18 16:48:25 received:    7e 6d 00 13 83 b4 25 25 80 00 96 07 37 1e 
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 d1 c8 b5 4f 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 
88 82 79 47 59 02 00 01 5b 02 00 01 5d 02 00 01 

[58] 2012-05-18 16:48:25 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 53 00 2d 
    00000010: 83 b4 25 25 80 00 7d b6 07 37 1e 00 01 00 5e 02 
    00000020: 00 01 5f 02 00 00 78 02 00 01 79 02 00 01 7a 02 
    00000030: 00 01 01 21 82 08 88 82 79 47 7b 02 00 01 7c 02 
    00000040: 00 00 7d 5d 02 00 01 87 02 00 01 fe ff ff 00 00 
    00000050: 00 00 00 00 00 00 00 00 00 00 00 23 7d 33 7e  rr=83

sum=80length change from 53 to 50

[58] 2012-05-18 16:48:25 looking for: 7e 5a 00 24 83 b4 25 25 80 00 96 07 37 1e 
00 02 01 00 7e ff 03 60 65 
[58] 2012-05-18 16:48:25 received:    7e 50 00 30 83 b4 25 25 80 00 96 07 37 1e 
00 01 00 5e 02 00 01 5f 02 00 00 78 02 00 01 79 02 00 01 7a 02 00 01 01 21 82 
08 88 82 79 47 7b 02 00 01 7c 02 00 00 7d 02 00 01 87 02 00 01 fe ff ff 00 00 
00 00 00 00 00 00 00 00 00 00 00 23 13 7e 

[58] 2012-05-18 16:48:25 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6a 00 14 
    00000010: 83 b4 25 25 80 00 7d b6 07 37 1e 00 01 00 7e ff 
    00000020: 03 60 65 7d 33 90 78 00 3f 10 fb 39 00 a0 8a 00 
    00000030: 14 ab f5 7d 5e 00 00 00 00 00 00 06 80 01 02 00 
    00000040: 58 17 00 00 00 17 00 00 00 01 1e a2 00 d1 c8 b5 
    00000050: 4f 00 00 00 00 00 00 00 00 fe ff ff ff fe ff ff 
    00000060: ff 14 ab f5 7d 5e 14 ab f5 7d 5e 00 00 00 00 00 
    00000070: 00 00 00 20 86 7e  rr=106

sum=7elength change from 6a to 65

[58] 2012-05-18 16:48:25 looking for: 7e 5a 00 24 83 b4 25 25 80 00 96 07 37 1e 
00 02 01 00 7e ff 03 60 65 
[58] 2012-05-18 16:48:25 received:    7e 6a 00 14 83 b4 25 25 80 00 96 07 37 1e 
00 01 00 7e ff 03 60 65 13 90 78 00 3f 10 fb 39 00 a0 8a 00 14 ab f5 7e 00 00 
00 00 00 00 06 80 01 02 00 58 17 00 00 00 17 00 00 00 01 1e a2 00 d1 c8 b5 4f 
00 00 00 00 00 00 00 00 fe ff ff ff fe ff ff ff 14 ab f5 7e 14 ab f5 7e 00 00 
00 00 00 00 00 00 20 86 7e 

[58] 2012-05-18 16:48:25 Did not find string

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 68 00 16 
    00000010: 83 b4 25 25 80 00 7d b6 07 37 1e 00 01 00 7e ff 
    00000020: 03 60 65 7d 33 90 78 00 3f 10 fb 39 00 a0 8a 00 
    00000030: 14 ab f5 7d 5e 00 00 00 00 00 00 07 80 01 02 80 
    00000040: 51 00 00 00 00 00 00 00 00 01 48 21 08 37 61 b6 
    00000050: 4f 23 00 00 00 2f 01 00 00 33 01 00 01 c7 01 00 
    00000060: 00 fe ff ff 00 00 00 00 00 00 00 00 00 00 00 00 
    00000070: 00 f3 a8 7e  rr=104

sum=7elength change from 68 to 65

[58] 2012-05-18 16:48:25 looking for: 7e 5a 00 24 83 b4 25 25 80 00 96 07 37 1e 
00 02 01 00 7e ff 03 60 65 
[58] 2012-05-18 16:48:25 received:    7e 65 00 19 83 b4 25 25 80 00 96 07 37 1e 
00 01 00 7e ff 03 60 65 13 90 78 00 3f 10 fb 39 00 a0 8a 00 14 ab f5 7e 00 00 
00 00 00 00 07 80 01 02 80 51 00 00 00 00 00 00 00 00 01 48 21 08 37 61 b6 4f 
23 00 00 00 2f 01 00 00 33 01 00 01 c7 01 00 00 fe ff ff 00 00 00 00 00 00 00 
00 00 00 00 00 00 f3 a8 7e 

[58] 2012-05-18 16:48:25 Did not find string
^C
root@BEL102:~/sma-bluetooth-0.17# 

Original comment by fvanr...@gmail.com on 18 May 2012 at 2:49

GoogleCodeExporter commented 9 years ago
Could you post your local BT address pls (hciconfig)? I think I see the problem 
- it is the same one I had. The detected ADD2 variable is shifted and has to be 
replaced by the correct BT byte. This is a static sollution and has to be 
modified every time you change the BT dongle.

Original comment by christop...@googlemail.com on 18 May 2012 at 9:19

GoogleCodeExporter commented 9 years ago
Hello,
This is my local BT address
root@BEL102:~# hciconfig
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:1E:37:07:B6:7D  ACL MTU: 1017:8  SCO MTU: 64:8
        UP RUNNING PSCAN 
        RX bytes:965 acl:0 sco:0 events:27 errors:0
        TX bytes:361 acl:0 sco:0 commands:27 errors:0

Thanks for your help

Regards

Frederic

Original comment by fvanr...@gmail.com on 24 May 2012 at 7:43

GoogleCodeExporter commented 9 years ago
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. 

Original comment by christop...@googlemail.com on 30 May 2012 at 4:45

GoogleCodeExporter commented 9 years ago
Great it is now connected ...

Thanks a lot Chris

I go on with the config now

what was the magic hint behind this ?

Regards

frederic

Original comment by fvanr...@gmail.com on 9 Jun 2012 at 11:54

GoogleCodeExporter commented 9 years ago
Did the trick for me. Have ubuntu on VM-ware player on XP host. HW address is 
different. Hard coded addr2 which worked.

Original comment by reddiecr...@hotmail.com on 20 Jul 2012 at 2:12

GoogleCodeExporter commented 9 years ago
I'm stuck on this, I seem to be having the same problem with this and my 
SB4000-20.  Here's my debug info:

[58] 2012-08-11 23:55:46 Waiting for string
[58] 2012-08-11 23:55:46 waiting for: 7e 5a 00 24 2f 92 20 25 80 00 d7 a1 15 83 
15 00 01 00 7e ff 03 60 65
[58] 2012-08-11 23:55:46 Waiting for data on rfcomm
    00000040: 58 00 1e 82 00 ff 21 82 00 1c 7d 5e 7e  rr=65
[58] 2012-08-11 23:55:46 looking for: 7e 5a 00 24 2f 92 20 25 80 00 d7 a1 15 83 
15 00 01 00 7e ff 03 60 65
[58] 2012-08-11 23:55:46 received:    7e 3e 00 42 2f 92 20 25 80 00 d7 a1 15 83 
15 00 01 00 7e ff 03 60 65 09 90 78 00 67 6f 9a 36 00 e0 4e 00 09 63 33 7d 00 
00 ff ff 00 00 13 80 01 02 00 58 00 1e 82 00 ff 21 82 00 1c 7e 7e
[58] 2012-08-11 23:55:46 Found string we are waiting for
    00000030: 63 33 7d 5d 00 00 ff ff 00 00 14 80 01 02 00 58

my BT info is:
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:15:83:15:A1:D7  ACL MTU: 672:4  SCO MTU: 48:1
        UP RUNNING PSCAN
        RX bytes:91759 acl:2501 sco:0 events:1536 errors:0
        TX bytes:75496 acl:1442 sco:0 commands:66 errors:0

I've tried changing line 58 to no avail, though I'm not sure I did it right.  
Is someone able to help me please.

Is it also possible please that those who understand this fix explain it in a 
more step by step fashion.

Thanks

marc

Original comment by MarcCarn...@googlemail.com on 12 Aug 2012 at 12:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
 #8 christop...@googlemail.com

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. 

Dear chris, 

i have the same problem. But i can't figure out in witch file i need the change 
the line. 

thanks

Original comment by verbraa...@home.nl on 29 Oct 2014 at 1:57