<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gustavo F. Padovan &#187; en</title>
	<atom:link href="http://padovan.org/blog/tag/en/feed/" rel="self" type="application/rss+xml" />
	<link>http://padovan.org/blog</link>
	<description>a hacking life</description>
	<lastBuildDate>Fri, 23 Jul 2010 22:30:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>ProFUSION on the kernel development statistics for 2.6.35</title>
		<link>http://padovan.org/blog/2010/07/profusion-on-the-kernel-development-statistics-for-2-6-35/</link>
		<comments>http://padovan.org/blog/2010/07/profusion-on-the-kernel-development-statistics-for-2-6-35/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 22:30:07 +0000</pubDate>
		<dc:creator>padovan</dc:creator>
				<category><![CDATA[bluez]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[profusion]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[enhanced retransmission mode]]></category>
		<category><![CDATA[l2cap]]></category>
		<category><![CDATA[streaming mode]]></category>

		<guid isPermaLink="false">http://padovan.org/blog/?p=187</guid>
		<description><![CDATA[A recent article from lwn.net shows ProFUSION in the most active employers for networking stuff in the 2.6.35 release cycle.  That was due to the work we did in the Bluetooth stack implementing the L2CAP Extended Features (see older post in this blog to learn about L2CAP Extended Features).  Nice!]]></description>
			<content:encoded><![CDATA[<p>A recent <a href="http://lwn.net/Articles/395458/" target="_blank">article</a> from <a href="http://lwn.net">lwn.net</a> shows ProFUSION in the most active employers for networking stuff in the 2.6.35 release cycle.  That was due to the work we did in the Bluetooth stack implementing the L2CAP Extended Features (see older post in this blog to learn about L2CAP Extended Features).  Nice!</p>
]]></content:encoded>
			<wfw:commentRss>http://padovan.org/blog/2010/07/profusion-on-the-kernel-development-statistics-for-2-6-35/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Handsfree Profile into BlueZ and oFono</title>
		<link>http://padovan.org/blog/2010/02/handsfree-profile-into-bluez-and-ofono/</link>
		<comments>http://padovan.org/blog/2010/02/handsfree-profile-into-bluez-and-ofono/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 22:01:55 +0000</pubDate>
		<dc:creator>padovan</dc:creator>
				<category><![CDATA[bluez]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[profusion]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[ofono]]></category>
		<category><![CDATA[pulseaudio]]></category>

		<guid isPermaLink="false">http://padovan.org/blog/?p=123</guid>
		<description><![CDATA[I&#8217;m proud to announce that BlueZ and oFono now support the Handsfree role of the Bluetooth Handsfree profile. This means that your Desktop now can now act like a headset bluetooth and handle calls from your cell phone.  The work was done during the last 2 months here at ProFUSION. On the BlueZ side a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m proud to announce that <a href="http://www.bluez.org" target="_blank">BlueZ</a> and <a href="http://www.ofono.org" target="_blank">oFono</a> now support the Handsfree role of the Bluetooth <a href="http://bluetooth.com/Bluetooth/Technology/Works/HFP.htm" target="_blank">Handsfree profile</a>. This means that your Desktop now can now act like a headset bluetooth and handle calls from your cell phone.  The work was done during the last 2 months here at <a href="http://profusion.mobi" target="_blank">ProFUSION</a>.</p>
<p>On the BlueZ side a new API was designed using the fd-passing feature of DBus 1.3.  This new API uses the concept of Agents where oFono plays the Agent role.  In the HFP case the Agent role is to handle the AT engine stuff while BlueZ will only take care of the RFCOMM and SCO connections.</p>
<p>The RFCOMM socket is passed to the Agent in oFono via DBus, then oFono uses it to send and receive the AT commands to establish a Service Level Connection, i. e., make the handshake procedure. If it succeeds oFono will be ready to make and answers calls. Your HFP enabled phone will show up as a  modem in oFono, like any other oFono modem.</p>
<p>The work was initially based on patches from Zhenhua Zhang(from Intel) and the audio interaction to handle the SCO data inside Pulseaudio was done by <a href="http://jprvita.wordpress.com" target="_blank">João Paulo Rechi Vita</a>(from <a href="http://profusion.mobi/" target="_blank">ProFUSION</a> too). He also did the demo video below.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="551" height="365" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=9078799&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="551" height="365" src="http://vimeo.com/moogaloop.swf?clip_id=9078799&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>After pairing the devices using some BlueZ agent like kbluetooth or gnome-bluetooth, you&#8217;ll be able to see the modem in oFono and you can enable it ( i. e., make the handshake procedure to establish an HFP Service Level Connection) using the enable-modem script from the test directory on oFono source.</p>
<p>In order to test this you need the Audio Gateway interface enabled in BlueZ. For that, edit your /etc/bluetooth/audio.conf  and add &#8220;Enable=Gateway&#8221; to it.</p>
<p>HFP code is already merged upstream on the BlueZ and oFono trees. The API is described in <a href="http://git.kernel.org/?p=bluetooth/bluez.git;a=blob;f=doc/hfp-api.txt;h=8180de0e80919cbf1bc613676e0548b35b01adc9;hb=HEAD" target="_blank">doc/hfp-api.txt</a> in BlueZ source.</p>
]]></content:encoded>
			<wfw:commentRss>http://padovan.org/blog/2010/02/handsfree-profile-into-bluez-and-ofono/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlueZ 4.60 on Gentoo Portage</title>
		<link>http://padovan.org/blog/2010/02/bluez-4-60-on-gentoo-portage/</link>
		<comments>http://padovan.org/blog/2010/02/bluez-4-60-on-gentoo-portage/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 04:23:15 +0000</pubDate>
		<dc:creator>padovan</dc:creator>
				<category><![CDATA[bluez]]></category>
		<category><![CDATA[profusion]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://padovan.org/blog/?p=118</guid>
		<description><![CDATA[After a while with a BlueZ 4.39 ebuid Gentoo has updated today to the version 4.60 (the lastest one).  It took a lot of work from me and others gentoo guys, especially Pacho Ramos. Thanks to all. By adding this ebuild we were able to close other 4 bugs into the Gentoo bugzilla, but we [...]]]></description>
			<content:encoded><![CDATA[<p>After a while with a BlueZ 4.39 ebuid <a href="http://www.gentoo.org">Gentoo</a> has updated today to the version 4.60 (the lastest one).  It took a lot of work from me and others gentoo guys, especially Pacho Ramos. Thanks to all.</p>
<p>By adding this ebuild we were able to close other 4 bugs into the Gentoo bugzilla, but we still have bugs.  Just search for <a href="http://bugs.gentoo.org/buglist.cgi?quicksearch=bluez" target="_blank">bluez</a> or <a href="http://bugs.gentoo.org/buglist.cgi?quicksearch=bluetooth" target="_blank">bluetooth</a> on the Gentoo Bugzilla and help us to fix Bluetooth on Gentoo.</p>
<p>Update your portage tree and try the new BlueZ ebuild. And if you find any issue, please file a bug into <a href="http://bugs.gentoo.org">Gentoo Bugzilla</a>. :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://padovan.org/blog/2010/02/bluez-4-60-on-gentoo-portage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>BlueZ: status update into the L2CAP layer</title>
		<link>http://padovan.org/blog/2009/08/bluez-status-update-into-the-l2cap-layer/</link>
		<comments>http://padovan.org/blog/2009/08/bluez-status-update-into-the-l2cap-layer/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 17:11:35 +0000</pubDate>
		<dc:creator>padovan</dc:creator>
				<category><![CDATA[free software]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[bluez]]></category>
		<category><![CDATA[crc16]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[enhanced retransmission mode]]></category>
		<category><![CDATA[gpsl]]></category>
		<category><![CDATA[l2cap]]></category>
		<category><![CDATA[streaming mode]]></category>

		<guid isPermaLink="false">http://padovan.org/blog/?p=88</guid>
		<description><![CDATA[Since the last post here (it was a long time ago :-) too much work was done, but ERTM isn&#8217;t fully implemented yet. So, what did I do last month? I&#8217;ll explain each of the features I implemented on the next paragraphs, but if this are boring for you just take a look at the [...]]]></description>
			<content:encoded><![CDATA[<p>Since the last post here (it was a long time ago :-) too much work was done, but ERTM isn&#8217;t fully implemented yet. So, what did I do last month?<br />
I&#8217;ll explain each of the features I implemented on the next paragraphs, but if this are boring for you just take a look at the roadmap at the end of this post.</p>
<p>First I did the support to send and receive I-frames (the data frames) and created the support to RR S-frames to acknowledge the received I-frames. It first worked with a txWindow=1 (which means only one packet can be send without receive acknowledge from the receiver side). The next step was support a txWindow up to 63 (the maximum value specified). To bring this support I have been using sk_buff lists from the net core implementation.</p>
<p>Support for Segmentation and Reassembly(SAR) of L2CAP SDUs: this feature allows upper applications to use a buffer greater than the L2CAP size packet. The buffer is break down in many packet on the transmitter side and then reassembled on the receiver side and pushed to the upper layer.</p>
<p>REJ frame exception: When a packet is lost we need to start the recoveries procedures. BlueZ won&#8217;t support raise of REJ exception (we support only raise of SREJ exception by now, spec says that we can choose one of them). But we need to support the receipt of a REJ-exception (i.e. receive a REJ frame). On the receipt of a REJ frame the L2CAP entity needs to stop the transmission and starts to retransmit the requested packets.  A REJ frame tells the ReqSeq(packet id sequence) and all packets up to ReqSeq &#8211; 1 shall be considered acknowledged, the others shall be retransmitted.</p>
<p>SREJ frame exception: BlueZ starts a SREJ exception when it detects lost packets. It sets its state to SREJ_SENT(It means that L2CAP entity is under recovery proccess) and sends a SREJ S-frame for each lost packets. The transmitter side shall resend the packets requested in the SREJ frames without stops transmission of new frames. SREJ exception saves retransmission of unneeded frames.</p>
<p>Retransmission And Monitor Timers: The Retransmission Timer shall be (re)started each time we send a I-frame. If it expires we send a RR-frame and start the Monitor Timer. The other side should response the RR frame immediately, if the the other side do not response and the Monitor Timer expires we resend the RR frame. A maximum value for the of Monitor Timer&#8217;s timeouts can be defined. If a L2CAP entity exceeds this value the channel shall be disconnected.</p>
<p>Busy condition on the remote side: If the remote side enters in a busy condition it will send a RNR frame. So, when the local side receives this frame it should mark the remote busy flag as true and stop the transmission of packets. It restarts the sending of packets only when the remote sides send a REJ, SREJ or RR frame. This says the remote busy condition was cleared.</p>
<p>Streaming mode: This mode of operation is useful to the Bluetooth Streaming Profiles such as A2DP and VDP(not yet implemented). It can take advantages of the Segmentation and Reassembly features.</p>
<p>FCS Option: It is a crc16 check for L2CAP packets. It is the default if both sides support it. If a L2CAP entity receives a packet with a broken crc16 it will drop. The receive procedure will miss it and start the recovery procedure.</p>
<p>Roadmap updated:</p>
<ol>
<li><del datetime="2009-08-29T05:11:58+00:00">Implement ERTM with txWindow=1 and retransmission disabled</del>.
<ol type="i">
<li><del datetime="2009-08-29T05:11:58+00:00">send I-frames</del></li>
<li><del datetime="2009-08-29T05:11:58+00:00">receive I-frames</del></li>
<li><del datetime="2009-08-29T05:11:58+00:00">support RR S-frames to acknowledge I-frames received</del></li>
<li><del datetime="2009-08-29T05:11:58+00:00">acknowledge I-frames</del></li>
</ol>
</li>
<li><del datetime="2009-08-29T05:11:58+00:00">Support txWindow up to 63</del></li>
<li><del datetime="2009-08-29T05:14:58+00:00">Support segmentation and reassembly of L2CAP SDUs</del></li>
<li><del datetime="2009-08-29T20:49:20+00:00">Enable retransmission</del>
<ol type="i">
<li><del datetime="2009-08-29T05:11:58+00:00">support receipt REJ S-Frame</del></li>
<li><del datetime="2009-08-29T05:11:58+00:00">support receipt SREJ S-Frame</del></li>
<li><del datetime="2009-08-29T05:11:58+00:00">support raise of SREJ exception</del></li>
</ol>
</li>
<li> Support busy conditions exceptions</li>
<li><del datetime="2009-08-29T05:11:58+00:00">Enable Retransmission Timer</del></li>
<li><del datetime="2009-08-29T05:11:58+00:00">Enable Monitor Timer</del></li>
<li><del datetime="2009-08-29T05:14:58+00:00">Implement Streaming Mode</del></li>
<li><del datetime="2009-08-29T05:14:58+00:00">Implement FCS Option</del></li>
<li>Support duplex channel</li>
<li>Use SOCK_STREAM as default for Enhanced Retransmission and Streaming Modes.</li>
<li>Test BlueZ against others stacks</li>
</ol>
<h3> What&#8217;s next?</h3>
<p>Now I&#8217;m working the busy condition exception and the support for the ERTM duplex channel. Today, just one side can send data packets. Then I&#8217;ll put ERTM as default when SOCK_STREAM is selected. I expect finish these issues on the coming weeks. After, I&#8217;ll spend my time fixing the bugs I find trough the code.</p>
<p>ps: Sorry for my too not bad English ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://padovan.org/blog/2009/08/bluez-status-update-into-the-l2cap-layer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vim plugin for pastebin</title>
		<link>http://padovan.org/blog/2009/07/vim-plugin-for-pastebin/</link>
		<comments>http://padovan.org/blog/2009/07/vim-plugin-for-pastebin/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 02:32:41 +0000</pubDate>
		<dc:creator>padovan</dc:creator>
				<category><![CDATA[free software]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[gpsl]]></category>
		<category><![CDATA[pastebin]]></category>

		<guid isPermaLink="false">http://padovan.org/blog/?p=73</guid>
		<description><![CDATA[I was looking for a pastebin plugin for vim. I&#8217;ve  found one[1], but it was not  working, then I fixed it. The plugin is here[2]. And if is useful to you there is a git repo[3] too. How to use: Put it into ~/.vim/plugin to autoload the plugin every time you open VIM. You can also [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking for a pastebin plugin for vim. I&#8217;ve  found <a href="http://djcraven5.blogspot.com/2006/10/vimpastebin-post-to-pastebin-from.html" target="_blank">one</a>[1], but it was not  working, then I fixed it. The plugin is <a href="http://www.las.ic.unicamp.br/~gustavo/pub/vim/vim-pastebin/plugin/pastebin.vim" target="_blank">here</a>[2]. And if is useful to you there is a git <a href="http://github.com/pao/vim-pastebin/tree/master" target="_blank">repo</a>[3] too.</p>
<p><strong>How to use:</strong></p>
<p>Put it into <tt>~/.vim/plugin</tt> to autoload the plugin every time you open VIM. You can also source it manually:</p>
<blockquote><p><tt>:source /path/to/pastebin.vim</tt></p></blockquote>
<p>You can set your favorite pastebin site and your name editing the pastebin.vim</p>
<p>From [1]: &#8220;To use the script is very simple. Just visually block (Shift-v) the lines of code you want to send to the <a class="ext-link" href="http://pastebin.com/"><span class="icon">Pastebin</span></a> and enter the command <tt>:PasteCode</tt>. The blocked text will be sent to the <a class="ext-link" href="http://pastebin.com/"><span class="icon">Pastebin</span></a> and the new URL will be shown on the Vim statusline.&#8221;</p>
<p style="text-align: left;">[1] <a href="http://djcraven5.blogspot.com/2006/10/vimpastebin-post-to-pastebin-from.html" target="_blank">http://djcraven5.blogspot.com/2006/10/vimpastebin-post-to-pastebin-from.html</a><br />
[2] <a href="http://www.las.ic.unicamp.br/~gustavo/pub/vim/vim-pastebin/plugin/pastebin.vim" target="_blank">http://www.las.ic.unicamp.br/~gustavo/pub/vim/vim-pastebin/plugin/pastebin.vim</a><br />
[3] <a href="http://github.com/pao/vim-pastebin/tree/master" target="_blank">http://github.com/pao/vim-pastebin/tree/master</a></p>
]]></content:encoded>
			<wfw:commentRss>http://padovan.org/blog/2009/07/vim-plugin-for-pastebin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How ERTM will work on BlueZ</title>
		<link>http://padovan.org/blog/2009/07/how-ertm-will-work-on-bluez/</link>
		<comments>http://padovan.org/blog/2009/07/how-ertm-will-work-on-bluez/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 07:06:35 +0000</pubDate>
		<dc:creator>padovan</dc:creator>
				<category><![CDATA[free software]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[bluez]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[TCP]]></category>

		<guid isPermaLink="false">http://padovan.org/blog/?p=65</guid>
		<description><![CDATA[I spent the last days studying how Enhanced Retransmission Mode(ERTM) should be implemented on L2CAP. Marcel recommended me to look at TCP[0] code. ERTM on L2CAP is very similar to TCP. Both have retransmission support, recovery error,  acknowledgment of packets and timers. That means that ERTM implementation will look like TCP implementation[1] on Linux. So, [...]]]></description>
			<content:encoded><![CDATA[<p>I spent the last days studying how Enhanced Retransmission Mode(ERTM) should be implemented on L2CAP. Marcel recommended me to look at <a href="http://en.wikipedia.org/wiki/Transmission_Control_Protocol" target="_blank">TCP</a>[0] code. ERTM on L2CAP is very similar to TCP. Both have retransmission support, recovery error,  acknowledgment of packets and timers.</p>
<p>That means that ERTM implementation will look like <a href="http://vger.kernel.org/~davem/tcp_output.html" target="_blank">TCP implementation</a>[1] on Linux. So, there is no need to write ERTM from scratch, I&#8217;ve already started to code and I&#8217;m basing my code on  TCP code to get started with ERTM.</p>
<p>[0] <a href="http://en.wikipedia.org/wiki/Transmission_Control_Protocol" target="_blank">http://en.wikipedia.org/wiki/Transmission_Control_Protocol</a><br />
[1] <a href="http://vger.kernel.org/~davem/tcp_output.html" target="_blank">http://vger.kernel.org/~davem/tcp_output.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://padovan.org/blog/2009/07/how-ertm-will-work-on-bluez/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>BlueZ: First patch was merged</title>
		<link>http://padovan.org/blog/2009/07/bluez-first-patch-was-merged/</link>
		<comments>http://padovan.org/blog/2009/07/bluez-first-patch-was-merged/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 03:25:30 +0000</pubDate>
		<dc:creator>padovan</dc:creator>
				<category><![CDATA[free software]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[bluez]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[gpsl]]></category>

		<guid isPermaLink="false">http://padovan.org/blog/?p=51</guid>
		<description><![CDATA[The first patch, that add support to L2CAP Enhanced Retransmission, was merged into bluetooth-testing yesterday. The patch adds support to  configure L2CAP connections in Enhanced Retransmission(ERTM) and Streaming Modes besides the Basic Mode.  Streaming Mode will not be implemented now, but it&#8217;s better make all configuration code for the 3 modes instead only ERTM and [...]]]></description>
			<content:encoded><![CDATA[<p>The first patch, that add support to L2CAP Enhanced Retransmission, was merged into bluetooth-testing yesterday. The patch adds support to  configure L2CAP connections in Enhanced Retransmission(ERTM) and Streaming Modes besides the Basic Mode.  Streaming Mode will not be implemented now, but it&#8217;s better make all configuration code for the 3 modes instead only ERTM and Basic Mode. This way we don&#8217;t need to touch twice into configuration code.  The commit is <a href="http://git.kernel.org/?p=linux/kernel/git/holtmann/bluetooth-testing.git;a=commitdiff;h=cd3875bd8ec1cbb490c76dae19fdad375132be73" target="_blank">here</a> and that is the commit message:</p>
<blockquote><p>Bluetooth: Add configuration support for ERTM and Streaming mode</p>
<p>Add support to config_req and config_rsp to configure ERTM and Streaming<br />
mode. If the remote device specifies ERTM or Streaming mode, then the<br />
same mode is proposed. Otherwise ERTM or Basic mode is used. And in case<br />
of a state 2 device, the remote device should propose the same mode. If<br />
not, then the channel gets disconnected.</p>
<p><span class="signoff">Signed-off-by: Gustavo F. Padovan &lt;gustavo@las.ic.unicamp.br&gt;</span><br />
<span class="signoff">Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;</span></p></blockquote>
<p>Now I&#8217;m going to implement support to send and receive I-frames and S-frames. Some part of the code for that . First I&#8217;m going to add support to transmissions with txWindow = 1 (i.e., only one packet can be sent per time without acknowledgment from the other side) and no retransmission support and I intend to finish it during this week.</p>
<p>Here is a quick roadmap for my work:</p>
<ol>
<li>Implement ERTM with txWindow=1 and retransmission disabled.
<ol type="i">
<li>send I-frames</li>
<li>receive I-frames</li>
<li>support RR S-frames to acknowledge I-frames received</li>
<li>acknowledge I-frames</li>
</ol>
</li>
<li>Support txWindow up to 63</li>
<li>Support segmentation and reassembly of L2CAP SDUs</li>
<li>Enable retransmission
<ol type="i">
<li>support REJ S-Frame</li>
<li>support SREJ S-Frame</li>
<li>support RNR S-Frame to indicate busy condition</li>
<li> use RR S-frame to show that is ready to receive I-frames</li>
</ol>
</li>
<li>Enable Retransmission Timer</li>
<li>Enable Monitor Timer</li>
<li>Test BlueZ against others stack that implement ERTM</li>
</ol>
<p>I expect that until end of August finish all this topics. So, let&#8217;s hack. =)</p>
]]></content:encoded>
			<wfw:commentRss>http://padovan.org/blog/2009/07/bluez-first-patch-was-merged/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GSoC 2009: Starting code.</title>
		<link>http://padovan.org/blog/2009/04/gsoc-2009-starting-code/</link>
		<comments>http://padovan.org/blog/2009/04/gsoc-2009-starting-code/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 00:45:13 +0000</pubDate>
		<dc:creator>padovan</dc:creator>
				<category><![CDATA[free software]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[bluez]]></category>
		<category><![CDATA[en]]></category>

		<guid isPermaLink="false">http://www.las.ic.unicamp.br/~gustavo/blog/?p=28</guid>
		<description><![CDATA[I already started to work on my project. Now, I&#8217;m studying how to do the configuration negotiation.  Today, only L2CAP  Basic mode is supported, so the configuration process is too easy, if  a the device try to use another mode, BlueZ stack will response that only supports Basic mode. Now with L2CAP Enhanced Retransmission mode(ERTM) [...]]]></description>
			<content:encoded><![CDATA[<p>I already started to work on my project. Now, I&#8217;m studying how to do the configuration negotiation.  Today, only L2CAP  Basic mode is supported, so the configuration process is too easy, if  a the device try to use another mode, BlueZ stack will response that only supports Basic mode. Now with L2CAP Enhanced Retransmission mode(ERTM) the devices will need negotiate if they will use ERTM or Basic Mode. This week I&#8217;ll start to implement this.</p>
<p>That is the first part of my project,  after  I&#8217;ll really implement ERTM.  The project will add support for two new frames types, I-frames and S-frames.  I-frames transmit all the data and S-frame are used to transmit specific protocol information &#8211; like ask to other device to resend some packet.</p>
<p><strong>BlueZ:</strong><br />
If you wanna see all the projects accepted by BlueZ go to <a title="GSoC 2009" href="http://vudentz.blogspot.com/2009/04/gsoc-2009.html" target="_blank">Vudentz&#8217;s blog</a>, among them is my friend João Paulo Rechi Vita, also from Unicamp, with A2DP sink role.</p>
<p>That&#8217;s all, folks.</p>
<p>UPDATE: I said in the first version of this post that the first part of the project is to add ERTM to features mask. I was wrong. I can do that only when I finish all  ERTM implementation. To test ERTM Marcel has created a module parameter to enable ERTM.</p>
<p>ps: if you find errors in my English, please tell me, I’m learning yet. =)</p>
]]></content:encoded>
			<wfw:commentRss>http://padovan.org/blog/2009/04/gsoc-2009-starting-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let&#8217;s hack! Google Summer of Code 2009 has come.</title>
		<link>http://padovan.org/blog/2009/04/lets-hack-google-summer-of-code-2009-has-come/</link>
		<comments>http://padovan.org/blog/2009/04/lets-hack-google-summer-of-code-2009-has-come/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 00:58:01 +0000</pubDate>
		<dc:creator>padovan</dc:creator>
				<category><![CDATA[free software]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[bluez]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[gpsl]]></category>

		<guid isPermaLink="false">http://www.las.ic.unicamp.br/~gustavo/blog/?p=20</guid>
		<description><![CDATA[I&#8217;m proud to announce I was accepted on Google Summer of Code 2009. Google announced on Monday the students accepted on GSoC 2009. I&#8217;m going to hack BlueZ. My project is named &#8220;L2CAP Enhanced Retransmission mode support&#8221; . My mentors are Luiz Augusto &#8220;Vudentz&#8221; von Dentz and Marcel Holtmann. The work is on L2CAP layer, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m proud to announce I was accepted on Google Summer of Code 2009. Google announced on Monday the students accepted on <a title="GSoC 2009" href="http://socghop.appspot.com/program/accepted_orgs/google/gsoc2009" target="_blank">GSoC 2009</a>. I&#8217;m going to hack BlueZ.<br />
My project is named &#8220;<a href="http://socghop.appspot.com/student_project/show/google/gsoc2009/bluez/t124021929416" target="_blank">L2CAP Enhanced Retransmission mode support&#8221;</a> . My mentors are Luiz Augusto &#8220;Vudentz&#8221; von Dentz and Marcel Holtmann.<br />
The work is on L2CAP layer, which passes the packets from the Link Manager to the higher layer protocols or vice versa.(If you don&#8217;t know what I&#8217;m talking read the links in the end of the post). BlueZ L2CAP layer implementation only supports basic mode of transmission of packets, but corrupted or lost packets can&#8217;t be resent.<br />
The new implementation with the L2CAP Enhanced Retransmission mode will permit retransmission of  corrupted or lost L2CAP packets improving the bluetooth experience on Linux. L2CAP Enhanced Retransmission has a mechanism to notify the sender of the packet that it need to be retransmitted.<br />
If you wanna see what a I&#8217;m doing you can subscribe this blog and get my <a href="http://www.las.ic.unicamp.br/~gustavo/git/" target="_blank">kernel tre</a>e with the L2CAP Enhanced Retransmission mode implementation. Vudentz is going to a page for my project into <a href="http://wiki.bluez.org/wiki/" target="_blank">BlueZ wiki</a>, so when done I&#8217;ll post the link here.</p>
<p><strong>About GSoC 2009 in Brazil:</strong><br />
Leslie Hawthorn has posted yesterday on Google Open Source Blog some <a href="http://google-opensource.blogspot.com/2009/04/announcing-accepted-students-for-google.html" target="_blank">statistics</a> about GSoC 2009, and Brazil is the top 5 country for accepted student applicants , with 43 students. I&#8217;m too happy to hear that, but I&#8217;m also waiting for the statistic about students accepted per University. Last year my university (Unicamp &#8211; University of Campinas) was the 2nd in the whole world.</p>
<p>And I wanna congratulate my friends of University of Campinas that were accepted on GSoC 2009 too. They are João Paulo Rechi Vita, working on BlueZ with me and Vudentz is his mentor too; Bruno Cardoso working on LLVM for the third time. Helder Ribeiro on ReviewBoard; João &#8220;lvwr&#8221; Correa on NMAP and Thiago &#8220;bolaum&#8221; Abdnur.  We will hack togheter for next four months to accomplish our Google Summer of Code project.</p>
<p><strong>Getting deeper on Bluetooth:</strong><br />
For a first read you can read [1] e [2] , if wanna more you can go to [3] e and look thought the spec.</p>
<p>[1] <a href="http://en.wikipedia.org/wiki/Bluetooth" target="_blank">http://en.wikipedia.org/wiki/Bluetooth</a></p>
<p>[2] <a href="http://bluetooth.com/Bluetooth/Technology/Works/Overview_of_Operation.htm" target="_blank">http://bluetooth.com/Bluetooth/Technology/Works/Overview_of_Operation.htm</a></p>
<p>[3] <a href="http://bluetooth.com/Bluetooth/Technology/Building/Specifications/" target="_blank">http://bluetooth.com/Bluetooth/Technology/Building/Specifications/</a></p>
<p>ps: if you find errors in my English, please tell me, I&#8217;m learning yet. =)</p>
]]></content:encoded>
			<wfw:commentRss>http://padovan.org/blog/2009/04/lets-hack-google-summer-of-code-2009-has-come/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
