ipad_iphone_sensorgroup
所属分类:matlab编程
开发工具:matlab
文件大小:945KB
下载次数:5
上传日期:2013-11-18 14:36:32
上 传 者:
nomad21
说明: 使用MATLAB从你的iPhone或iPad上的内置传感器采集传感器数据
(Use MATLAB to acquire sensor data from built-in sensors on your iPhone or iPad.
)
文件列表:
ipad_iphone_sensorgroup\+matlab\+mobilesensor\+internal\+mobileSensorExplorer\GeodeticPositionVisualization.m (964, 2013-08-09)
ipad_iphone_sensorgroup\+matlab\+mobilesensor\+internal\+mobileSensorExplorer\MembraneMotion.m (1779, 2013-08-09)
ipad_iphone_sensorgroup\+matlab\+mobilesensor\+internal\+mobileSensorExplorer\SensorVisualization.m (9833, 2013-08-09)
ipad_iphone_sensorgroup\+matlab\+mobilesensor\+internal\+mobileSensorExplorer\SensorVisualizationInstanteous.m (881, 2013-08-09)
ipad_iphone_sensorgroup\+matlab\+mobilesensor\+internal\MobileSensorChannel.p (854, 2013-09-09)
ipad_iphone_sensorgroup\+matlab\+mobilesensor\+internal\MobileSensorController.p (1775, 2013-09-09)
ipad_iphone_sensorgroup\Examples\CapturingAndMappingGPSExample.m (3487, 2013-08-09)
ipad_iphone_sensorgroup\Examples\CapturingAzimuthRollPitchExample.m (2157, 2013-08-26)
ipad_iphone_sensorgroup\Examples\html\CapturingAndMappingGPSExample.html (14648, 2013-08-09)
ipad_iphone_sensorgroup\Examples\html\CapturingAndMappingGPSExample_01.png (2579, 2013-08-09)
ipad_iphone_sensorgroup\Examples\html\CapturingAndMappingGPSExample_02.png (263523, 2013-08-09)
ipad_iphone_sensorgroup\Examples\html\CapturingAndMappingGPSExample_03.png (4097, 2013-08-09)
ipad_iphone_sensorgroup\Examples\html\CapturingAzimuthRollPitchExample.html (10823, 2013-08-26)
ipad_iphone_sensorgroup\Examples\html\CapturingAzimuthRollPitchExample.png (3464, 2013-08-09)
ipad_iphone_sensorgroup\Examples\html\CapturingAzimuthRollPitchExample_01.png (8873, 2013-08-09)
ipad_iphone_sensorgroup\Examples\html\Figure1.jpg (40142, 2013-08-09)
ipad_iphone_sensorgroup\Examples\html\StepCounter.html (8701, 2013-08-09)
ipad_iphone_sensorgroup\Examples\html\StepCounter.png (2946, 2013-08-09)
ipad_iphone_sensorgroup\Examples\html\StepCounter_01.png (6765, 2013-08-09)
ipad_iphone_sensorgroup\Examples\html\StepCounter_02.png (4090, 2013-08-09)
ipad_iphone_sensorgroup\Examples\html\StepCounter_03.png (4782, 2013-08-09)
ipad_iphone_sensorgroup\Examples\StepCounter.m (1575, 2013-08-09)
ipad_iphone_sensorgroup\Mobile Sensor Explorer.ins (11563, 2013-09-10)
ipad_iphone_sensorgroup\MobileSensorExplorer.m (9654, 2013-09-10)
ipad_iphone_sensorgroup\private\glnxa64\libmwmobilesensormlconverter.so (85656, 2013-09-09)
ipad_iphone_sensorgroup\private\glnxa64\libmwmobilesensorsupport.so (235552, 2013-09-09)
ipad_iphone_sensorgroup\private\glnxa64\libmwsensormonitorprodevice.so (82032, 2013-09-09)
ipad_iphone_sensorgroup\private\glnxa64\libmwsensorudpdevice.so (128392, 2013-09-09)
ipad_iphone_sensorgroup\private\maci64\libmwmobilesensormlconverter.dylib (119880, 2013-08-12)
ipad_iphone_sensorgroup\private\maci64\libmwmobilesensorsupport.dylib (302912, 2013-08-12)
ipad_iphone_sensorgroup\private\maci64\libmwsensormonitorprodevice.dylib (113464, 2013-08-12)
ipad_iphone_sensorgroup\private\maci64\libmwsensorudpdevice.dylib (174640, 2013-09-10)
ipad_iphone_sensorgroup\private\win32\mobilesensormlconverter.dll (100864, 2013-09-09)
ipad_iphone_sensorgroup\private\win32\mobilesensorsupport.dll (168960, 2013-09-09)
ipad_iphone_sensorgroup\private\win32\sensormonitorprodevice.dll (66560, 2013-09-09)
ipad_iphone_sensorgroup\private\win32\sensorudpdevice.dll (113664, 2013-09-09)
ipad_iphone_sensorgroup\private\win64\mobilesensormlconverter.dll (134656, 2013-09-09)
ipad_iphone_sensorgroup\private\win64\mobilesensorsupport.dll (221184, 2013-09-09)
ipad_iphone_sensorgroup\private\win64\sensormonitorprodevice.dll (85504, 2013-09-09)
ipad_iphone_sensorgroup\private\win64\sensorudpdevice.dll (145920, 2013-09-09)
... ...
MATLAB support for iPhone and Android Sensors enables you to read sensor
data from a mobile device (Apple or Android platforms) connected to the same
network as a computer running MATLAB. To start using this functionality,
you have to install the supported mobile app on your device and the MATLAB
support files from this File Exchange submission on your computer.
The currently supported mobile apps are:
Android (mobile phones and tablets): SensorUdp by Takashi, Sasaki
Apple (iPhone, iPad and iPod Touch): Sensor Monitor by Ko, Young-woo
INSTALLATION
On your Android Device
Using your Android device or browser on your PC go to Google Play and install SensorUdp.
On your Apple Device
Using your Apple device or iTunes go to Apple Store and install
Sensor Monitor app from there. After you install this app, start it and
go to More -> About and upgrade to the Pro version, otherwise the app will
not send sensor data over the network.
In MATLAB
1. Unzip sensorgroup.zip to the location where you want the files to
permanently live. (You've probably already done this if you are reading this)
2. Open MATLAB. Using the MATLAB Current Folder panel, navigate to the
sensorgroup folder which you will have after you unzip sensorgroup.zip.
3. Run setupmobile.m
HOW TO USE
Before you start using it, please connect your device to the same network as
the host computer where you are running MATLAB. You may use Wi-Fi or
cellular network, and depending on your network setup, in some cases you
may need to use a VPN. Please note, that due to the nature of communication
protocol (UDP) that is used by the mobile app, the app will not complain if data
packets cannot reach the host machine.
Set up and read data from an Apple device:
1. Open Sensor Monitor app.
2. In MATLAB, enter: obj = sensorgroup('AppleMobile')
MATLAB displays instructions for configuring Sensor Monitor.
3. In Sensor Monitor, select the Network tab and change Current Send Mode
to Binary. Enter the dest. host and port values as displayed in the instructions.
Tap Start Send. If configured properly, MATLAB displays a message
that it is logging data from the mobile device, including a list of measurements.
Leave the Sensor Monitor app open and running in the foreground. If it goes
to the background, iOS will stop the app after some time and it will stop sending data.
4. In MATLAB, display the current data by entering: showLatestValues(obj)
MATLAB displays the measurements, latest values, units, and log size for
each measurement. It identifies measurements for which it has not received data.
5. When you are done, in Sensor Monitor, tap Stop Send.
Set up and read data from an Android device:
1. Open SensorUdp app.
2. In MATLAB, enter: obj = sensorgroup('AndroidMobile')
MATLAB displays instructions for configuring SensorUdp.
3. In SensorUdp, update the dest. host and port values.
4. In SensorUdp, use the check boxes for accelerometer cvs line,
magnetic field cvs line, and orientation cvs line to choose which
sensors send data. Then, tap the Send button. MATLAB displays a message
that it is logging data from the mobile device, including a list of sensors.
5. In MATLAB, display the current data by entering: showLatestValues(obj)
MATLAB displays the measurements, latest values, units, and log size for
each measurement. It also identifies measurements for which it has not received data.
6. When you are done, exit from the app by pressing the Android Back button.
In order to increase battery life, it’s recommended to open the
Android Task Manager and make sure that SensorUdp is not running after you finished.
HOW TO ACCESS RECEIVED DATA (Apple and Android Devices)
Use showLatestValues to display a list of measurement names and the most
recent value for each one. For example:
showLatestValues(obj)
You can also get the latest value of a specific measurement listed by showLatestValues.
For example:
obj.Acceleration
You can use sensorgroup methods to access the logged measurement values.
For example, to get logged acceleration values call:
[a, t] = accellog(obj)
Run "help sensorgroup" to get more information.
TROUBLESHOOTING
If MATLAB does not receive data from the mobile device:
Symptom: MATLAB does not display "logging data from the mobile device" message
after you tap the Send or Start Send button in the app on the mobile device.
Verify or try the following:
- In the app on the mobile device:
Enable the sensors.
Set the IP address and port number provided by MATLAB.
If MATLAB provides multiple IP addresses, try each one.
Tap the Send or Start Send button.
- The mobile device is connected to the correct Wi-Fi network. Airplane mode is off.
- The host computer running MATLAB is connected to the network.
- Routers on the network are configured to pass UDP traffic for the specified port number.
Happy sensing!
近期下载者:
相关文件:
收藏者: