MotionFit SDK Rev B Python Debug Consol app

By jcmeyer23 , 13 January 2014

Hi. I am new to this device and running a demo on MotionFit SDK rev. B MPU9150 wireless module (Mar. 01, 2012 shown on board). I am reading the manual "AN-MPU-9150IMF InvenSense MotionFit SDK Quick Start Guide" which is released on Mar. 7, 2012 and followed the steps on page 9 and try to setup up the Debug Console app in Python environment.

I downloaded Python 2.5.4 and had it installed. I downloaded and run the Pyserial-25.win.exe and also pygame-1.9.1release.win32-py2.5exe. until step 6. Step 7 gives the python location of "Embedded_MotionApps-MPU9150-Rel-MSP430F5528-V4_1_0_INVN_9x_HOST-2012-02-
13pycube". I downloaded "MotionFit-Wireless-SDK-v4.1"from the website and found the eMPL_wSDK-client.py is in the folder of "Embedded_MotionApps-MPU9150-Rel-MSP430F5528-V4_1_0_INVN_9x_HOST-2012-02-14pycube". It was one day later compared with user manual. Is this the right one to run? I did run it in Python and comes to error as below.
"
Traceback (most recent call last):
File "eMPL-sWDK-client.py", line 10 in (module)
import serial, sys, time, string, pygame
File "C:Python25libsite-packagesserial_init_.py", line 19 in (module)
from serial.serialwin32 import *
File "C:Python25libsite-packagesserialserialwin32.py", line 11 in (module)
import ctypes
ImportError: No module named ctypes
"
I am new to Python too. Could any one advise whether I am using a wrong file or wrong installation of Python (ctypes)? Thanks.

PS, the teapot demo has no problem as I used "MotionFit SDK v5.1".

grim

12 years 2 months ago

May be a python serial module installation issue, perhaps order of module installations, but I am not sure about v.4.1 build; since v5.1 works with Teapot have you tried downloading & running
MotionFit_With_eMPL511_Release.zipMotionFit_With_eMPL511_ReleasecoreeMPL-haleMPL-client

Try running from the command line (assuming Win OS):
>>python eMPL-client COMPort#

If two COMPort#'s are set up with your Bluetooth try them both.

phpbb Post ID
24522

ioff101der

12 years 1 month ago

I have the same error, I can't make the bluetooth connection work whereas the usb connection works. If you succeeded in resolving your problem I would like to know how ..
Thank you very much

phpbb Post ID
24525

xiaoxiaoyu25293

11 years 11 months ago

I just realized that if my MPU9250 is connected to a PC through USB, the bluetooth will never work. If it's unplugged, it works very well. Hopefully other people didn't do this.

@lucaspi14 wrote:

I have the same error, I can't make the bluetooth connection work whereas the usb connection works. If you succeeded in resolving your problem I would like to know how ..
Thank you very much
phpbb Post ID
24528
phpbb Topic ID
15855