<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chris</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chris"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Chris"/>
	<updated>2026-04-16T11:30:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Mobilehotspot&amp;diff=11153</id>
		<title>Mobilehotspot</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Mobilehotspot&amp;diff=11153"/>
		<updated>2010-09-03T16:21:38Z</updated>

		<summary type="html">&lt;p&gt;Chris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== mobilehotspotd ==&lt;br /&gt;
&lt;br /&gt;
/usr/bin/mobilehotspotd is a binary service (written in c/c++ probably), introduced in 1.3.5 but undocumented.&lt;br /&gt;
&lt;br /&gt;
== logs ==&lt;br /&gt;
&lt;br /&gt;
the hotspot service seems to log to /var/log/mobilehotspotd.log&lt;br /&gt;
&lt;br /&gt;
== Service calls ==&lt;br /&gt;
&lt;br /&gt;
Watch out because the program is likely to segfault when passed bad JSON arrays.  Luna will return &amp;quot;not running&amp;quot; though a sysinfo will return valid information after a moment (upstart restarts it)&lt;br /&gt;
&lt;br /&gt;
Methods:   sysInfo clientList setDebugLevel  interfaceAdd interfaceRemove&lt;br /&gt;
&lt;br /&gt;
sysInfo&lt;br /&gt;
&lt;br /&gt;
 luna-send -n 1 palm://com.palm.mobilehotspot/sysInfo {}&lt;br /&gt;
&lt;br /&gt;
 ** Message: serviceResponse Handling: 2, { &amp;quot;returnValue&amp;quot;: true, &amp;quot;sysInfo&amp;quot;: { &amp;quot;ifbridge&amp;quot;: &amp;quot;bridge12&amp;quot;, &amp;quot;IPv4Address&amp;quot;: &amp;quot;10.1.1.11&amp;quot;, &amp;quot;IPv4Subnet&amp;quot;: &amp;quot;255.255.255.0&amp;quot;, &amp;quot;IPv4PoolStart&amp;quot;: &amp;quot;10.1.1.200&amp;quot;, &amp;quot;stateBridge&amp;quot;: &amp;quot;CREATED&amp;quot;, &amp;quot;stateIPv4&amp;quot;: &amp;quot;REMOVED&amp;quot;, &amp;quot;stateDHCPServer&amp;quot;: &amp;quot;DHCP SERVER STOPPED&amp;quot;, &amp;quot;stateBluetoothRadio&amp;quot;: &amp;quot;OFF&amp;quot;, &amp;quot;interfaces&amp;quot;: [ ] } }&lt;br /&gt;
&lt;br /&gt;
setDebugLevel&lt;br /&gt;
&lt;br /&gt;
 luna-send -n 1 palm://com.palm.mobilehotspot/setDebugLevel '{ &amp;quot;debugLevel&amp;quot;: &amp;quot;chatty&amp;quot; }'&lt;br /&gt;
&lt;br /&gt;
Options for debugLevel seem to be:&lt;br /&gt;
&lt;br /&gt;
 chatty verbose trace info notice warning assert require error critical alert emergency tragic&lt;br /&gt;
&lt;br /&gt;
To start a hotspot:&lt;br /&gt;
&lt;br /&gt;
 luna-send -n 1 palm://com.palm.mobilehotspot/interfaceAdd '{&amp;quot;wifi&amp;quot;:{&amp;quot;SSID&amp;quot;:&amp;quot;&amp;lt;NetworkName&amp;gt;&amp;quot;,&amp;quot;Security&amp;quot;:&amp;quot;WPA2Personal&amp;quot;,&amp;quot;Passphrase&amp;quot;:&amp;quot;&amp;lt;Passphrase&amp;gt;&amp;quot;}}'&lt;br /&gt;
&lt;br /&gt;
And to stop it:&lt;br /&gt;
&lt;br /&gt;
 luna-send -n 1 palm://com.palm.mobilehotspot/interfaceRemove '{&amp;quot;wifi&amp;quot;:{&amp;quot;SSID&amp;quot;:&amp;quot;&amp;lt;NetworkName&amp;gt;&amp;quot;}}'&lt;br /&gt;
&lt;br /&gt;
== Adding USB Tethering ==&lt;br /&gt;
&lt;br /&gt;
This is so simple it hurts. The device must have the mobilehotspot service enabled.&lt;br /&gt;
&lt;br /&gt;
create a file in '''/etc/event.d''' called '''usbtether''' (or however you like)&lt;br /&gt;
&lt;br /&gt;
 # This enables the USB tethering&lt;br /&gt;
 &lt;br /&gt;
 start on started mobilehotspot&lt;br /&gt;
 &lt;br /&gt;
 # console output&lt;br /&gt;
 &lt;br /&gt;
 script&lt;br /&gt;
 	echo &amp;quot;# sleeping a bit&amp;quot;&lt;br /&gt;
 	sleep 5&lt;br /&gt;
 	echo &amp;quot;# activating usb0&amp;quot;&lt;br /&gt;
 	ifconfig usb0 0.0.0.0&lt;br /&gt;
 	echo &amp;quot;# adding usb0 to bridge&amp;quot;&lt;br /&gt;
 	brctl addif bridge0 usb0&lt;br /&gt;
 end script&lt;br /&gt;
&lt;br /&gt;
The sleep 5 allows mobilehotspotd to create the bridge. One could use a more clever/robust method, but it's probably not worth it. &lt;br /&gt;
&lt;br /&gt;
''NOTE:'' The tethering is ALWAYS active, you don't need to start the Mobile Hotspot application. ''Actually, no. The DHCP server is not active unless Mobile Hotspot is on.''&lt;br /&gt;
&lt;br /&gt;
== Control of BT IP Address ==&lt;br /&gt;
&lt;br /&gt;
The mobilehotspotd binary is the source of the 10.1.1.11 IP address and subnet range used when connecting to the NAP Bluetooth Profile. This can be changed via HEX edit at address 0000a4e0 of the binary. &lt;br /&gt;
&lt;br /&gt;
Below is the Hex code for the relevant area, this sets the IP address and range. Hex in bold is the 3rd octet of the IP address, in this example 10.1.'''1'''.11 and the 2nd address shown is 10.1.'''1'''.200&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 70 61 6c 6d 2e 62 72 69 64 67 65 00 31 30 2e 31 2e '''31''' 2e 31 31 00 00 00 64 68 63 70 4f 62 6a 2d 3e 69 70 76 34 41 64 64 72 65 73 73 00 00 00 00 32 35 35 2e 32 35 35 2e 32 35 35 2e 30 00 00 00 64 68 63 70 4f 62 6a 2d 3e 69 70 76 34 53 75 62 6e 65 74 00 31 30 2e 31 2e '''31''' 2e 32 30 30 00 00 64 68 63 70 4f 62 6a 2d 3e 69 70 76 34 50 6f 6f 6c 53 74 61 72 74&lt;br /&gt;
&lt;br /&gt;
While it's not recommended adding digits to the binary, it should be moderately safe to change the highlighted digits to anywhere between 0 and 9. &lt;br /&gt;
&lt;br /&gt;
The results of changing the highlighted digits to a hex value of 39 (decimal of 9) is as follows, and any connecting clients end up with a 10.1.9.200 address.&lt;br /&gt;
&lt;br /&gt;
 palm-webos-device ~ # ifconfig&lt;br /&gt;
 bridge0   Link encap:Ethernet  HWaddr Removed&lt;br /&gt;
          inet addr:10.1.9.11  Bcast:10.1.9.255  Mask:255.255.255.0&lt;br /&gt;
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;
          RX packets:118932 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;
          TX packets:168603 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;
          collisions:0 txqueuelen:0&lt;br /&gt;
          RX bytes:13127749 (12.5 MiB)  TX bytes:133881439 (127.6 MiB)&lt;/div&gt;</summary>
		<author><name>Chris</name></author>
	</entry>
</feed>