Skip to first unread message
Assigned to jeffrey....@gmail.com by steve....@gmail.com

Raymond Knutsen Lystad

unread,
Jun 2, 2014, 4:57:30 AM6/2/14
to mitappinv...@googlegroups.com
I have a aiStarter on computer on school, when i open it, and connect as USB, so will not work. I have a open aiStarter, enable USB Debugging, download ai2Companion. And will show it: Launch the aiStarter program on your computer and then try again. Need Help? I have launch it. Why wil not work it?

Enis

unread,
Jun 2, 2014, 6:49:50 PM6/2/14
to mitappinv...@googlegroups.com
Reboot your computer.

Go back to the AI2 site.

Run AI2 Companion on your phone

Click Connect in AI2 User Interface.

Choose AI Companion.

It will bring up a box with a code and a bar code.

Go back to the device, and choose which way you want to connect... by code or scan.

If you choose Scan, point the device at the screen and let it scan the barcode.

If you choose to enter the 6 digit code, it's there in the window on the computer screen.

SteveJG

unread,
Jun 2, 2014, 7:15:08 PM6/2/14
to mitappinv...@googlegroups.com
In addition to what Enis recommended:

You should have Companion version 2.19.  Do you?     Help > About   will give the version.    If you do not have that version, you might try    Project > Hard Reset.... this will sometimes update Companion without any other effort on your part...follow any instructions that may show in a window.  When done, close your browser, reboot your PC    and try to start AI again.

  The instructions are here:  http://appinventor.mit.edu/explore/ai2/setup-device-usb.html ,   A part many people have difficulty with is issues with the drivers needed for using USB....see the last part of the following note.  Did you test your connection and did you download drivers?

You might want to read the following again and especially the last part regarding driver installation...sometimes the part users forget about.  

Also, be aware AI2 users seem to get better performance when using Chrome instead of Firefox.

Regards,
Steve

:

Step 4: Set up your device for USB (Turn USB Debugging ON)

On your Android device, go to System Settings, Developer Options, turn them on, and be sure that "USB Debugging" is allowed.

On most devices running Android 3.2 or older, you can find this option under Settings > Applications > Development.

On Android 4.0 and newer, it's in Settings > Developer options.

Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options, including "USB Debugging".


Step 5: Connect your computer and device, and authenticate if necessary.

Connect your Android device to the computer using the USB cable - be sure that the device connects as a "mass storage device" (not "media device") and that it is not mounted as a drive on your computer. This may mean that you have to go to the Finder (on a Mac) or My Computer (on Windows) and disconnect any drive(s) that were mounted when you connected your Android device.

On Android 4.2.2 and newer, your device will pop up a screen with the message Allow USB Debugging? the first time you connect it to new computer. Press "OK". This authenticates the computer to the device, allowing the computer to communicate with it. You'll need to do this for each computer you want to connect to the device, but only once per computer.


Step 6: Test the connection.

Go to this Connection Test Page (opens in a new tab in your browser) and see if you get a confirmation that your computer can detect the device. If the test fails, go to General Connection Help and look at the USB help for your computer (Windows or Mac). You won't be able to use App Inventor with the USB cable until you resolve the connection issues. Return to this page when the test suceeds.


and 


Help with USB connection on Windows

This page contains help for when you have connected your Android device to a Windows PC with the USB cable, and the Connection Test says that the device is not detected.

In order to connect your device to a Windows PC over the USB cable, you need to install a driver on your PC. The driver is a software module that lets the PC interface to the device hardware. Unfortunately, different devices require different drivers, and Google and Microsoft have generally left it to the device manufacturers to develop and distribute the drivers. The App Inventor setup software comes with drivers for a very small number of Android devices. You might be lucky enough that these work for your device -- but probably not. In that case, you'll have to get the driver from the manufacturer, and install it on your PC yourself.

Here is Google's link to OEM (Original Equipment Manufacturer) Drivers(link is external). It shows where to get drivers for the devices that Google knows about, and explains how to install them on PCs.

Google also distributes drivers for the Nexus devices that it manufactures. If you have a Nexus device. Look here for the Google USB Driver(link is external). To get the driver from there, you can use the link that says Click here to download the latest Google USB Driver ZIP file. You do not have to download the entire Android SDK.

When you are done installing the driver, go back and review the steps in Connecting to a phone or tablet with a USB cable. Hopefully, the connection test will succeed this time. If it does not, the most likely place for an error is in installing the drivers, especially if you have never done this before. So try again and/or get help.

If you are still having trouble, see Google's page on Using Hardware Devices(link is external). Other than that, try searching on the web for issues about using your particular device with USB.

Raymond Knutsen Lystad

unread,
Jun 3, 2014, 3:03:58 AM6/3/14
to mitappinv...@googlegroups.com
I try it, and i update it. But does not work. I try to use http://appinventor.mit.edu/test/ and stay 'Not yeat, standby'. And i got this message: Platform = Windows
AppInventor tools located here: "C:\Program Files (x86)"
Bottle server starting up (using WSGIRefServer())...
Listening on (hidden)
Hit Ctrl-C to quit.

127.0.0.1 - - [03/Jun/2014 09:02:16] "GET /ping/ HTTP/1.1" 200 7
Systemet finner ikke angitt bane.
Traceback (most recent call last):
  File "C:\Users\mckinney\Desktop\AppInventor\aiStarter\build\aiStarter\out00-PY
Z.pyz\bottle", line 737, in _handle
  File "C:\Users\mckinney\Desktop\AppInventor\aiStarter\build\aiStarter\out00-PY
Z.pyz\bottle", line 1454, in wrapper
  File "<string>", line 42, in echeck
  File "<string>", line 81, in checkrunning
  File "C:\Users\mckinney\Desktop\AppInventor\aiStarter\build\aiStarter\out00-PY
Z.pyz\subprocess", line 575, in check_output
CalledProcessError: Command '"C:\Program Files (x86)"\AppInventor\commands-for-A
ppinventor\adb devices' returned non-zero exit status 1
127.0.0.1 - - [03/Jun/2014 09:02:48] "GET /echeck/ HTTP/1.1" 500 748

SteveJG

unread,
Jun 3, 2014, 7:37:14 AM6/3/14
to mitappinv...@googlegroups.com
Sorry this is not working.  Thank you for the error message.   I am asking the technical staff to look at what you send Raymond.

Regards,
Steve

jeffrey.schiller

unread,
Jun 3, 2014, 11:04:59 AM6/3/14
to mitappinv...@googlegroups.com
Look in \AppInventor\commands-for-Appinventor\. There should be a file named "adb.exe". From the error you are getting, it appears that this file is missing. If it is present, see if you can run it yourself from a command line (if you run it without arguments, it should give you a rather long usage message).

-Jeff
Reply all
Reply to author
Forward
0 new messages