Hi!

I tried to use bcm2035 tool on ming unstead of mbtdload as suggested on MF.

At fisrt we have no AT+EBTP on gen2, we use some gpio via ioctl on /dev/ttyS1.

I patched tool to poweron chip for me:


          if(fd < 0) exit(-1);
+
+        unsigned short state;
+
+        ioctl(fd, TIOC_BT_VOLTAGE_ON,  &state);

           term.c_iflag=0x5;


Then i tried to use it:

# ./bcm2035-tool /dev/ttyS1 00:09:DD:50:23:19
    unexpected reply

Strace shows this:


open("/dev/ttyS1", O_RDWR|O_NOCTTY)     = 3
ioctl(3, 0x5444, 0xbefffdd6)            = 0 # poweron chip
ioctl(3, SNDCTL_TMR_START or TCSETS, {B115200 -opost -isig -icanon
-echo ...}) = 0
write(3, "\x01\x03\x0c\x00", 4)         = 0
read(3, "", 8)                          = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40017000
write(1, "    unexpected reply\n", 21    unexpected reply



-- 
 wbr, Ilya
 ICQ: none, Jabber: ilya.muro...@jabber.ru

Reply via email to