example/hfp: use two columns for help menu

This commit is contained in:
Matthias Ringwald 2016-10-31 12:23:56 +01:00
parent 729074c4fd
commit 8a7d93dccc
2 changed files with 41 additions and 117 deletions

View File

@ -71,7 +71,7 @@ const char hfp_ag_service_name[] = "BTstack HFP AG Test";
// static bd_addr_t device_addr = {0x00, 0x07, 0xB0, 0x83, 0x02, 0x5E};
// CC256x
// bd_addr_t device_addr = { 0xD0, 0x39, 0x72, 0xCD, 0x83, 0x45};
// Minijamox
// Mini Jambox
bd_addr_t device_addr = { 0x00, 0x15, 0x83, 0x5F, 0x9D, 0x46};
// static uint8_t codecs[] = {HFP_CODEC_CVSD, HFP_CODEC_MSBC};
@ -298,61 +298,30 @@ static void show_usage(void){
gap_local_bd_addr(iut_address);
printf("\n--- Bluetooth HFP Audiogateway (AG) unit Test Console %s ---\n", bd_addr_to_str(iut_address));
printf("---\n");
printf("\n");
printf("a - establish HFP connection to PTS module %s\n", bd_addr_to_str(device_addr));
// printf("A - release HFP connection to PTS module\n");
printf("b - establish AUDIO connection\n");
printf("B - release AUDIO connection\n");
printf("c - simulate incoming call from 1234567\n");
printf("C - simulate call from 1234567 dropped\n");
printf("b - establish AUDIO connection | B - release AUDIO connection\n");
printf("c - simulate incoming call from 1234567 | C - simulate call from 1234567 dropped\n");
printf("d - report AG failure\n");
printf("e - answer call on AG\n");
printf("E - reject call on AG\n");
printf("r - disable in-band ring tone\n");
printf("R - enable in-band ring tone\n");
printf("f - Disable cellular network\n");
printf("F - Enable cellular network\n");
printf("g - Set signal strength to 0\n");
printf("G - Set signal strength to 5\n");
printf("h - Disable roaming\n");
printf("H - Enable roaming\n");
printf("i - Set battery level to 3\n");
printf("I - Set battery level to 5\n");
printf("e - answer call on AG | E - reject call on AG\n");
printf("r - disable in-band ring tone | R - enable in-band ring tone\n");
printf("f - Disable cellular network | F - Enable cellular network\n");
printf("g - Set signal strength to 0 | G - Set signal strength to 5\n");
printf("h - Disable roaming | H - Enable roaming\n");
printf("i - Set battery level to 3 | I - Set battery level to 5\n");
printf("j - Answering call on remote side\n");
printf("k - Clear memory #1\n");
printf("K - Set memory #1\n");
printf("l - Clear last number\n");
printf("L - Set last number\n");
printf("k - Clear memory #1 | K - Set memory #1\n");
printf("l - Clear last number | L - Set last number\n");
printf("m - simulate incoming call from 7654321\n");
// printf("M - simulate call from 7654321 dropped\n");
printf("n - Disable Voice Regocnition\n");
printf("N - Enable Voice Recognition\n");
printf("o - Set speaker volume to 0 (minimum)\n");
printf("O - Set speaker volume to 9 (default)\n");
printf("p - Set speaker volume to 12 (higher)\n");
printf("P - Set speaker volume to 15 (maximum)\n");
printf("q - Set microphone gain to 0 (minimum)\n");
printf("Q - Set microphone gain to 9 (default)\n");
printf("s - Set microphone gain to 12 (higher)\n");
printf("S - Set microphone gain to 15 (maximum)\n");
printf("n - Disable Voice Regocnition | N - Enable Voice Recognition\n");
printf("o - Set speaker volume to 0 (minimum) | O - Set speaker volume to 9 (default)\n");
printf("p - Set speaker volume to 12 (higher) | P - Set speaker volume to 15 (maximum)\n");
printf("q - Set microphone gain to 0 (minimum) | Q - Set microphone gain to 9 (default)\n");
printf("s - Set microphone gain to 12 (higher) | S - Set microphone gain to 15 (maximum)\n");
printf("t - terminate connection\n");
printf("u - join held call\n");
printf("v - discover nearby HF units\n");

View File

@ -115,82 +115,37 @@ static void show_usage(void){
gap_local_bd_addr(iut_address);
printf("\n--- Bluetooth HFP Hands-Free (HF) unit Test Console %s ---\n", bd_addr_to_str(iut_address));
printf("---\n");
printf("a - establish SLC connection to device %s\n", bd_addr_to_str(device_addr));
printf("\n");
printf("a - establish SLC to %s | ", bd_addr_to_str(device_addr));
printf("A - release SLC connection to device\n");
printf("b - establish Audio connection\n");
printf("B - release Audio connection\n");
printf("c - disable registration status update for all AG indicators\n");
printf("C - enable registration status update for all AG indicators\n");
printf("d - query network operator.\n");
printf("D - set HFP AG registration status update for individual indicators (IIA)\n");
printf("e - disable reporting of the extended AG error result code\n");
printf("E - enable reporting of the extended AG error result code\n");
printf("f - answer incoming call\n");
printf("F - Hangup call\n");
printf("g - query network operator name\n");
printf("G - reject incoming call\n");
printf("i - dial 1234567\n");
printf("I - dial 7654321\n");
printf("j - dial #1\n");
printf("J - dial #99\n");
printf("k - deactivate call waiting notification\n");
printf("K - activate call waiting notification\n");
printf("l - deactivate calling line notification\n");
printf("L - activate calling line notification\n");
printf("m - deactivate echo canceling and noise reduction\n");
printf("M - activate echo canceling and noise reduction\n");
printf("n - deactivate voice recognition\n");
printf("N - activate voice recognition\n");
printf("o - Set speaker volume to 0 (minimum)\n");
printf("O - Set speaker volume to 9 (default)\n");
printf("p - Set speaker volume to 12 (higher)\n");
printf("P - Set speaker volume to 15 (maximum)\n");
printf("q - Set microphone gain to 0 (minimum)\n");
printf("Q - Set microphone gain to 9 (default)\n");
printf("s - Set microphone gain to 12 (higher)\n");
printf("S - Set microphone gain to 15 (maximum)\n");
printf("b - establish Audio connection | B - release Audio connection\n");
printf("d - query network operator | D - Enable HFP AG registration status update via bitmap(IIA)\n");
printf("f - answer incoming call | F - Hangup call\n");
printf("g - query network operator name | G - reject incoming call\n");
printf("i - dial 1234567 | I - dial 7654321\n");
printf("j - dial #1 | J - dial #99\n");
printf("o - Set speaker volume to 0 (minimum) | O - Set speaker volume to 9 (default)\n");
printf("p - Set speaker volume to 12 (higher) | P - Set speaker volume to 15 (maximum)\n");
printf("q - Set microphone gain to 0 (minimum) | Q - Set microphone gain to 9 (default)\n");
printf("s - Set microphone gain to 12 (higher) | S - Set microphone gain to 15 (maximum)\n");
printf("t - terminate connection\n");
printf("u - send 'user busy' (TWC 0)\n");
printf("U - end active call and accept other call' (TWC 1)\n");
printf("v - Swap active call and hold/waiting call (TWC 2)\n");
printf("V - Join held call (TWC 3)\n");
printf("w - Connect calls (TWC 4)\n");
printf("W - redial\n");
printf("v - Swap active call call (TWC 2) | V - Join held call (TWC 3)\n");
printf("w - Connect calls (TWC 4) | W - redial\n");
printf("c/C - disable/enable registration status update for all AG indicators\n");
printf("e/E - disable/enable reporting of the extended AG error result code\n");
printf("k/K - deactivate/activate call waiting notification\n");
printf("l/L - deactivate/activate calling line notification\n");
printf("m/M - deactivate/activate echo canceling and noise reduction\n");
printf("n/N - deactivate/activate voice recognition\n");
printf("0123456789#*-+ - send DTMF dial tones\n");
printf("x - request phone number for voice tag\n");
printf("X - current call status (ECS)\n");
printf("y - release call with index 2 (ECC)\n");
printf("Y - private consulation with call 2(ECC)\n");
printf("[ - Query Response and Hold status (RHH ?)\n");
printf("] - Place call in a response and held state(RHH 0)\n");
printf("{ - Accept held call(RHH 1)\n");
printf("} - Reject held call(RHH 2)\n");
printf("x - request phone number for voice tag | X - current call status (ECS)\n");
printf("y - release call with index 2 (ECC) | Y - private consulation with call 2(ECC)\n");
printf("[ - Query Response and Hold status (RHH ?) | ] - Place call in a response and held state(RHH 0)\n");
printf("{ - Accept held call(RHH 1) | } - Reject held call(RHH 2)\n");
printf("? - Query Subscriber Number (NUM)\n");
printf("! - Update HF indicator with assigned number 1 (HFI)\n");
printf("---\n");
printf("Ctrl-c - exit\n");
printf("---\n");