2014년 12월 30일 화요일

Cannot connect Samsung tab to windows 7 laptop


I have Samsung Tablet model# GT-P6210, Android4.0.4 and windows 7 laptop. I tried with both firefox and chrome browsers on my laptop. Same error. I tried both Wifi and USB connection modes, neither works.

I pretty much tried everything I could possibly try. I spent whole day on this. Please help me more forward. Here are the steps I tried. 

0. I launch the MIT App Inventor 2 app and scan the code and click it to "connect with code" button. It says "Failed to Connect to the MIT AI2 Companion, try again." in the browser in laptop. It does not say anything on the tablet app for long time. If I press the button again , throws 1103 error. 

1. I did setup WIFI hotspot from my laptop and made tablet connect to that. I could ping and also telnet to 8001 port. I could not telnet to port 9987. 

2. USB dirver seems to be up to date. Windows keeps saying it is best available driver. I also downloaded USB driver zip file from the below android developer site and tried to install these, but windows device manager keep saying there is no valid driver file in this. I unzipped this zip file and selected 64bit and 32bit both the files, but none seem to match. Please do let me know if I need to get developer USB drivers from a particular website and file names etc details.  

http://developer.android.com/sdk/win-usb.html

--
Did you load MIT Companion from Google Play on your Samsung?  You need it for both WIFI and USB development.

Regarding the USB drivers, try Samsung:  http://www.android.gs/download-samsung-usb-drivers-for-android/

--
Yes, I did download MIT Companion on tablet. I tried both version one and version two companions. I tried version 2 for the most part, just tried version one just to check if it works... but it didn't work either. I will try Samsung USB driver and let you know how it goes.  

-- 

I just installed Samsung USB driver and updated the USB driver in device manager in laptop. Still the same issue. 

I forgot to mention, yesterday I also installed "Samsung Kies". It installed several drivers etc. It took lot of time to install on laptop. I am thinking this Samsung USB drivers were tested yesterday also. I am just wondering if anyone else is able to connect Samsung tablet to Windows7. 

-- 

I have a GTP3113 Samsung tablet...it works fine with Windows.   I wonder what is not working for you.   WIFI works immediately without installing anything other than Companion on your Tablet.  Did you follow ALL the instructions here:  Setting Up App Inventor  ?

In WIFI, are you connecting to the same WIFI as on your PC.... stated another way, the PC and Android need to be connected to the same network ...could you possibly have the Android on a 'guest' router position?

Also, here are are lot of things that could cause connection errors. 9. 12. or 13 could be YOUR issue.   Also, do you have a Project loaded in the AI2 browser?

One of the following  possibly applies to your code (all may not apply to your code):

1)  You have coding errors in your blocks.  In the Blocks editor, look in the lower 
left corner of the window for the yellow and red triangle icons. If the red icon has a value larger than 0, 
you have a serious coding error.  Find the block in your code that has a red triangle and 
fix it.   Red triangles always inhibit creating an apk or running a project in the 
emulator or possibly creating an aia file.     Yellow triangles are more forgiving, 
however, sometimes, these need to be fixed because they trip an internal warning and not billing puzzle piece sockets are left un-filled.

2) Your source file (the aia file) is larger than the 5Mb limit allowed in AI2 (the aia can not be larger than 5Mb). You may have put images or other resources in your Media (resources) that you do not use in the app. 
 All the images and sounds in resources count toward the 5Mb limit along with the source code.    You can program 
apps larger than 5Mb in the browser, but the apps will not compile and might not run in the 
emulator or the project may not save as an aia. If this is the case you need to reduce 
the size of your image and/or sound files.   Most image files can be made quite small 
by resizing them using a photo manipulation program on your PC to less than 50Kb each.

3)  You might have more than 10 Screens in your app.  AI2 becomes unstable when more 
than ten screens are used.  Projects CAN be built with slightly more screen but then you should expect your app to occasionally behave erratically.

4) You might have set a Screen icon in the Designer Properties for your project that is too large. Use an image 
sizeof 48x48 px or 96x96px instead and only use jpg or png images.  *.ico files are not 
supported.  The 'icon' (actually an image) can be as large as 520x520 (I think that is the size GooglePlay apps require).  The smaller 'icons' work fine otherwise.

5) You did not code the entire project using App Inventor 2.   If you used one of the 
third-party AI2 clones,you might not be able to load a Project into the AI2 compiler or 
create an apk with the standard AI2.

6) If you incorrectly modified the project's Manifest files using a third-party tool, you may have issues.

7)  Sometimes, if you have LOTS of Layouts on a single screen,  the apk might not 
compile. How many is a lot?  I do not know, keep adding layouts and buttons, compile and try again...when the server crashes, you got a lot.

8)  The network you are using may be overloaded (possibly a school network), or you have other applications running in the background on your computer, or your virus checker is doing a scan.  Sometimes, just trying to access the MIT server a few minutes later will give you a more favorable response.

9)  If you have BlueStacks on your home PC (BlueStacks is a special emulator that allows Android apps to run on a PC).  The Google emulator on AI2 cannot run unless BlueStacks is disabled and all of the BlueStacks processes are shut down.  On a Windows PC, you use the Task Manager to 'kill' running processes.

10)  Are you using Sensor controls (except for the clock)?   Most Sensor controls or controls related to sms or the phone do not work in the emulators.  They need to be tested on a device.

11) If this is an issue about the Project loading slowly on your device or on the emulator:  Be aware, the more images, layouts, components you have on a screen, the longer it takes for the emulator and Companion to render the graphical screen.  How fast the emulator renders is partially a function of your hardware...how much ram you have, your cpu clock speed etc. Sometimes, with lots of graphics, the emulator will just give up.   Can you develop live using WIFI or using USB? These options almost always render faster than the emulator but will not be at lightning speed if you have lots of graphics.  Be patient.

12)  This happens too:   We have seen instances where it is probable the Google Cloud messed up; other instances where an older PC has had memory issues and caused file corruption of the Project and instances where a user is using a very slow Internet connection (like dial-up) and it is just too slow.

13)  Do you have an AVG, Eset or AVAST virus checker.  Some versions of these products have been reported inhibit running the emulator unless (in the case of AVG) the Advanced Link settings on the software are set to allow AI2 communication.

--
I am almost about to give up on MIT appinventor app. Thanks for your response. Can we talk? You could call me at 650-353-1183. Or let me know a phone number to reach you. 

Yes, both tablet and laptop are in the same WiFi. I installed "MypublicWifi" application yesterday on my laptop and made sure both tablet and PC can connect. I am able to ping tablet ip address from laptop. I can also telnet to 8001 port on tablet. I can NOT telnet to 9987 port though. I am not sure if that is a problem or not. 

I just have one simple app. That is simple radio. My app just has one button, "play", that is it. 

--
Try this simple app.  Your radio app might be the problem.     Create a new Project.   Place a button on the Designer screen.  Do nothing else.   Now,
Connect >  AI Companion    or  Connect > AI Emulator    and what you should see is a screen with a button that has as text "Text for Button1"

This could be your problem:  "Yes, both tablet and laptop are in the same WiFi. I installed "MypublicWifi" application yesterday on my laptop and made sure both tablet and PC can connect. I am able to ping tablet ip address from laptop. I can also telnet to 8001 port on tablet. I can NOT telnet to 9987 port though. I am not sure if that is a problem or not. "      You should NOT have to telnet to 8001 and why you would want to telnet to 9987 I have no idea.

Setting up AI2  to use with WIFI is very simple, provided you do not have unusual hardware or Internet connections.

MypublicWifi might be your issue.

--
My home wifi is very simple and default setting with password protected. My laptop and tablet could connect without any issues to home wifi. I tried to ping and telnet to phone as per the instructions given in appinventor site link below. 

http://appinventor.mit.edu/explore/support/explain-wifi-connection.html

Since I could not ping phone from laptop when using my home wifi, I hosted a hotspot on my laptop itself to made my tablet also connect to that. 

--

댓글 없음:

댓글 쓰기