Wi-Fi connection and Bluetooth file transfer problems ( Android-to-WindowsXP )

Wi-Fi connection and Bluetooth file transfer problems ( Android-to-WindowsXP )

[ Updated on December 17th, 2012 ]

I have a Wi-Fi connection problem with an Android device. So, a Samsung Galaxy Tab 2.0 (7") could not connect to:

Security-Enabled Computer-to-Computer network ( over Wi-Fi )
Network Authentication: Open
Data Encryption: WEP

Note: The device doesn't see that type of network!

However, it could connect to:

   Security-enabled wireless network
   Security-enabled wireless network (WPA)
   Security-enabled wireless network (WPA2)
   Unsecured wireless network

Note: Verified in many places like cafees, airports, University of Calgary campus, etc.

Any ideas, tips or suggestions? Thank you in advance.

[ Summary as of December 17th, 2012 ]

A test with a MacBook ( Mac OS X v10.7.5 ) notebook was finally done and it successfully detected and connected to our Security-Enabled Computer-to-Computer network ( over Wi-Fi / Open / WEP ) created between several computers with Windows XP and Windows 7 OSs. The test was completed in less than 2 minutes without any issues and problems.

[ Summary as of December 4th, 2012 ]

- An update from Samsung for Android OS v4.0.4 ICS was recently installed on the tablet

- Wi-Fi Advanced Configuration Editor was installed on the tablet
  The application allows to see and edit advanced settings of a Wi-Fi network and it is
  downloaded from: market.android.com/details?id=org.marcus905.wifi.ace

- Linksys 'Compact Wireless-G USB Network' adapters are used on some desktop computers with Windows XP

- The following advanced settings of the 'Compact Wireless-G USB Network' adapter:

   NetworkType
   ShowHiddenSSID
   WEPKeyUse
   SmartScan
   IEEE80211H
   WirelessMode
   CountryRegion
   CountryRegionABand
   AutoChannelSelect
   Channel

   are considered as the most important and were modified many times during many tests

   Note 1: NetworkType is set to 802.11 Ad Hoc

   Note 2: Widest possible ranges for channels were selected:

   CountryRegion ( Country Region 11G ) - #5 Channel ( 1 - 14 )
   CountryRegionABand ( Country Region 11A ) - #7 Channel ( 36 - 165 )

- Microsoft Network Monitor v3.4 was used on some desktop computers with Windows XP

- A Wi-Fi Signal Strength is always 'Excellent'

- A workaround based on a Bluetooth connection was considered, it works and tested. However, a transmittion speed and a distance between tablets and computers are two significant constraints:

  A transmittion speed limitation of the Bluetooth connection - it takes too long to transmit large data files

  A distance limitation of the Bluetooth connection - a tablet could be away ( many meters ) from a computer with Windows platform
  Notes:
  - That computer could be considered as a 'Bluetooth Server'
  - Some number of Bluetooth adapters are also needed 

203 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

The Best option is to use wireshark and monitor exchanged packets between those two machinesIn.By reading description of your problem
I suppose that this is somehow related to setting up an ad hoc connection and/or authentication problem.
Maybe you should enable on your device this mode of connecton.

>>...I suppose that this is somehow related to setting up an ad hoc connection and/or authentication problem...
.
That is possible. We checked / tried all Wi-Fi related settings on the Galaxy Tab and couldn't resolve the problem. Thanks for these tips, Iliya!

Try to enable ad hoc connection on the receiving end.

>>...Try to enable ad hoc connection on the receiving end.
.
Do you mean on a Windows computer? We'll take a look at that in the afternoon. Thanks.

>>>>...Try to enable ad hoc connection on the receiving end.
>>.
>>Do you mean on a Windows computer? We'll take a look at that...
.
We tried many different configurations and still couldn't resolve that problem. If a Wi-Fi network has a router everything is working. In case when two computers connect to each other directly over the Wi-Fi the tablet couldn't connect. Is that by design of that type of network?

Sorry Sergey for my late answer (a different time zone):).

...>>>>>Do you mean on a Windows computer? We'll take a look at that...>>>
Yes I mean Windows computer.
...>>>Is that by design of that type of network?...>>>
Exact implementation of ad hoc wi-fi communication set-up and tear-down as was done by Microsoft should be consulted.But in such a case
when the user settings are not helpful You must try to use packet sniffers like Wireshark and/or Netmon to intercept and parse the wi-fi packets.
Can you do it and upload the .cap file it would be very helpful to read the data contained in those files.
I will also look through 802.11 standard and read the exact communication set-up stages.
Later I will write you.

>>...Security-enabled Computer-to-Computer network...
.
Here is a question: How many computers / tablets could be connected to a Security-enabled Computer-to-Computer network?

>>...done by Microsoft should be consulted...
.
We'll look into this. At the same time another solution is under consideration and we can try a Bluetooth connection(s). A range is not important in our case because all devices are in one room.

...>>>Here is a question: How many computers / tablets could be connected to a Security-enabled Computer-to-Computer network?>>>
There are two modes of ad-hoc networking
1.Peer -to -Peer which involves two computers connnected directly.
2.Wi-Fi P2P group which involves a few devices and one group owner operates as an access point.

Please read this http://en.wikipedia.org/wiki/Wi-Fi_Direct

>>>>Here is a question: How many computers / tablets could be connected to a Security-enabled Computer-to-Computer network?>>>
>>There are two modes of ad-hoc networking
>>1.Peer -to -Peer which involves two computers connnected directly.
.
I think this is our case. We also tried a Wi-Fi Direct on the Galaxy Tab 2 without success.

@Sergey

...>>>I think this is our case. We also tried a Wi-Fi Direct on the Galaxy Tab 2 without success...>>>
Can you download and install Netmon?
I think that in order to better understand the reason behind the connection failure we have to get insight deeper into the connection setup process.

>>...Can you download and install Netmon?

We'll try it.

This is the 3rd day of different technical problems ( Fri, Sat and Mon ). We have some progress with a Bluetooth connection but Bluetooth Transfer Wizard on a Desktop computer still can't transfer a file to the tablet.

...>>>We'll try it...>>>

You also have to consult a 802.11 standard.You can download it from here http://standards.ieee.org/getieee802/download/802.11-2012.pdf

..>>>We'll try it...>>>
I have hope that your problem can be easily narrowed down to some trackable and manageable system failure.

@Sergey

Have you been able to solve your wi-fi related problems?

Hi Iliya,

>>Have you been able to solve your wi-fi related problems?

No and another attempt is scheduled for the next week. Unfortunately, all these networking issues are taking my development time. So, I'll provide as much as possible technical details.

Best regards,
Sergey

Did you try to use Netmon/Wireshark to interpret 802.11 protocol connection set-up?You need to do this in order to eliminate dependency on lowest
level protocols.

>>...Did you try to use Netmon/Wireshark to interpret 802.11 protocol connection set-up?

No and will look into this next week. Thanks, Iliya.

...>>>No and will look into this next week. Thanks, Iliya.>>>
I will offer you a "helping hand":)

Hi Iliya,

I searched the web with a key word 'NetMon' and I found two NetMon utilities:

1.
.....http://msdn.microsoft.com/en-us/library/windows/hardware/hh451296(v=vs.85).aspx
.....Microsoft Network Monitor 3.4
.....http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=4865

and

2.
.....http://sourceforge.net/projects/guennsen-netmon/

Should I download from the link '1' or '2'? If No, could you give me a right link?

Hi Sergey

You have to download Microsoft NetMon utility ie. the first link http://msdn.microsoft.com/en-us/library/windows/hardware/hh451296
Please consult also NetMon blog : http://blogs.technet.com/b/netmon/
You can also consider downloading newer version of netmon "Message Analyzer" beta version.

>>You have to download Microsoft NetMon utility ie. the first link http://msdn.microsoft.com/en-us/library/windows/hardware/hh451296
>>Please consult also NetMon blog : http://blogs.technet.com/b/netmon/

I see. Thank you.

>>>...I see. Thank you...>>>
No problem Sergey.Download also 802.11 standard it will be crucial in order to understand innerworkings of the wi-fi protocol stack.

Hi Iliya,

>>http://msdn.microsoft.com/en-us/library/windows/hardware/hh451296
>>...
>>...1.Download and install NetMon.exe...
>>...2.Download and install the Windows Driver Kit...

Should I install the Windows Driver Kit?

That looks as too big dependency and I really don't want to do it.

...>>>Should I install the Windows Driver Kit?

That looks as too big dependency and I really don't want to do it...>>>

Definitaly NO!! Do not install Windows Driver Kit because there is no such a need and dependency.NetMon will operate smoothly without WDK.
I would also suggest trying to set ad-hoc connection between two windows machines.This could remove the responsibility for the connection failure from the windows OS.

>>...NetMon will operate smoothly without WDK.

This is what I wanted to confirm.

>>...I would also suggest trying to set ad-hoc connection between two windows machines...

I remember that it was set long time ago but I'll verify.

Hi Sergey

I know this is not related to this thread,but I could not resist to post it.I have Finally solved the problem of loss of an accuracy when writing various
trigo function implemented as a BigDecimal types.The culprit was was bug in even factorial calculation:) Now I can calculate with a precision
reaching more than 1000 decimal places.It is more interesting that Horner scheme produced the wrong results when compared to the iterative
method.

Hi Iliya, Just one question:

>>...It is more interesting that Horner scheme produced the wrong results when compared to the iterative method.

What iterative method do you mean?

>>...It is more interesting that Horner scheme produced the wrong results when compared to the iterative method.>>>
By iterative method I mean coefficients computation which is based on the for-loop iteration.Albeit slower than coefficient pre-calculation
and Horner scheme summation,but in the case of Java BigDecimal types iterative computation was able to produce the correct result almost up to
PI/2.
I suppose that methods(add().multiply()) "tethering" could be blamed for the loss of precision(polluted by the rounding error propagation).

>>...slower than coefficient pre-calculation and Horner scheme summation...

Some compromises almost always need to be done.

>>>...Some compromises almost always need to be done.>>.
Yes I know ,but in the case of object types arithmetics both choices are bad.

Hi Iliya,

>>...The culprit was was bug in even factorial calculation:) Now I can calculate with a precision reaching more than 1000 decimal places...

Would you be able to create a new thread on "Android" or "Software Optimizations" forum? You're doing a very interesting R&D and it will be very good to share as much as possible details.

Best regards,
Sergey

Hi Iliya,

This is a very small update regarding Android-to-WinXP Wi-Fi problem. I've installed Microsoft NetMon v3.4 and spent some time today ( it is a really good tool! ). No success so far and I provide more technical details by the end of this week ( or over weekend ).

Best regards,
Sergey

...>>>No success so far and I provide more technical details by the end of this week ( or over weekend )...>>>
Did you try to capture and interpret 802.11 protocol's frames?
I hope that problem is not buried deep inside WinXp protocol stack,because debugging network drivers on retail Windows release is very painful,
checked build should be used instead.
Did you try to connect your galaxy tablet to Win 7 pc?

...>>>Would you be able to create a new thread on "Android" or "Software Optimizations" forum...>>>
Can I create thread which is dealing solely with the Java code on the Software optimization forum?
How many developers on those forums are coding in Java?

If you are interested in testing I can send you a source files of large precision methods?

Hi Iliya,

>>Can I create thread which is dealing solely with the Java code on the Software optimization forum?

... I think Yes but it can be moved by a moderator to 'Android applications on Intel architecture' forum.

>>How many developers on those forums are coding in Java?

... I have no idea but I think that on Adnroid related forum there are many users that do programming with Java.

>>If you are interested in testing I can send you a source files of large precision methods?

... I would be glad to participate in discussions related to that subject. Sorry, too busy with different technical issues.

Best regards,
Sergey

...>>> I think Yes but it can be moved by a moderator to 'Android applications on Intel architecture' forum.>>>
I'm afraid of this and I think that i will create such a thread on Oracle Java forums.

Do you know some very technical numerical methods and/or scientific calculation forums?

>>...Do you know some very technical numerical methods and/or scientific calculation forums?

No. I think Mathlab forums could be very 'scientific calculation' oriented but guys on these forums do not use Java.

>>...We have some progress with a Bluetooth connection but Bluetooth Transfer Wizard on a Desktop computer still can't transfer
>>a file to the tablet.

That workaround finally works!

- There are strange timeouts when a file is sent from Android tablet to Windows XP. In total it takes ~1.5 - 2 minutes (!) to transfer ~140KB file.
- There are NO any timeouts when a file is sent from Windows XP to Android tablet. In total it takes ~10 seconds to transfer ~140KB file.

However, there is some instability with that workaround, for example, after 10 transfers it stops working. Android tablet and a desktop computer with Windows XP have to be rebooted to restore Bluetooth software subsystems to normal / working state.

>>> There are strange timeouts when a file is sent from Android tablet to Windows XP. In total it takes ~1.5 - 2 minutes (!) to transfer ~140KB file.
- There are NO any timeouts when a file is sent from Windows XP to Android tablet. In total it takes ~10 seconds to transfer ~140KB file.>>>

Sadly I have never "sniffed" Bluetooth network connection.I t can be done with the help of Wireshark and Bluetooth protocol stack is simplier than
wi-fi stack.
The most frightening thing is some failure of software/hardware interoparetibility and/or interaction in your Android tablet.In order to eliminate this
try to send files by Bluetooth to Win7 machine or send files between two Android devices.
My question is Do you want to resolve Bluetooth related problems first or concentrate or wi-fi connection?

>>> There are strange timeouts when a file is sent from Android tablet to Windows XP. In total it takes ~1.5 - 2 minutes (!) to transfer ~140KB file.>>>

In this case each packet have to be parsed and its fields interpreted.Such a behaviour can be due to some transmitting buffer filling up inconsistency ,but
I said earlier in my post we have to see the live connection packets first.

>>> There are strange timeouts when a file is sent from Android tablet to Windows XP. In total it takes ~1.5 - 2 minutes (!) to transfer ~140KB file.
- There are NO any timeouts when a file is sent from Windows XP to Android tablet. In total it takes ~10 seconds to transfer ~140KB file.>>>

Sadly I have never "sniffed" Bluetooth network connection.I t can be done with the help of Wireshark and Bluetooth protocol stack is simplier than
wi-fi stack.
The most frightening thing is some failure of software/hardware interoparetibility and/or interaction in your Android tablet.In order to eliminate this
try to send files by Bluetooth to Win7 machine or send files between two Android devices.
My question is Do you want to resolve Bluetooth related problems first or concentrate or wi-fi connection?

>>> There are strange timeouts when a file is sent from Android tablet to Windows XP. In total it takes ~1.5 - 2 minutes (!) to transfer ~140KB file.>>>

In this case each packet have to be parsed and its fields interpreted.Such a behaviour can be due to some transmitting buffer filling up inconsistency ,but
as I said earlier in my post we have to see the live connection packets first.

>>>No. I think Mathlab forums could be very 'scientific calculation' oriented but guys on these forums do not use Java.>>>
Thanks .
I tried to search Oracle forums for any posts dealing with BigDecimal rounding errors and sadly I got a few not relevant answers.
Maybe here on MKL forum could someone shed some light on that issue?

>>...I tried to search Oracle forums for any posts dealing with BigDecimal rounding errors and sadly I got a few not relevant answers.
>>Maybe here on MKL forum could someone shed some light on that issue?

I think MKL Forum is a very good place to ask.

About 10 years ago www.codeguru.com was very popular (!) and it has a section for scientific algorithms. Another web-site to check is www.stackoverflow.com. Personally, I didn't visit both for a long time.

Hi Iliya,

>>...The most frightening thing is some failure of software/hardware interoparetibility and/or interaction in your Android tablet.

I agree with that. It's clear that Microsoft developers didn't try to check how well Windows OSs are working with ALL Android devices ( it's actually impossible ), and opposite, Google developers didn't spend too much time on checking how well ALL Android devices are working with Windows OSs.

>>...In order to eliminate this try to send files by Bluetooth to Win7 machine or send files between two Android devices...

As soon as I have a new computer with Windows 7 I'll try to do this. Currently all tests are done for Windows XP SP3.

>>...My question is Do you want to resolve Bluetooth related problems first or concentrate or wi-fi connection?

Yes, Bluetooth is considered as a wirkaround for data transfers and there is API to do that. I simply need to move on with programming.

>>>I think MKL Forum is a very good place to ask.>>>
I will create an thread on MKL and I will ask an question about loss of precision which occured during Horner schema summation.
Yes www.stackoverflow.com will be my next option to try out.
Searched codeguru.com sadly there is no Java related posts.

>>>I agree with that. It's clear that Microsoft developers didn't try to check how well Windows OSs are working with ALL Android devices ( it's actually impossible ), and opposite, Google developers didn't spend too much time on checking how well ALL Android devices are working with Windows OSs.>>.
Sergey try to establish Bluetooth and/or wi-fi connection between your faulting tablet and another Android device it must be done in order to eliminate Windows responsibility for device connection failure.

>>>Yes, Bluetooth is considered as a wirkaround for data transfers and there is API to do that. I simply need to move on with programming.>>>

Can you install Wireshark on your Winxp machine?

Hi Iliya,

>>...try to establish Bluetooth and/or wi-fi connection between your faulting tablet and another Android device...

Did you try to use Microsoft NetMon ( NM ) v3.4 to monitor a Bluetooth connection?

I tried and even if NM shows the bluetooth connection in 'Select Network' window ( of course I selected and checked the connection on ) I didn't see any frames during file transfers. Any ideas on what could be wrong?

>>>I tried and even if NM shows the bluetooth connection in 'Select Network' window ( of course I selected and checked the connection on ) I didn't see any frames during file transfers. Any ideas on what could be wrong?>>>

It depends on Bluetooth protocol parser beign loaded by the NetMon.Sadly after searching Internet I can confirm that NM cannot sniff Bluetooth protocol frames.Please read this link : http://social.technet.microsoft.com/Forums/en-US/netmon/thread/999ccb1f-...

I suggest you to install Wireshark as I told you earlier in my post.
Wireshark has an extensive suppoert of various communication protocols and good parsers.

Consider also this article :http://wiki.wireshark.org/Bluetooth and this : http://stackoverflow.com/questions/5306982/bluetooth-debugging-tools
Probabaly its only works under Linux port of Wireshark.
Can You use Linux?You can download Bactrack distro and use already pre-installed Wireshark capable of dissecting Bluetooth protocol stack.
I advise you to concentrate on resolving wi-fi related problems, because of existing communication capturing abilities of NetMon tool.

I didn't want to" debug" a Bluetooth protocol. I simply wanted to understand why NetMon v3.4 didn't detect any frames.

>>...Please read this link : http://social.technet.microsoft.com/Forums/en-US/netmon/thread/999ccb1f...

Thanks. I also looked at MSDN and it clearly says that:

'...Bluetooth connectivity and data transfer are programmed through Windows Sockets function calls...'

Pages

Leave a Comment

Please sign in to add a comment. Not a member? Join today