Browse Listings
Resource
Samsung Sensor simulator
Overview
Is a plug-in for the Eclipse IDE that provides a visuaal model of a device alosng with its various sensor settings.
Details
By manipulating the position of the device or the forces acting on the device, the user can see the sensor readings under a variety of conditions.
In addition, the simulator allows the user to:
· Run scripts describing changing physical conditions
· Link to an actual device and record the sensor readings from that device in a data file
· Play back recorded data files and user defined scripts
Phone Profiles
Below the image of the device is a field labeled “Phone Profiles” containing a drop-down menu of different devices. For each profile, the simulator will display the sensors supported by that device.
Supported Sensors
Currently, the following sensors are supported by the simulator for most device profiles:
· Orientation – the orientation of the device in space, in azmuth, pitch and roll
· Magnetic Field – the direction and strength of a magnetic field in X, Y, and Z directions
· Accelerometer – linear acceleration in X, Y, and Z directions
· Light – brightness of the surrounding environment in 1000 lux
· Proximity – distance from the face of the device to a solid object (usually, the user’s face while making a phone call)
In addition, the following sensors are included in the “Samsung Generic Android Device” profile:
· Gravity
· Linear Acceleration
· Rotation Vector
· Pressure
· Temperature
· Gyroscope
By clicking on the image of the device and dragging, the user can change the device’s orientation in space, and see how the sensors respond. For example, flipping the phone over will cause the accelerometer reading, which measures the pull of gravity, to change direction since gravity will be pulling on the opposite side of the device. Magnetic readings also change according to changes in the device’s orientation.
Position and sensor readings can also be adjusted using the slider bars for each property.
Scripts, Recording, and Playback
The slider bars allow the user to adjust one condition at a time. The mouse-and-drag method allows two orientation properties to be changed at once. In order to change more conditions at the same time there is a “Sensor Actions” field which includes a list of scripts that demonstrate more complex manipulations. The user may also write scripts, and record either simulation behavior or actual device behavior in data files. These data files can be played back the same way a script is run.
Playing a Script
To play one of the pre-installed scripts, select it from the drop-down menu and press Play.
Writing a Script
See Tools & SDK > Samsung Sensor Script on this site.
Recording a Data File
To record an action, either simulated or received from a device, click the Record Action button and perform the desired actions. When you have finished recording the actions, press the Stop Recording button.
Mobile App Components and Project Source Codes
Birthday Calendar with Reminders
Custom Mobile Greetings App Starter Kit
Facebook Like Button


