<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.theiphonewiki.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mringwal</id>
	<title>The iPhone Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.theiphonewiki.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mringwal"/>
	<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/wiki/Special:Contributions/Mringwal"/>
	<updated>2026-05-06T13:11:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.14</generator>
	<entry>
		<id>https://www.theiphonewiki.com/w/index.php?title=System_Log&amp;diff=41496</id>
		<title>System Log</title>
		<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/w/index.php?title=System_Log&amp;diff=41496"/>
		<updated>2014-07-04T08:17:20Z</updated>

		<summary type="html">&lt;p&gt;Mringwal: /* bgm's trick for enabling system log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;iOS devices have a '''system log''' ('''syslog''') like other UNIX-derived operating systems do. See [http://en.wikipedia.org/wiki/Syslog Syslog on Wikipedia] for background.&lt;br /&gt;
&lt;br /&gt;
If you're a developer who needs simple instructions to give to a user about how to send a syslog to you, you can give them [http://www.jailbreakqa.com/questions/32462/frequently-asked-questions#81925 &amp;quot;A developer asked for my device's syslog. How do I send it?&amp;quot; in the JailbreakQA FAQ].&lt;br /&gt;
&lt;br /&gt;
== Reading syslog ==&lt;br /&gt;
=== On-device ===&lt;br /&gt;
&amp;lt;!-- TODO: Add a description of what socat is&lt;br /&gt;
--&amp;gt;As [[iOS]] is [[wikipedia:Unix|Unix]] based, it comes as no surprise that its syslog can be read using the same tools desktop Unix and [[wikipedia:Linux|Linux]] power users use; provided the tools are compiled for ARM. The most common tool is &amp;lt;code&amp;gt;socat(1)&amp;lt;/code&amp;gt;&amp;lt;sup&amp;gt;[{{man|socat|1}}]&amp;lt;/sup&amp;gt;. If you don't have it yet, just run an &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; on the package &amp;lt;code&amp;gt;socat&amp;lt;/code&amp;gt;. In order to use it, just connect to the syslog socket with the following command:&lt;br /&gt;
 socat - UNIX-CONNECT:/var/run/lockdown/syslog.sock&lt;br /&gt;
This gives an interactive shell with the syslog daemon (no need to enable file output). If you execute the &amp;lt;code&amp;gt;watch&amp;lt;/code&amp;gt; command, a backlog of messages will be printed and new messages will be printed as they arrive.&lt;br /&gt;
&lt;br /&gt;
=== On OS X through [[lockdownd]] ===&lt;br /&gt;
&amp;lt;!-- TODO: Add explanation&lt;br /&gt;
--&amp;gt;A binary (and its source code) to view ASL messages from Mac using the MobileDevice.framework has been made available on http://newosxbook.com/index.php?page=downloads. Ryan Petrich's [https://github.com/rpetrich/deviceconsole deviceconsole] also provides the same functionality with useful color-coding.&lt;br /&gt;
&lt;br /&gt;
=== On Windows through [[lockdownd]] ===&lt;br /&gt;
Apple's [http://support.apple.com/kb/dl1466 iPhone Configuration Utility] can display the syslog on Windows.&lt;br /&gt;
&lt;br /&gt;
=== bgm's trick for enabling system log ===&lt;br /&gt;
This method will constantly write syslog output to a file. This is not recommended as it is slower, and can become fairly large. Install &amp;quot;syslogd to /var/log/syslog&amp;quot; from [[saurik]]'s repo and reboot your device.&lt;br /&gt;
&lt;br /&gt;
If you don't want to reboot, you can restart the syslogd instead:&lt;br /&gt;
 launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist&lt;br /&gt;
 launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/var/log/syslog&amp;lt;/tt&amp;gt; will now be appended to automatically, and you can watch it like so:&lt;br /&gt;
 tail -f /var/log/syslog&lt;br /&gt;
(The &amp;quot;tail&amp;quot; command is in the package &amp;quot;Core Utilities&amp;quot; (coreutils) in the Cydia/Telesphoreo repository.) If you keep your device full of data, be careful you don't fill the disk. Unix systems tend to break when they can't write to the syslog. Keep an eye on it or employ some log rotation.&lt;br /&gt;
&lt;br /&gt;
To disable syslog writing, run:&lt;br /&gt;
 rm /var/log/syslog;&lt;br /&gt;
 mknod /var/log/syslog c 3 2&lt;br /&gt;
This will delete (&amp;lt;tt&amp;gt;rm&amp;lt;/tt&amp;gt;) the file and create a [[:/dev/null]]. (&amp;lt;tt&amp;gt;mknod *** c 3 2&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
To re-enable syslog writing, run:&lt;br /&gt;
 rm /var/log/syslog&lt;br /&gt;
 touch /var/log/syslog&lt;br /&gt;
&lt;br /&gt;
This will delete (&amp;lt;tt&amp;gt;rm&amp;lt;/tt&amp;gt;) the file and and make a blank regular file. (&amp;lt;tt&amp;gt;touch&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
==== SBSettings Toggle ====&lt;br /&gt;
An SBSettings [http://apt.thebigboss.org/onepackage.php?bundleid=sbsettingssyslogd toggle] for enabling/disabling the syslog in this way is available at BigBoss' Cydia repository. Ensure &amp;quot;syslogd to /var/log/syslog&amp;quot; is installed - the toggle package hasn't marked it as a dependency.&lt;br /&gt;
&lt;br /&gt;
=== On OS X or Windows through cinject ===&lt;br /&gt;
&lt;br /&gt;
# Plug your device into your computer.&lt;br /&gt;
# Download [http://blog.iphone-dev.org/post/24395681708/pre-dc cinject from this Dev Team blog post] (for OS X and Windows).&lt;br /&gt;
# Unzip the file.&lt;br /&gt;
# Open up a terminal on your computer (if you use OS X, you can use the Terminal application in the /Applications/Utilities/ folder.)&lt;br /&gt;
# Assuming you're using OS X and have downloads configured to use the default Downloads folder, run this command (copy and paste it and then hit the return key): &amp;lt;tt&amp;gt;cd ~/Downloads/cinject-0.5.4&amp;lt;/tt&amp;gt; and then run &amp;lt;tt&amp;gt;./cinject -w&amp;lt;/tt&amp;gt;&lt;br /&gt;
# That should display the running syslog from your device.&lt;br /&gt;
&lt;br /&gt;
== Reference ==&lt;br /&gt;
* [http://code.google.com/p/iphone-elite/wiki/IphoneSyslogd Google Code]&lt;br /&gt;
* [http://code.google.com/p/iphone-elite/source/list?path=/wiki/IphoneSyslogd.wiki&amp;amp;start=398 Full History]&lt;br /&gt;
&lt;br /&gt;
[[Category:Filesystem]]&lt;br /&gt;
[[Category:Daemons]]&lt;/div&gt;</summary>
		<author><name>Mringwal</name></author>
		
	</entry>
	<entry>
		<id>https://www.theiphonewiki.com/w/index.php?title=Bluetooth&amp;diff=5736</id>
		<title>Bluetooth</title>
		<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/w/index.php?title=Bluetooth&amp;diff=5736"/>
		<updated>2010-01-19T11:17:49Z</updated>

		<summary type="html">&lt;p&gt;Mringwal: Added BTstack info&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bluetooth is a short-range, wireless technology, popular for its Personal Area Networking capability. Bluetooth hardware is provided on all iPhone platforms and the second generation iPod Touch platform. Apple has severely restricted the functions of Bluetooth to the end-user, for seemingly no reason, as the hardware supplied is capable of most if not all current bluetooth 2.0/2.1 functions.&lt;br /&gt;
&lt;br /&gt;
With iPhoneOS 3.0, support for 3G internet bridging (PAN) or 'tethering' and A2DP over Bluetooth has been added, however the file sharing OBEX protocol is notably still missing.&lt;br /&gt;
&lt;br /&gt;
== Access ==&lt;br /&gt;
&lt;br /&gt;
Developers have been able to successfully access and interface the Bluetooth hardware to achieve basic L2CAP, RCOMM and OBEX. Besides individual closed-apps that contain a patched version of the lwBT Bluetooth Stack (e.g. roqyGPS and the upcoming iBlueNova for OBEX), the open-source BTstack project at http://btstack.googlecode.com provides general Bluetooth support for multiple applications. Examples available in Cydia: BTstack Keyboard, BTstack Mouse, WiiMote OpenGL Demo and some of ZodTTD's emulators. &lt;br /&gt;
&lt;br /&gt;
The device nodes of relevance here, are &lt;br /&gt;
* /dev/uart.bluetooth&lt;br /&gt;
* /dev/cu.bluetooth&lt;br /&gt;
* /dev/tty.bluetooth&lt;br /&gt;
* /dev/btreset&lt;br /&gt;
&lt;br /&gt;
== iPhone/iPods Bluetooth Hardware Summary==&lt;br /&gt;
&lt;br /&gt;
* iPhone (iPhone1,1) (m68ap) - Bluetooth (r) 2.0 + EDR&lt;br /&gt;
* iPhone 3G (iPhone1,2) (n82ap) - Bluetooth (r) 2.0 + EDR - chip specific link [[Bluetooth iPhone2,1]]&lt;br /&gt;
* iPhone 3GS (iPhone2,1) (n88ap) - Bluetooth (r) 2.1 + EDR - chip specific link [[BCM4325]]&lt;br /&gt;
&lt;br /&gt;
* iPod Touch (iPod1,1) (n45ap) - No Bluetooth Hardware&lt;br /&gt;
* iPod Touch 2G (iPod2,1) (n72ap) - Bluetooth (r) 2.1 + EDR&lt;br /&gt;
* iPod Touch 3G (iPod3,1) - Bluetooth (r) 2.1 + EDR - chip specific link [[BCM4329]]&lt;/div&gt;</summary>
		<author><name>Mringwal</name></author>
		
	</entry>
</feed>