 |
|
|
|
| Author |
Message |
http://members.lycos.co.u
Joined: 27 Sep 2007 Posts: 9
|
Posted: Sun Oct 28, 2007 9:53 am Post subject: Bluetooth AT Commands (HCI Commands) How to Send ? |
|
|
Hi,
I have bluetooth usb dongle connected to my PC running XP Windows.
How to send AT Commands to bluetooth usb dongle to set in discovery
mode
and read mac addresses of other bluetooth device nearby.
There is a good example from Linux minicom unfortunately it crashed
under Windows Hyperminal
wheneever I start it and try to type in anything from keyboard.
At the same time Widcomm and Bluesoleil bluetooth drivers/application
provided with bluetooth usb dongle work fine
and can discover nearby bluetooth devices and perform discovery
search.
Thanks.
Darius
I don't have any experience so far with connecting to GPS units
and issuing NMEA sentences. But I do have experience with
connecting to Bluetooth-enabled mobile phones.
Below is the log of a session with the Parani SD100, using
minicom (the Linux version of Hyperterminal). I have added
some comments. They are the lines beginning with "*".
I assume that a connection to a GPS unit would be very similiar,
except that NMEA sentences would be issued instead of
cellular-specific "AT" commands.
* start
ATZ
OK
* issue the command to scan for visible devices
AT+BTINQ?
0001E36B52C0,John S55,720204
0016209D8A7C,John V600i,520204
OK
* 2 mobile phones found on this scan - connect to the Siemens
* S55
ATD0001E36B52C0
OK
CONNECT 0001E36B52C0
* from here, we're talking to the S55
*
* issue the phone some commands to tell us the cell ID and
* Location Area Code whenever the phone changes serving cell,
* and also the name (in PDU-mode encoding) of that cell
AT+CREG=2
OK
AT+CNMI=1,0,2,0,1;+CSCB=0,50,"0-15"
OK
+CBM: 88
1B20003201114679785E96371A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D16834
1A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D1
68341A8D46A3D100
* what phone network are we connected to?
AT+COPS?
+COPS: 2,0,"Telstra"
OK
AT+CREG?
+CREG: 2,1,"1030","639E"
OK
+CREG: 1,"1030","1401"
+CBM: 88
07B000320111C8F4F99C76CF418D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D16834
1A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D1
68341A8D46A3D100
+CREG: 1,"1030","639E"
+CBM: 88
1B20003201114679785E96371A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D16834
1A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D1
68341A8D46A3D100
AT+CSQ
+CSQ: 18,99
OK
+CREG: 1,"1030","1401"
+CBM: 88
07B000320111C8F4F99C76CF418D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D16834
1A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D1
68341A8D46A3D100
OK
* give the escape sequence to the Parani to drop back into
* command mode
+++
* now disconnect from the phone
ATH
OK
DISCONNECT
* end
Please note that the Parani and the S55 were previously paired.
John
Archived from group: alt>cellular>bluetooth |
|
| Back to top |
|
 |
Flemming L. Baerentsen
Joined: 23 Nov 2007 Posts: 3
|
Posted: Fri Nov 23, 2007 8:44 pm Post subject: Re: Bluetooth AT Commands (HCI Commands) How to Send ? |
|
|
Hi Darius,
This question is not 100% aimed at your topic, but I think you can help me.
What is the average time for establishing connection between two Bluetooth
units.
Timing start: The two units is in physical reading range.
Timing stop: Unit one read unit two ID.
I look forward to hear from you.
Regards
Flemming
"http://members.lycos.co.uk/dariusjack/" skrev i
en meddelelse @z9g2000hsf.googlegroups.com...
> Hi,
>
> I have bluetooth usb dongle connected to my PC running XP Windows.
> How to send AT Commands to bluetooth usb dongle to set in discovery
> mode
> and read mac addresses of other bluetooth device nearby.
>
> There is a good example from Linux minicom unfortunately it crashed
> under Windows Hyperminal
> wheneever I start it and try to type in anything from keyboard.
>
> At the same time Widcomm and Bluesoleil bluetooth drivers/application
> provided with bluetooth usb dongle work fine
> and can discover nearby bluetooth devices and perform discovery
> search.
>
>
> Thanks.
> Darius
>
> I don't have any experience so far with connecting to GPS units
> and issuing NMEA sentences. But I do have experience with
> connecting to Bluetooth-enabled mobile phones.
>
> Below is the log of a session with the Parani SD100, using
> minicom (the Linux version of Hyperterminal). I have added
> some comments. They are the lines beginning with "*".
>
> I assume that a connection to a GPS unit would be very similiar,
> except that NMEA sentences would be issued instead of
> cellular-specific "AT" commands.
>
> * start
>
> ATZ
>
> OK
>
> * issue the command to scan for visible devices
>
> AT+BTINQ?
>
> 0001E36B52C0,John S55,720204
>
> 0016209D8A7C,John V600i,520204
>
> OK
>
> * 2 mobile phones found on this scan - connect to the Siemens
> * S55
>
> ATD0001E36B52C0
>
> OK
>
> CONNECT 0001E36B52C0
>
> * from here, we're talking to the S55
> *
> * issue the phone some commands to tell us the cell ID and
> * Location Area Code whenever the phone changes serving cell,
> * and also the name (in PDU-mode encoding) of that cell
>
> AT+CREG=2
> OK
> AT+CNMI=1,0,2,0,1;+CSCB=0,50,"0-15"
> OK
>
> +CBM: 88
> 1B20003201114679785E96371A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D16834
> 1A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D1
> 68341A8D46A3D100
>
> * what phone network are we connected to?
>
> AT+COPS?
> +COPS: 2,0,"Telstra"
>
> OK
> AT+CREG?
> +CREG: 2,1,"1030","639E"
>
> OK
>
> +CREG: 1,"1030","1401"
>
> +CBM: 88
> 07B000320111C8F4F99C76CF418D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D16834
> 1A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D1
> 68341A8D46A3D100
>
> +CREG: 1,"1030","639E"
>
> +CBM: 88
> 1B20003201114679785E96371A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D16834
> 1A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D1
> 68341A8D46A3D100
> AT+CSQ
> +CSQ: 18,99
>
> OK
>
> +CREG: 1,"1030","1401"
>
> +CBM: 88
> 07B000320111C8F4F99C76CF418D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D16834
> 1A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D1
> 68341A8D46A3D100
>
> OK
>
> * give the escape sequence to the Parani to drop back into
> * command mode
>
> +++
>
> * now disconnect from the phone
>
> ATH
>
> OK
>
> DISCONNECT
>
> * end
>
> Please note that the Parani and the S55 were previously paired.
>
> John
> |
|
| Back to top |
|
 |
Larry
Joined: 25 Jul 2007 Posts: 682
|
Posted: Sat Nov 24, 2007 9:18 am Post subject: Re: Bluetooth AT Commands (HCI Commands) How to Send ? |
|
|
"Flemming L. Baerentsen" wrote in$0$2102$edfadb0f@dtext02.news.tele.dk:
> Hi Darius,
>
> This question is not 100% aimed at your topic, but I think you can
> help me.
>
> What is the average time for establishing connection between two
> Bluetooth units.
> Timing start: The two units is in physical reading range.
> Timing stop: Unit one read unit two ID.
>
> I look forward to hear from you.
>
> Regards
> Flemming
>
>
I'm using a MotoROKR Z6m with BT DUN connection to a Nokia N800 Linux
internet tablet. From a cold start bootup until the phone beeps to
confirm the data connection is approximately 2 seconds. There are two
splash screens on the device. The first is a NOKIA on white background
with a little linear bootup guage across the bottom. When that guage
completes, Linux is loaded and a second splash screen comes up as Linux
loads its GUI and drivers off the internal non-volatile memory. The beep
happens when the second splash screen appears. By the time the GUI is
loaded 2 seconds later, opening applets are already connected to their
servers for new weather, updates, etc.
It's really fast!....lots faster than the wifi connection connects.
Connecting the tablet's File Manager to the ROKR's 2GB microSD memory
card over Bluetooth FTP is faster than waking up a USB hard drive to get
something, also about 2 seconds, too. Too bad the ROKR is incapable of
more than one BT connection at a time. It only uses one profile at a
time, disconnecting the internet DUN while the FTP is connected. If my
MotoROKR S9 stereo BT headset is connected, it won't connect to the
tablet at all on any function. You'd think Motorola, one of the largest
communications companies on the planet, could figure out how to make two
or 3 simultaneous BT connections, wouldn't you? Disappointing, very.
Larry
--
Xterm IS the ultimate video game...(c; |
|
| Back to top |
|
 |
Flemming L. Baerentsen
Joined: 23 Nov 2007 Posts: 3
|
Posted: Tue Nov 27, 2007 2:12 pm Post subject: Re: Bluetooth AT Commands (HCI Commands) How to Send ? |
|
|
"Larry" skrev i en meddelelse @208.49.80.253...
> "Flemming L. Baerentsen" wrote in
> $0$2102$edfadb0f@dtext02.news.tele.dk:
>
>> Hi Darius,
>>
>> This question is not 100% aimed at your topic, but I think you can
>> help me.
>>
>> What is the average time for establishing connection between two
>> Bluetooth units.
>> Timing start: The two units is in physical reading range.
>> Timing stop: Unit one read unit two ID.
>>
>> I look forward to hear from you.
>>
>> Regards
>> Flemming
>>
>>
>
> I'm using a MotoROKR Z6m with BT DUN connection to a Nokia N800 Linux
> internet tablet. From a cold start bootup until the phone beeps to
> confirm the data connection is approximately 2 seconds. There are two
> splash screens on the device. The first is a NOKIA on white background
> with a little linear bootup guage across the bottom. When that guage
> completes, Linux is loaded and a second splash screen comes up as Linux
> loads its GUI and drivers off the internal non-volatile memory. The beep
> happens when the second splash screen appears. By the time the GUI is
> loaded 2 seconds later, opening applets are already connected to their
> servers for new weather, updates, etc.
>
> It's really fast!....lots faster than the wifi connection connects.
>
> Connecting the tablet's File Manager to the ROKR's 2GB microSD memory
> card over Bluetooth FTP is faster than waking up a USB hard drive to get
> something, also about 2 seconds, too. Too bad the ROKR is incapable of
> more than one BT connection at a time. It only uses one profile at a
> time, disconnecting the internet DUN while the FTP is connected. If my
> MotoROKR S9 stereo BT headset is connected, it won't connect to the
> tablet at all on any function. You'd think Motorola, one of the largest
> communications companies on the planet, could figure out how to make two
> or 3 simultaneous BT connections, wouldn't you? Disappointing, very.
>
> Larry
> --
> Xterm IS the ultimate video game...(c;
Thanks for your answer Larry,
I now realize that my writtenquestion was missing an important detail, so I
will try to include this detail
What is the average time for establishing connection between two
Bluetooth units.
Initial condition: The two units have never meet before.
Timing start: The two units is in physical reading range.
Timing stop: Unit one read unit two ID.
I look forward to hear from you all.
Best regards
Flemming |
|
| Back to top |
|
 |
John Henderson
Joined: 25 Jul 2007 Posts: 165
|
Posted: Wed Nov 28, 2007 5:23 am Post subject: Re: Bluetooth AT Commands (HCI Commands) How to Send ? |
|
|
Flemming L. Baerentsen wrote:
> Thanks for your answer Larry,
>
> I now realize that my writtenquestion was missing an important
> detail, so I will try to include this detail
>
> What is the average time for establishing connection between
> two Bluetooth units.
> Initial condition: The two units have never meet before.
> Timing start: The two units is in physical reading range.
> Timing stop: Unit one read unit two ID.
If I've understood you correctly, I guess the average time to be
several seconds.
I sometimes run a Parani SD100 in inquiry scan mode (looking for
discoverable devices). If I then make a nearby mobile phone
Bluetooth discoverable, it takes typically 3 to 5 seconds for
the Parani to identify it to me (12-digit Bluetooth ID,
user-friendly name, and 6-digit device class code).
This figure is an estimate taken from limited crude
experimentation.
If the distance is considerably greater, the Parani can take
much longer (maybe 10 seconds or more) to report the Bluetooth
ID and device class code, while sometimes reporting the
user-friendly name as "**UNKNOWN**".
John |
|
| Back to top |
|
 |
Flemming L. Baerentsen
Joined: 23 Nov 2007 Posts: 3
|
Posted: Tue Nov 27, 2007 8:20 pm Post subject: Re: Bluetooth AT Commands (HCI Commands) How to Send ? |
|
|
"John Henderson" skrev i en meddelelse @mid.individual.net...
> Flemming L. Baerentsen wrote:
>
>> Thanks for your answer Larry,
>>
>> I now realize that my writtenquestion was missing an important
>> detail, so I will try to include this detail
>>
>> What is the average time for establishing connection between
>> two Bluetooth units.
>> Initial condition: The two units have never meet before.
>> Timing start: The two units is in physical reading range.
>> Timing stop: Unit one read unit two ID.
>
> If I've understood you correctly, I guess the average time to be
> several seconds.
>
> I sometimes run a Parani SD100 in inquiry scan mode (looking for
> discoverable devices). If I then make a nearby mobile phone
> Bluetooth discoverable, it takes typically 3 to 5 seconds for
> the Parani to identify it to me (12-digit Bluetooth ID,
> user-friendly name, and 6-digit device class code).
>
> This figure is an estimate taken from limited crude
> experimentation.
>
> If the distance is considerably greater, the Parani can take
> much longer (maybe 10 seconds or more) to report the Bluetooth
> ID and device class code, while sometimes reporting the
> user-friendly name as "**UNKNOWN**".
>
> John
Hi John,
Thank you for your answer, which was the answer I was looking for.
Some years ago I did a test with a bluetooth development board (bluetooth
version 1.1) and discovered the time to be similar to your test. Of which
version is your bluetooth devices?
Regards
Flemming |
|
| Back to top |
|
 |
John Henderson
Joined: 25 Jul 2007 Posts: 165
|
Posted: Wed Nov 28, 2007 11:12 am Post subject: Re: Bluetooth AT Commands (HCI Commands) How to Send ? |
|
|
Flemming L. Baerentsen wrote:
> Thank you for your answer, which was the answer I was looking
> for.
>
> Some years ago I did a test with a bluetooth development board
> (bluetooth version 1.1) and discovered the time to be similar
> to your test. Of which version is your bluetooth devices?
The Parani SD100 I use is a class 1 device, Bluetooth version
1.2 (class code 001F00).
The phones I tested are are a Siemens S55 (class code 720204)
and a Sony-Ericsson V600i (class code 520204). These are class
2, with the version not specified in the user manuals.
John
|
|
| Back to top |
|
 |
|
|
| Related Topics: | Bluetooth and voice commands Dear All I have a Sony Ericsson k800i and want to be able to use my mobile safely and legally whilst driving. I bought a Pama sun-visor mounted unit, but only after spending the money did I discover that the magicword facility of my phone doesn't work wit
Bluetooth Dongle Will Send but not Receive files Hi guys, I have a generic bluetooth USB dongle that I use to transfer my games/pics onto my Motorola v600. Every now and then I cannot send files to the phone althoughI can always retrieve files from the phone to my PC. Therefore this clearly means the do
software to send trough bluetooth from laptop Hello, is there a software to install on my laptop to send in automatic files to other application trough bluetooth? If there's, is it possible to know how many times does it send? Thanks, William
useing a bluetooth PDA and a Bluetooth GPRS phone to go onli Ok here is the deal, I know how to go online useing my HP 2215 and my SonyEricson t616 phone useing bluetooth and a dialup. While this is great its not exactly what I want to do. What I would like to do is use the GPRS funtionality on my phone to surf on
bluetooth stereo headphones and other bluetooth devices hello everyone, what I have: -siemens s55 -pc running w2k -kenwood hometheater set (dvd and amplituner) with normal chinch outputs what I bought already (but did not get by post yet): -Acer USB bluetooth dongle (for my pc) -BT100 headset (for my s55) what |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|