Difference between revisions of "Mobilehotspot"
Jump to navigation
Jump to search
(initial draft of a mobilehotspotd research page) |
m (formatting) |
||
Line 1: | Line 1: | ||
− | |||
/usr/bin/mobilehotspotd is a binary service (written in c/c++ probably), introduced in 1.3.5 but undocumented. | /usr/bin/mobilehotspotd is a binary service (written in c/c++ probably), introduced in 1.3.5 but undocumented. | ||
Line 10: | Line 9: | ||
sysInfo | sysInfo | ||
− | luna-send -n 1 palm://com.palm.mobilehotspot/sysInfo {} | + | luna-send -n 1 palm://com.palm.mobilehotspot/sysInfo {} |
− | ** Message: serviceResponse Handling: 2, { "returnValue": true, "sysInfo": { "ifbridge": "bridge12", "IPv4Address": "10.1.1.11", "IPv4Subnet": "255.255.255.0", "IPv4PoolStart": "10.1.1.200", "stateBridge": "CREATED", "stateIPv4": "REMOVED", "stateDHCPServer": "DHCP SERVER STOPPED", "stateBluetoothRadio": "OFF", "interfaces": [ ] } } | + | ** Message: serviceResponse Handling: 2, { "returnValue": true, "sysInfo": { "ifbridge": "bridge12", "IPv4Address": "10.1.1.11", "IPv4Subnet": "255.255.255.0", "IPv4PoolStart": "10.1.1.200", "stateBridge": "CREATED", "stateIPv4": "REMOVED", "stateDHCPServer": "DHCP SERVER STOPPED", "stateBluetoothRadio": "OFF", "interfaces": [ ] } } |
setDebugLevel | setDebugLevel | ||
− | luna-send -n 1 palm://com.palm.mobilehotspot/setDebugLevel '{ "debugLevel": "chatty" }' | + | luna-send -n 1 palm://com.palm.mobilehotspot/setDebugLevel '{ "debugLevel": "chatty" }' |
Options for debugLevel seem to be: | Options for debugLevel seem to be: | ||
− | chatty verbose trace info notice warning assert require error critical alert emergency tragic | + | chatty verbose trace info notice warning assert require error critical alert emergency tragic |
interfaceAdd, interfaceRemove | interfaceAdd, interfaceRemove | ||
Line 26: | Line 25: | ||
No idea! We're probably missing very important parameters here. | No idea! We're probably missing very important parameters here. | ||
− | luna-send -n 1 palm://com.palm.mobilehotspot/interfaceAdd {} | + | luna-send -n 1 palm://com.palm.mobilehotspot/interfaceAdd {} |
− | luna-send -n 1 palm://com.palm.mobilehotspot/interfaceRemove {} | + | luna-send -n 1 palm://com.palm.mobilehotspot/interfaceRemove {} |
Revision as of 21:36, 14 January 2010
/usr/bin/mobilehotspotd is a binary service (written in c/c++ probably), introduced in 1.3.5 but undocumented.
Service calls:
Watch out because the program is likely to segfault when passed bad JSON arrays. Luna will return "not running" though a sysinfo will return valid information after a moment (upstart restarts it)
Methods: sysInfo clientList setDebugLevel interfaceAdd interfaceRemove
sysInfo
luna-send -n 1 palm://com.palm.mobilehotspot/sysInfo {}
** Message: serviceResponse Handling: 2, { "returnValue": true, "sysInfo": { "ifbridge": "bridge12", "IPv4Address": "10.1.1.11", "IPv4Subnet": "255.255.255.0", "IPv4PoolStart": "10.1.1.200", "stateBridge": "CREATED", "stateIPv4": "REMOVED", "stateDHCPServer": "DHCP SERVER STOPPED", "stateBluetoothRadio": "OFF", "interfaces": [ ] } }
setDebugLevel
luna-send -n 1 palm://com.palm.mobilehotspot/setDebugLevel '{ "debugLevel": "chatty" }'
Options for debugLevel seem to be:
chatty verbose trace info notice warning assert require error critical alert emergency tragic
interfaceAdd, interfaceRemove
No idea! We're probably missing very important parameters here.
luna-send -n 1 palm://com.palm.mobilehotspot/interfaceAdd {}
luna-send -n 1 palm://com.palm.mobilehotspot/interfaceRemove {}