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".
- Log in to post comments
phpbb Topic ID
15855
Re: Re: MotionFit SDK Rev B Python Debug Consol app
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.
Re: Re: MotionFit SDK Rev B Python Debug Consol app
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
Re: Re: MotionFit SDK Rev B Python Debug Consol app
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:
Re: Re: MotionFit SDK Rev B Python Debug Consol app
1. Only one connection at a time could work you could either use USB or Bluetooth connection as data will stream to any of the connected UART.