Bug 1149 - (int-53261) Nextel (iDen) BT cellphones improperly init'ed
(int-53261)
: Nextel (iDen) BT cellphones improperly init'ed
Status: RESOLVED WONTFIX
Product: Connectivity
Bluetooth
: 3.1
: N800 Maemo
: Low enhancement with 3 votes (vote)
: ---
Assigned To: unassigned
: bluetooth-bugs
:
:
:
:
  Show dependency tree
 
Reported: 2007-03-17 18:48 UTC by Marshall Jose
Modified: 2009-02-01 23:04 UTC (History)
2 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Marshall Jose (reporter) 2007-03-17 18:48:06 UTC
The N800 issues at least one AT command at connect-time which many Nextel
(iDen)
cellphones don't recognize. The N800 then improperly concludes the cellphone is
unready for connection. The result is that the cellphone briefly announces a
bluetooth connection, then quickly announces BT disconnection.

The problem shows itself on my cellphone (i605) which provides a problem-free
connection on Windows and other Linux computers, neither of which send any of
the advanced (AT+) queries to the cellphone. I believe the fix would involve
either auto-recognition of the phone or else allowing the user to request a
simpler connection method (e.g., one which doesn't require an answer from
AT+GCAP). Perhaps the fix could be made at the same time bug #1095 is
addressed. 

N.B. See the "sdptool browse" output at the end of this posting.
=============================================================

Running syslogd during this event shows the following events:

Mar 16 16:44:51 Nokia-N800-51 icd 1.1.22[1670]: Auto connect setting changed to
'Phone'
Mar 16 16:44:53 Nokia-N800-51 icd 1.1.22[1670]: [[ANY]] icd_request_attempt:
new
IAP '(null)'
Mar 16 16:44:53 Nokia-N800-51 icd 1.1.22[1670]: [[ANY]] No suitable WLAN IAPs
found.
Mar 16 16:44:53 Nokia-N800-51 icd 1.1.22[1670]: Sent "set_powersave"
Mar 16 16:44:53 Nokia-N800-51 wlancond 1.1.12[1665]: Received set_powersave
Mar 16 16:44:53 Nokia-N800-51 wlancond 1.1.12[1665]: Could not set WPA mode
Mar 16 16:44:53 Nokia-N800-51 wlancond 1.1.12[1665]: wlan0 is DOWN
Mar 16 16:44:53 Nokia-N800-51 wlancond 1.1.12[1665]: Wlancond state change,
old_state: WLAN_NOT_INITIALIZED, new_state: WLAN_NOT_INITIALIZED
Mar 16 16:44:53 Nokia-N800-51 wlancond 1.1.12[1665]: WLAN powersave on
Mar 16 16:44:53 Nokia-N800-51 icd 1.1.22[1670]: [[ANY]] DUN: Determined to use
'Nextel'
Mar 16 16:44:53 Nokia-N800-51 icd 1.1.22[1670]: [[ANY]] icd_request_attempt:
new
IAP 'Nextel'
Mar 16 16:44:53 Nokia-N800-51 icd 1.1.22[1670]: [Nextel] Calling connect of
'Bluetooth DUN'
Mar 16 16:44:53 Nokia-N800-51 icd 1.1.22[1670]: [Nextel] State changed from
IDLE
to CONNECTING
Mar 16 16:44:53 Nokia-N800-51 icd 1.1.22[1670]: [Nextel] Calling connect of
'Bluetooth DUN'
Mar 16 16:44:53 Nokia-N800-51 maemo_af_desktop[1739]: common_inetstate:
connection  'Nextel' with type 'DUN_CDMA_PSD' and status 'CONNECTING' (1) and
reason '' 
Mar 16 16:44:53 Nokia-N800-51 maemo_af_desktop[1739]: connecting contains 1
elements, connected 0
Mar 16 16:44:53 Nokia-N800-51 maemo_af_desktop[1739]: changing to 'Nextel'
Mar 16 16:44:53 Nokia-N800-51 maemo_af_desktop[1739]: common_inetstate:
reporting state '2', name 'Nextel', type '32'
Mar 16 16:44:53 Nokia-N800-51 maemo_af_desktop[1739]: inet status: blinking 1
Mar 16 16:44:53 Nokia-N800-51 maemo_af_desktop[1739]: inet status: added new
timeout
Mar 16 16:44:53 Nokia-N800-51 maemo_af_desktop[1739]: updating active conn
Mar 16 16:44:53 Nokia-N800-51 maemo_af_desktop[1739]: not wlan
Mar 16 16:44:53 Nokia-N800-51 btcond[1655]: Received rfcomm_connect
Mar 16 16:44:53 Nokia-N800-51 btcond[1655]:
schedule_capability_update(00:12:8A:53:ED:40, DUN)
Mar 16 16:44:53 Nokia-N800-51 btcond[1655]: Sending SDP query to
00:12:8A:53:ED:40
Mar 16 16:44:53 Nokia-N800-51 iap_conndlg 1.3.44[1745]: NameownerChanged(:1.92,
, :1.92)
Mar 16 16:44:53 Nokia-N800-51 icd 1.1.22[1670]: Service ':1.92' belongs now to
base service ':1.92'.
Mar 16 16:44:53 Nokia-N800-51 iap_conndlg 1.3.44[1745]:
NameownerChanged(com.nokia.btsdp, , :1.92)
Mar 16 16:44:53 Nokia-N800-51 icd 1.1.22[1670]: Service 'com.nokia.btsdp'
belongs now to base service ':1.92'.
Mar 16 16:44:53 Nokia-N800-51 btsdp[1875]: BT SDP 1.0.6 started.
Mar 16 16:44:53 Nokia-N800-51 btsdp[1875]: get_services_request()
Mar 16 16:44:53 Nokia-N800-51 btsdp[1875]: Adding string to search list: DUN
Mar 16 16:44:53 Nokia-N800-51 btsdp[1875]: running sdp-query: sdp-query
00:12:8A:53:ED:40 DUN
Mar 16 16:44:56 Nokia-N800-51 btcond[1655]: Connection complete (handle 44, bda
00:12:8A:53:ED:40)
Mar 16 16:44:56 Nokia-N800-51 btcond[1655]: sending
connection_status("00:12:8A:53:ED:40", "connected", 0x00) signal
Mar 16 16:44:57 Nokia-N800-51 iap_conndlg 1.3.44[1745]: the gateway pin dialogs
were not initialized
Mar 16 16:44:57 Nokia-N800-51 maemo_af_desktop[1739]: conn_bt: gw status: '2',
reason 00
Mar 16 16:44:57 Nokia-N800-51 maemo_af_desktop[1739]: conn_bt: loading icon
'qgn_stat_bluetooth_active' for state 1
Mar 16 16:44:57 Nokia-N800-51 maemo_af_desktop[1739]: GLIB DEBUG default -
signal sended 1
Mar 16 16:44:57 Nokia-N800-51 maemo_af_desktop[1739]: GLIB DEBUG default -
Start: 5 Place here: 4
Mar 16 16:44:57 Nokia-N800-51 maemo_af_desktop[1739]: GLIB DEBUG default -
Start: 5 Place here: 5
Mar 16 16:44:57 Nokia-N800-51 btcond[1655]: new handle 44 added (usage count:
1)
Mar 16 16:44:57 Nokia-N800-51 maemo_af_desktop[1739]: conn_bt: name change:
00:12:8A:53:ED:40 = Motorola Phone
Mar 16 16:44:57 Nokia-N800-51 btsdp[1875]: 1 supported services
Mar 16 16:44:57 Nokia-N800-51 btsdp[1875]: DUN, channel 2, ttl 0, "Dial-up
networking"
Mar 16 16:44:57 Nokia-N800-51 iap_conndlg 1.3.44[1745]:
NameownerChanged(com.nokia.btsdp, :1.92, )
Mar 16 16:44:57 Nokia-N800-51 icd 1.1.22[1670]: Service 'com.nokia.btsdp' no
longer exists.
Mar 16 16:44:57 Nokia-N800-51 icd 1.1.22[1670]: Base service ':1.92' no longer
exists.
Mar 16 16:44:57 Nokia-N800-51 iap_conndlg 1.3.44[1745]: NameownerChanged(:1.92,
:1.92, )
Mar 16 16:44:57 Nokia-N800-51 btsdp[1875]: Exiting.
Mar 16 16:44:57 Nokia-N800-51 btcond[1655]: btsdp_notify()
Mar 16 16:44:57 Nokia-N800-51 btcond[1655]: handle_btsdp_reply()
Mar 16 16:44:57 Nokia-N800-51 btcond[1655]: 00:12:8A:53:ED:40: adding DUN,
channel 2, ttl 0, "Dial-up networking"
Mar 16 16:44:57 Nokia-N800-51 btcond[1655]:
connect_service("00:12:8A:53:ED:40",
"DUN", ":1.64", auth, noencrypt, "any")
Mar 16 16:44:57 Nokia-N800-51 btcond[1655]: Connect in progress
Mar 16 16:44:57 Nokia-N800-51 btcond[1655]: process_update_queue()
Mar 16 16:44:58 Nokia-N800-51 hcid[793]: link_key_request
(sba=00:19:4F:DB:29:73, dba=00:12:8A:53:ED:40)
Mar 16 16:44:58 Nokia-N800-51 btcond[1655]: sock_io_cb: connected
Mar 16 16:44:58 Nokia-N800-51 ke_recv[1642]: handle_kevent:327: i|m|p:
org.kernel.kevent|add|/org/kernel/class/tty/rfcomm0
Mar 16 16:44:58 Nokia-N800-51 btcond[1655]: connect_cb: (00:12:8A:53:ED:40,
DUN): connected
Mar 16 16:44:58 Nokia-N800-51 btcond[1655]: add_name_listener(:1.64)
Mar 16 16:44:58 Nokia-N800-51 btcond[1655]: sending
rfcomm_status("00:12:8A:53:ED:40", "DUN", "connected") signal
Mar 16 16:44:58 Nokia-N800-51 icd 1.1.22[1670]: Using RFCOMM device:
/dev/rfcomm0
Mar 16 16:44:58 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-Open:
'/dev/rfcomm0'
Mar 16 16:44:58 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-Sending: 'AT&F'
Mar 16 16:44:59 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-CB: IN
Mar 16 16:44:59 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-Received: 'OK'
Mar 16 16:44:59 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-Sending: 'AT+GCAP'
Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-CB: IN
Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-Received: 'ERROR'
Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-Sending: 'AT+CPAS'
Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-CB: IN
Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-Received: '+CPAS:
0'
Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-Received: 'OK'
Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [Nextel] Error: Gateway does
not
support required cellular system (com.nokia.icd.error.gateway_error)
Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [Nextel] State changed from
CONNECTING to DISCONNECTING
Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [Nextel] Disconnect: killing
IAP
Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-Close
Mar 16 16:45:00 Nokia-N800-51 maemo_af_desktop[1739]: common_inetstate:
connection  'Nextel' with type 'DUN_CDMA_PSD' and status 'DISCONNECTING' (3)
and
reason 'com.nokia.icd.error.gateway_error' 
Mar 16 16:45:00 Nokia-N800-51 maemo_af_desktop[1739]: connecting contains 1
elements, connected 0
Mar 16 16:45:00 Nokia-N800-51 maemo_af_desktop[1739]: closing 'Nextel'
Mar 16 16:45:00 Nokia-N800-51 maemo_af_desktop[1739]: common_inetstate:
reporting state '4', name 'Nextel', type '32'
Mar 16 16:45:00 Nokia-N800-51 maemo_af_desktop[1739]: inet status: blinking 1
Mar 16 16:45:00 Nokia-N800-51 btcond[1655]: Received rfcomm_disconnect
Mar 16 16:45:01 Nokia-N800-51 maemo_af_desktop[1739]: inet status: already has
timeout
Mar 16 16:45:01 Nokia-N800-51 btcond[1655]:
disconnect_service("00:12:8A:53:ED:40", "DUN")
Mar 16 16:45:01 Nokia-N800-51 maemo_af_desktop[1739]: updating active conn
Mar 16 16:45:01 Nokia-N800-51 btcond[1655]: sending rfcomm_status("DUN",
"00:12:8A:53:ED:40", "disconnected") signal
Mar 16 16:45:01 Nokia-N800-51 maemo_af_desktop[1739]: not wlan
Mar 16 16:45:01 Nokia-N800-51 btcond[1655]: remove_name_listener(:1.64)
Mar 16 16:45:01 Nokia-N800-51 icd 1.1.22[1670]: Disconnected from RFCOMM
device:
/dev/rfcomm0
Mar 16 16:45:01 Nokia-N800-51 icd 1.1.22[1670]: [Nextel] State changed from
DISCONNECTING to IDLE
Mar 16 16:45:01 Nokia-N800-51 icd 1.1.22[1670]: Clearing gconf proxy settings.
Mar 16 16:45:01 Nokia-N800-51 maemo_af_desktop[1739]: common_inetstate:
connection  'Nextel' with type 'DUN_CDMA_PSD' and status 'IDLE' (0) and reason
'com.nokia.icd.error.gateway_error' 
Mar 16 16:45:01 Nokia-N800-51 maemo_af_desktop[1739]: connecting contains 0
elements, connected 0
Mar 16 16:45:01 Nokia-N800-51 maemo_af_desktop[1739]: common_inetstate:
reporting state '1', name 'Nextel', type '0'
Mar 16 16:45:01 Nokia-N800-51 maemo_af_desktop[1739]: inet status: blinking 0
Mar 16 16:45:01 Nokia-N800-51 ke_recv[1642]: handle_kevent:327: i|m|p:
org.kernel.kevent|remove|/org/kernel/class/tty/rfcomm0
Mar 16 16:45:01 Nokia-N800-51 maemo_af_desktop[1739]: updating active conn
Mar 16 16:45:01 Nokia-N800-51 maemo_af_desktop[1739]: not wlan
Mar 16 16:45:04 Nokia-N800-51 btcond[1655]: BT connection to 00:12:8A:53:ED:40
was closed by local event
=============================================================

"sdptool browse" on this phone (from a desktop computer) returned the
following:

Browsing 00:12:8A:53:ED:40 ...
Service Name: Voice Gateway
Service RecHandle: 0x10000
Service Class ID List:
  "Handfree Audio Gateway" (0x111f)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 4
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Handfree Audio Gateway" (0x111f)
    Version: 0x0100

Service Name: Dial-up networking
Service RecHandle: 0x10001
Service Class ID List:
  "Dialup Networking" (0x1103)
  "Generic Networking" (0x1201)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 2
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100

Service Name: Voice Gateway
Service RecHandle: 0x10002
Service Class ID List:
  "Headset Audio Gateway" (0x1112)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 3
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Headset Audio Gateway" (0x1112)
    Version: 0x0100

Service Name: Serial Port
Service RecHandle: 0x10003
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Comment 1 Marshall Jose (reporter) 2007-04-04 13:23:44 UTC
Bug also exists in 3.2007.10-7, apparently within gwhwdetect.
Comment 2 Andre Klapper maemo.org 2008-06-03 21:06:10 UTC
forwarding two comments from the internal ticket:


------- Comment  #8  2007-05-22 15:03:04 -------

(In reply to comment #0)
> Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-Received: '+CPAS:
> 0'
> Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [0x31f98] AT-Received: 'OK'
> Mar 16 16:45:00 Nokia-N800-51 icd 1.1.22[1670]: [Nextel] Error: Gateway does
> not support required cellular system (com.nokia.icd.error.gateway_error)

The phone is actually failing a test, where ICd checks that the HW of the phone
supports the cellular type of the selected IAP (e.g. that GSM phone is used
with GSM IAP and CDMA phone is used with CDMA IAP).

I have a strong feeling that we do _not_ want to drop this check. Furthermore,
I don't think we have any requirement to support iDEN networks - at least we do
not have any UI options to select any other networks than GSM/UMTS or CDMA.

Should I resolve this one as WONTFIX or remove the check? If I remove the
check, it probably does not make much sense to run any "detection AT commands"
in ICd (outside gwhwdetect). Probably I could also make a gconf key, which set
the ICd would skip the detection.

------- Comment #9 2007-06-07 16:35:52 -------

There is requirements to support only GSM and CDMA, not iDEN, thus this bug is
WONTFIX.

*If* I have time, I'll make an optional/hidden IAP specific GConf setting to
disable "cellular network type detection". This hack could then be used to
connect also iDEN phones.
Comment 3 Andre Klapper maemo.org 2009-01-20 17:46:22 UTC
This is still valid for latest Diablo (5.2008.43-7) I assume?
Comment 4 Quim Gil nokia 2009-02-01 23:04:59 UTC
From comment #2

> There is requirements to support only GSM and CDMA, not iDEN, thus this bug 
> is WONTFIX.