Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Jaffa
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition
Accepted Solution

Unreliable wifi connection to BB10 Dev Alpha in BlackBerry 10 Native SDK

I'm using Ubuntu 12.04 with my shiny new BlackBerry 10 Dev Alpha. I've set up the development environment and configured the connection to my device (over wifi).

 

After enabling Developer Mode on the device I can deploy HelloCascades and my own app, but the "wifi" connection in Eclipse is very unreliable.

 

I can maintain a ping to the device from my desktop, it's in the same room as the wifi router and no other devices are having problems on the wifi; but every time I want to do something (even if I only deployed less than a minute ago), I have to right click on "wifi" in the Project Explorer and select BlackBerry Tools > Connect. Sometimes it'll work, but most of the time I'll get various errors ("connection timed out" is the most common).

 

Whilst it's connected, assuming it doesn't drop, it works fine.

 

Does anybody have any ideas?

__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Developer
Innovatology
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course

Re: Unreliable wifi connection to BB10 Dev Alpha in BlackBerry 10 Native SDK

Earlier versions of PlayBook OS had similar issues. Things that helped for some users:

  • changing from Wireless-N to Wireless-G
  • changing from WPA2 to WPA or even WEP
  • keeping the connection alive with perpetual pings
  • disabling power management features on the router
  • updating wifi router firmware
  • trying a different wifi router
Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Developer
Jaffa
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition

Re: Unreliable wifi connection to BB10 Dev Alpha in BlackBerry 10 Native SDK

Disabling 802.11n didn't help. Ping didn't help. Router is up-to-date.

 

Thanks anyway (not going to downgrade the security).

__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Developer
Jaffa
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition

Re: Unreliable wifi connection to BB10 Dev Alpha in BlackBerry 10 Native SDK

Following the request of @BlackBerryDev on Twitter, I've raised TOOL-1272 in JIRA.

__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Developer
Jaffa
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition

Re: Unreliable wifi connection to BB10 Dev Alpha in BlackBerry 10 Native SDK

After being stymied too much this evening, I put some effort into finding out why I couldn't get USB working.

 

Turned out it was very simple: looking at dmesg after plugging the BB10 Dev Alpha in, I saw:

 

[11341.991568] usb 2-1.5.1: new high speed USB device number 7 using ehci_hcd
[11342.085568] usb 2-1.5.1: rejected 1 configuration due to insufficient available bus power
[11342.085570] usb 2-1.5.1: no configuration chosen from 1 choice
[11515.613422] usb 2-1.5.1: USB disconnect, device number 7

 

I knew it wouldn't charge when plugged in to the USB port on my keyboard, but hadn't realised it wouldn't even configure a working USB connection. So, plugging it straight into my machine: Ubuntu reports new wired connection, a ping of 169.254.0.1 confirms a connection and configuring it in the Native SDK is then straightforward.

 

Much more reliable to deploy & debug now :-)

__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
New Contributor
djszapi
Posts: 4
Registered: ‎09-01-2012
My Device: Simulator

Re: Unreliable wifi connection to BB10 Dev Alpha in BlackBerry 10 Native SDK

[ Edited ]

Hi Jaffa and readers,

 

I would like to get ssh work via USB on my Archlinux host. Harmattan/MeeGo (N9/N950) had this "ifconfig usb0 192.168.2.14" command before using ssh. I will try later tonight if it works out of the box on the devalpha device with blackberry-connect. :-)

 

Unfortunately, I do not have a working WiFi connection that I could use smoothly and we are getting to the deadline for the limited edition device. :-)

 

Thank you for your thread!

Developer
Jaffa
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition

Re: Unreliable wifi connection to BB10 Dev Alpha in BlackBerry 10 Native SDK

[ Edited ]

Having just got my Z10 (STL100-1 running 10.0.9.2372) it can't see the wifi from my TP-LINK TL-WA901N at all.

 

Bit of a kicker. Given it's affected the PlayBook, Dev Alpha and now Z10 this must be some form of QNX bug.

__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
New Contributor
djszapi
Posts: 4
Registered: ‎09-01-2012
My Device: Simulator

Re: Unreliable wifi connection to BB10 Dev Alpha in BlackBerry 10 Native SDK

What type of WiFi? For instance, it will not recognize adhoc hotspots as it only handles managed, at least for now as far as I can tell.

Developer
Jaffa
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition

Re: Unreliable wifi connection to BB10 Dev Alpha in BlackBerry 10 Native SDK

[ Edited ]

Normal managed AP, details from the admin console:

 

Operation Mode: Access Point
Name (SSID): bleb.org wifi
Channel: 7
Mode: 11bgn mixed
Channel Width: 20/40MHz
Max Tx Rate:

120Mbps

 

Security is WPA-PSK/WPA2-PSK (version: auto).

 

More testing:

  • turning security off (and rebooting router) has it show up.
  • setting security explicitly to WPA2: it works! :-)
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Developer
Jaffa
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition

Re: Unreliable wifi connection to BB10 Dev Alpha in BlackBerry 10 Native SDK

The field for the Version field says:

 

Version -  You can select one of following versions:

  • Automatic - Select WPA or WPA2 automatically based on the wireless station's capability and request.
  • WPA - Wi-Fi Protected Access.
  • WPA2 - WPA version 2.

 There must be something about the wireless stack which results in a problem either at the router or device end with negotiating the encryption capability.

__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org