
Originally Posted by
RedGTiVR6
cyber - please see the following thread:
What causes a post to be moderated?
This is why your past 5 posts didn't show up.
Please be patient and one of the admins or mods will approve your post shortly.
Thanks
That explains a lot...
I've been hacking the handsfree application to skip the +CMER commands as they seem to screw the connection up: the second CMER command doesn't return a value so everything hangs after that. Skipping the CMER commands gives me ERROR results for every command after that which I find weird as CMER only sets event messages on or off right? (Also it should be 3,0,0,1,0 = 5 parameters but that didn't help either).
I can reach phase 7 by skipping CMER but then the application hangs with a SCO connect failure. I have the SCO module loaded so why is it failing? I'm running as root - maybe that screws something up?
If I could just play with it, I can work around the restrictions...
Big thumbs up for the project though! I'm lousy with c but this might be the time to dive into it and help out 
Edit:
running strace on the program shows all kinda of stuff for the TCP stack getting opened (including /etc/hosts) and my guess is that it dies here:
Code:
write(4294967295, "POST /push HTTP/1.1\r\n", 21) = -1 EBADF (Bad file descriptor)
write(4294967295, "Content-Length: 210\r\n", 21) = -1 EBADF (Bad file descriptor)
write(4294967295, "\r\n", 2) = -1 EBADF (Bad file descriptor)
write(4294967295, "<?xml version=\"1.0\" encoding=\"UT"..., 210) = -1 EBADF (Bad file descriptor)
write(4294967295, "\r\n", 2) = -1 EBADF (Bad file descriptor)
read(4294967295, 0x7ffff28fc8e0, 800) = -1 EBADF (Bad file descriptor)
close(4294967295) = -1 EBADF (Bad file descriptor)
socket(PF_BLUETOOTH, SOCK_SEQPACKET, 2) = 13
bind(13, {sa_family=AF_BLUETOOTH, sa_data="yP\20\335\t\0\0\0\0\0\r\0\0\0"}, 8) = 0
connect(13, {sa_family=AF_BLUETOOTH, sa_data="\364>\271\7\16\0\0\0\0\0\r\0\0\0"}, 8) = -1 ECONNREFUSED (Connection refused)
write(2, "connect: Connection refused\n", 28connect: Connection refused
) = 28
close(13) = 0
write(2, "Error: ", 7Error: ) = 7
write(2, "Can't connect SCO audio channel "..., 51Can't connect SCO audio channel @ 00:0E:07:B9:3E:F4) = 51
write(2, "\n", 1
) = 1
So why doesn't it connect to.. errr... the AF_BLUETOOTH socket? (I guess?)
I tried running it all by hand the commands still give an error but +CMER does NOT kill the serial link so I don't understand why it does in the handsfree program - prolly bad coding?
Still leaves me with what cannot connect at the SCO layer? Does the program try to open a device node? Or a path to the phone? I don't really understand the call that fails so I can't figure out what goes wrong here...
On a different note: the SCO (voice) link, can I set that up by hand?
Bookmarks