Radio Simulator

On the Emulator, you can simulate telephone and GPS radio hardware at the lowest level. The software stack that supports the radio is identical to that in a real device, allowing you to perform tests with fake radio events and data and be confident your app will behave the exact same way on the device.

Using luna-send to Generate Radio Events

From a device shell on the Emulator, you can use the luna-send utility to call radio simulator service (com.palm.pmradiosimulator) methods on the device bus to generate radio events. The luna-send URL parameter specifies the service method, and a subsequent JSON object provides event data.

Examples

luna-send -n 1 luna://com.palm.pmradiosimulator/set_incomingcall {\"number\":\"14086177431\"} 

luna-send -n 1 luna://com.palm.pmradiosimulator/set_incomingsms {\"number\":\"4086177431\",\"   message\":\"'Virtura Reality'\"} 

luna-send -n 1 luna://com.palm.pmradiosimulator/set_position {\"lat\":\"37.3\",\"long\":\"-122\"} 

luna-send -n 1 luna://com.palm.pmradiosimulator/set_operator {\"operator\":\"Sprint\"} 

GPS AutoDrive

AutoDrive is a feature that allows you to simulate a GPS Route over any LBS (Location Based Service) application, such as Google Maps, on the HP webOS SDK. The GPS Route is contained in a .csv database file that you can generate in real-time— using a HP webOS smartphone, for example.

Commands for GPS AutoDrive

luna-send -n 1 luna://com.palm.pmradiosimulator/autodrive/start {}

luna-send -n 1 luna://com.palm.pmradiosimulator/autodrive/stop {}

luna-send -n 1 luna://com.palm.pmradiosimulator/autodrive/reverse {}  

luna-send -n 1 luna://com.palm.pmradiosimulator/autodrive/pause {}

luna-send -n 1 luna://com.palm.pmradiosimulator/autodrive/resume {}

luna-send -n 1 luna://com.palm.pmradiosimulator/autodrive/speedup {}

luna-send -n 1 luna://com.palm.pmradiosimulator/autodrive/slowdown {}

luna-send -n 1 luna://com.palm.pmradiosimulator/autodrive/set_route \
{\"route\":\"/var/lib/MyGpsRoute.csv\"}