Test Mode
Hi Marcel,
The LMP specification speaks about the Test Mode and Methodology saying that Adaptive power control, adaptive freq hopping scenarios can be imitated provided the respective LMP PDU's are sent.
How do I make the HCI commands initiate these LMP PDU's? The HCI specification have only the "Test Enable" and "Read and Write Loopback" test commands but other no commands which will result in inititating the LM to the testing modes. How do i conduct these adaptive tests?
Thank you,
regards,
Manjunath
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Manjunath,
Quoted 9 lines
The LMP specification speaks about the Test Mode and Methodology saying that Adaptive power control, adaptive freq hopping scenarios can be imitated provided the respective LMP PDU's are sent.
How do I make the HCI commands initiate these LMP PDU's? The HCI specification have only the "Test Enable" and "Read and Write Loopback" test commands but other no commands which will result in inititating the LM to the testing modes. How do i conduct these adaptive tests?
I am the wrong person to talk to about these things. I never used the test mode (as I said sometimes now) and actually I think that I never will do.
Regards
Marcel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 9 lines
The LMP specification speaks about the Test Mode and Methodology saying that Adaptive power control, adaptive freq hopping scenarios can be imitated provided the respective LMP PDU's are sent.
How do I make the HCI commands initiate these LMP PDU's? The HCI specification have only the "Test Enable" and "Read and Write Loopback" test commands but other no commands which will result in inititating the LM to the testing modes. How do i conduct these adaptive tests?
It's quite deliberate that the only thing you can do with a production device is put it into test mode as a slave (HCI_Enable_Device_Under_Test_Mode), requiring all test instructions to be sent from the master. To do the test end you need a specialist tester. These tend to be expensive since they're aimed at manufacturers doing a lot of testing.
You can use local and remote loopback without any extra hardware support, however. They are completely separate from the test modes you are talking about.
Since the features aren't available over HCI, you need to ask somewhere else. However, if you're looking for a cheap way of using the Bluetooth test modes you're probably out of luck. Most manufacturers (including us) provide some simplified but non-standard test commands you can run between two modules for RF testing and characterisation.
Signature · 28 lines
Peter Stephenson <[email protected]> Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi peter,
Thanks for the reply. What scenario should i be looking for inorder to set up these tests. Can I conduct the tests using my dongle as a slave and a CATC or Frontline or a Mobiwave BT trainer/protocol analyser as the Master. Will I be able to modify the baseband to suite my needs? Do they have a provision for fusing new codes (something like a flash)??
I think i better write to the sales person from respective organisations....
regards,
manjunath
Quoted 49 lines · Peter Stephenson
Quoted 11 lines
The LMP specification speaks about the Test Mode and Methodology saying that Adaptive power control, adaptive freq hopping scenarios can be imitated provided the respective LMP PDU's are sent.
How do I make the HCI commands initiate these LMP PDU's? The HCI specification have only the "Test Enable" and "Read and Write Loopback" test commands but other no commands which will result in inititating the LM to the testing modes. How do i conduct these adaptive tests?
It's quite deliberate that the only thing you can do with a production device is put it into test mode as a slave (
HCI_Enable_Device_Under_Test_Mode), requiring all test instructions to be sent from the master. To do the test end you need a specialist tester. These tend to be expensive since they're aimed at manufacturers doing a lot of testing.You can use local and remote loopback without any extra hardware support, however. They are completely separate from the test modes you are talking about.
Since the features aren't available over HCI, you need to ask somewhere else. However, if you're looking for a cheap way of using the Bluetooth test modes you're probably out of luck. Most manufacturers (including us) provide some simplified but non-standard test commands you can run between two modules for RF testing and characterisation.
--
Peter Stephenson <[email protected]> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Quoted 10 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 6 lines · Manjunath Prabhu
Thanks for the reply. What scenario should i be looking for inorder to set up these tests. Can I conduct the tests using my dongle as a slave and a CATC or Frontline or a Mobiwave BT trainer/protocol analyser as the Master. Will I be able to modify the baseband to suite my needs? Do they have a provision for fusing new codes (something like a flash)??
If you mean implementation-specific tests, typically they will do simple transmissions and bit error rate measurements and possibly not a lot more. You will either need two devices of the appropriate manufacturer, or something like a signal generator; a Bluetooth sniffer isn't likely to be good enough. (You might have some luck with the trainer-capable sniffers, but I don't have any experience of them.) It's unlikely you'll be able to modify the test modes in any substantial way. You won't be able to control them from Bluez without some hacking.
Quoted 1 line
I think i better write to the sales person from respective organisations....
Yes, indeed. If you're determined to do this under Linux, you'd better mention it; I don't think it's widely supported for test modes at the moment.
pws
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi Peter,
Quoted 19 lines · Peter Stephenson
Quoted 11 lines
The LMP specification speaks about the Test Mode and Methodology saying that Adaptive power control, adaptive freq hopping scenarios can be imitated provided the respective LMP PDU's are sent.
How do I make the HCI commands initiate these LMP PDU's? The HCI specification have only the "Test Enable" and "Read and Write Loopback" test commands but other no commands which will result in inititating the LM to the testing modes. How do i conduct these adaptive tests?
It's quite deliberate that the only thing you can do with a production device is put it into test mode as a slave (
HCI_Enable_Device_Under_Test_Mode), requiring all test instructions to be sent from the master. To do the test end you need a specialist tester. These tend to be expensive since they're aimed at manufacturers doing a lot of testing.
Quoted 3 lines
You can use local and remote loopback without any extra hardware support, however. They are completely separate from the test modes you are talking about.
Can you tell me how this can be done??? I am trying to set the device for loopback but not able to get through......How do I set the loopback without entering the Test mode.
thanks,
regards,
Manjunath
Quoted 27 lines
Since the features aren't available over HCI, you need to ask somewhere else. However, if you're looking for a cheap way of using the Bluetooth test modes you're probably out of luck. Most manufacturers (including us) provide some simplified but non-standard test commands you can run between two modules for RF testing and characterisation.
--
Peter Stephenson <[email protected]> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Quoted 10 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Manjunath Prabhu
Can you tell me how this can be done??? I am trying to set the device for loopback but not able to get through......How do I set the loopback without entering the Test mode.
Use HCI_write_loopback_mode. For local this is trivial; either it works straight away or something is wrong. For remote, you may need to have a connection already set up and I believe there may be restrictions as to whether you are master or slave on the link; try both.
Since these are test modes, not designed for normal use, keep it as simple as possible. Start from scratch for local loopback, start with just a single remote connection for remote loopback.
pws
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi Peter,
Quoted 11 lines · Peter Stephenson
Quoted 3 lines · Manjunath Prabhu
Can you tell me how this can be done??? I am trying to set the device for loopback but not able to get through......How do I set the loopback without entering the Test mode.
Use
HCI_write_loopback_mode. For local this is trivial; either it works straight away or something is wrong. For remote, you may need to have a connection already set up and I believe there may be restrictions as to whether you are master or slave on the link; try both.
I had tried this for local loopback......the write command
root]# hcitool cmd 0x06 0x0002 0x01
Quoted 1 line
Hci dump output is
< HCI Command: Unknown (0x06|0x0002) plen 1
01
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4
01 02 18 11
Status shows 11 which is "HCI unsupported feature". I am using a version 1.1 anycom-120 usb dongle.
Regards,
manjunath
Quoted 20 lines
Since these are test modes, not designed for normal use, keep it as simple as possible. Start from scratch for local loopback, start with just a single remote connection for remote loopback.
pws
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Quoted 10 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 2 lines · Manjunath Prabhu
Status shows 11 which is "HCI unsupported feature". I am using a version 1.1 anycom-120 usb dongle.
Maybe the device doesn't support loopback.
It's not mandatory (in fact, nothing at HCI is mandatory - it's not a qualifiable stack layer). There's no features bit to tell you if it's supported as it's a test command.
The Anycom-120 dongle is a Silicon Wave dongle. I don't know if they put loopback support in all (any?) of their dongles. It's not really that useful for anything other than host code testing (which most people don't want to do).
CSR devices support loopback (but we don't test it that thoroughly since hardly anybody ever uses it, and even when they do it's as a test so they don't care if it's not that robust).
Use hciconfig -a to see if it's a 1.2 device. If it is, it might support the HCI_Read_Local_Supported_Commands command, which will give you a list of all the commands the dongle supports. Use the BT 1.2 spec to find out the OCF and OGF and to decode the result.
Having said that, even it it's a 1.2 device it might not support the HCI_Read_Local_Supported_Commands command (in which case it should return error code 0x01).
Even then, it might claim to support the loopback command as it may understand the command but be unable to enter loopback mode for some other reason (like, for example, the loopback command must be the first command after a reset for some manufacturer specific reasons, or the device must not be scanning).
If you really need the feature then contact the manufacturer directly. However, most people have no use for the command, so don't be too surprised if it's not supported.
- Steven
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi,
I was able to conduct the local loopback test on DBT-120...so i can state that anycom usb-120 does not support the HCI_Write_Loopback_Mode command.
I tried the remote loopback test as per Peter's instructions and the spec ....it doesn't seem to work.
I first have set my remote device(B) for Remote_loopback (Becoz estabhlising a connection and then setting for loopback doesn't work). I use then the Write command and verify that its set using the Read command. I now establish a HCI connection from my local device(A) to B. The connection is established. From A, i send a command packet to B, expecting a loopback event, instead i get a regular reply for the command packet (as though the remote device is not set for loopback). "hcitool con" on A shows the connection.
< ACL 00:11:35:00:22:B9 handle 41 state 1 lm MASTER
"hcitool con" on B doesn't show anything.
I also tried the switch role for B to be the master....but it remains as the slave.
Hope you can help me out.
Thanks,
regards,
manjunath
Quoted 54 lines · Steven Singer
Quoted 2 lines · Manjunath Prabhu
Status shows 11 which is "HCI unsupported feature". I am using a version 1.1 anycom-120 usb dongle.
Maybe the device doesn't support loopback.
It's not mandatory (in fact, nothing at HCI is mandatory - it's not a qualifiable stack layer). There's no features bit to tell you if it's supported as it's a test command.
The Anycom-120 dongle is a Silicon Wave dongle. I don't know if they put loopback support in all (any?) of their dongles. It's not really that useful for anything other than host code testing (which most people don't want to do).
CSR devices support loopback (but we don't test it that thoroughly since hardly anybody ever uses it, and even when they do it's as a test so they don't care if it's not that robust).
Use hciconfig -a to see if it's a 1.2 device. If it is, it might support the
HCI_Read_Local_Supported_Commandscommand, which will give you a list of all the commands the dongle supports. Use the BT 1.2 spec to find out the OCF and OGF and to decode the result.Having said that, even it it's a 1.2 device it might not support the
HCI_Read_Local_Supported_Commandscommand (in which case it should return error code0x01).Even then, it might claim to support the loopback command as it may understand the command but be unable to enter loopback mode for some other reason (like, for example, the loopback command must be the first command after a reset for some manufacturer specific reasons, or the device must not be scanning).
If you really need the feature then contact the manufacturer directly. However, most people have no use for the command, so don't be too surprised if it's not supported.
- Steven
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Quoted 10 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users