public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] AT commands
@ 2006-04-04 13:26 Sowmya Gattupalli
  0 siblings, 0 replies; 4+ messages in thread
From: Sowmya Gattupalli @ 2006-04-04 13:26 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

Hi all...
Can anyone of you let me know as to how to know the AT commands?? in the
sense when a Headset is connected to an audio gateway what are all the AT
commands communicated between them....
Probably Iam searching for some appropriate links to learn the AT
commands... will be highly obliged if anyone of u cud provide me with such
links......



regards
Soumya

[-- Attachment #2: Type: text/html, Size: 398 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bluez-users] AT Commands
@ 2007-07-17 14:44 steve.morard
  2007-07-18 11:32 ` Timothy Murphy
  0 siblings, 1 reply; 4+ messages in thread
From: steve.morard @ 2007-07-17 14:44 UTC (permalink / raw)
  To: BlueZ users

Hello,

I'm currently trying to write a program that would allow me to send SMS via
bluetooth through my mobile phone. The problem that I have is that I'm not able
to receive and decode correctly the responses from the mobile. Here is a sample
of the code I'm using, which should retrieve the IMSI of the mobile:

s = socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);
status = connect(s, (struct sockaddr *)&addr, sizeof(addr); // addr being the
address of my mobile

char remote[1024] = {0};

status = write(s, "AT+CIMI\r", 8);
read(s,remote,1024) // s being the socket
printf("received [%s]\n", remote);

All what I get is
]eceived [AT+CIMI


Does anyone have an idea of what I'm doing wrong ?

Thanks in advance

Best Regards

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] AT Commands
  2007-07-17 14:44 [Bluez-users] AT Commands steve.morard
@ 2007-07-18 11:32 ` Timothy Murphy
  2007-07-18 12:45   ` steve.morard
  0 siblings, 1 reply; 4+ messages in thread
From: Timothy Murphy @ 2007-07-18 11:32 UTC (permalink / raw)
  To: bluez-users

steve.morard@epfl.ch wrote:

> I'm currently trying to write a program that would allow me to send SMS
> via bluetooth through my mobile phone. The problem that I have is that I'm
> not able to receive and decode correctly the responses from the mobile.
> Here is a sample of the code I'm using, which should retrieve the IMSI of
> the mobile:
> 
> s = socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);
> status = connect(s, (struct sockaddr *)&addr, sizeof(addr); // addr being
> the address of my mobile
> 
> char remote[1024] = {0};
> 
> status = write(s, "AT+CIMI\r", 8);
> read(s,remote,1024) // s being the socket
> printf("received [%s]\n", remote);
> 
> All what I get is
> ]eceived [AT+CIMI
> 
> 
> Does anyone have an idea of what I'm doing wrong ?

I've no idea,
but have you thought of looking at gnokii?

-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] AT Commands
  2007-07-18 11:32 ` Timothy Murphy
@ 2007-07-18 12:45   ` steve.morard
  0 siblings, 0 replies; 4+ messages in thread
From: steve.morard @ 2007-07-18 12:45 UTC (permalink / raw)
  To: BlueZ users

Thank you I'll take a look to that
> steve.morard@epfl.ch wrote:
>
> > I'm currently trying to write a program that would allow me to send SMS
> > via bluetooth through my mobile phone. The problem that I have is that I'm
> > not able to receive and decode correctly the responses from the mobile.
> > Here is a sample of the code I'm using, which should retrieve the IMSI of
> > the mobile:
> >
> > s = socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);
> > status = connect(s, (struct sockaddr *)&addr, sizeof(addr); // addr being
> > the address of my mobile
> >
> > char remote[1024] = {0};
> >
> > status = write(s, "AT+CIMI\r", 8);
> > read(s,remote,1024) // s being the socket
> > printf("received [%s]\n", remote);
> >
> > All what I get is
> > ]eceived [AT+CIMI
> >
> >
> > Does anyone have an idea of what I'm doing wrong ?
>
> I've no idea,
> but have you thought of looking at gnokii?
>
> --
> Timothy Murphy
> e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
> tel: +353-86-2336090, +353-1-2842366
> s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-18 12:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 14:44 [Bluez-users] AT Commands steve.morard
2007-07-18 11:32 ` Timothy Murphy
2007-07-18 12:45   ` steve.morard
  -- strict thread matches above, loose matches on Subject: below --
2006-04-04 13:26 [Bluez-users] AT commands Sowmya Gattupalli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox