Difference between revisions of "Mobilehotspot"

From WebOS Internals
Jump to navigation Jump to search
m (formatting)
m (more format)
Line 1: Line 1:
 +
== mobilehotspotd ==
 +
 
/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.
  
Service calls:
+
== logs ==
 +
 
 +
the hotspot service seems to log to /var/log/mobilehotspotd.log
 +
 
 +
== 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)
 
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)

Revision as of 22:38, 14 January 2010

mobilehotspotd

/usr/bin/mobilehotspotd is a binary service (written in c/c++ probably), introduced in 1.3.5 but undocumented.

logs

the hotspot service seems to log to /var/log/mobilehotspotd.log

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 {}