<?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>Tips, tricks and tutorials&#187; Tips and tricks, tutorials</title>
	<atom:link href="http://www.ngohaibac.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ngohaibac.com</link>
	<description>What you share is what you get</description>
	<lastBuildDate>Tue, 15 Jun 2010 15:49:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to fix libdc1394 error: Failed to initialize libdc1394</title>
		<link>http://www.ngohaibac.com/how-to-fix-libdc1394-error-failed-to-initialize-libdc1394/</link>
		<comments>http://www.ngohaibac.com/how-to-fix-libdc1394-error-failed-to-initialize-libdc1394/#comments</comments>
		<pubDate>Fri, 07 May 2010 05:39:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ngohaibac.com/?p=533</guid>
		<description><![CDATA[I am doing a project about Mobile Robot Teleoperation which uses OpenCV for Computer Vision, but I always get error: libdc1394 error: Failed to initialize libdc1394 The reason is: There is no file /dev/raw1394 since the raw1394 driver is not loaded. So you need to insert that driver: $ sudo modprobe raw1394 Check your permission [...]<br /><div><img src="http://www.ngohaibac.com/wp-content/plugins/gd-star-rating/gfx.php?value=10.0" /></div><div>Rating: 10.0/<strong>10</strong> (1 vote cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://www.ngohaibac.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />


Related posts:<ol><li><a href='http://www.ngohaibac.com/how-remove-twitter-updates-facebook/' rel='bookmark' title='Permanent Link: How To Remove Twitter Updates From Facebook?'>How To Remove Twitter Updates From Facebook?</a></li>
<li><a href='http://www.ngohaibac.com/how-to-setup-video-calls-in-skype-on-64-bit-ubuntu-system/' rel='bookmark' title='Permanent Link: How to setup Video calls in Skype on 64-bit Ubuntu system'>How to setup Video calls in Skype on 64-bit Ubuntu system</a></li>
<li><a href='http://www.ngohaibac.com/howto-installing-and-setting-tftpd-in-ubuntu-workstation/' rel='bookmark' title='Permanent Link: Howto Install and setup TFTPD in Ubuntu workstation'>Howto Install and setup TFTPD in Ubuntu workstation</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p><!-- google_ad_section_start --><p>I am doing a project about Mobile Robot Teleoperation which uses OpenCV for Computer Vision, but I always get error: <code>libdc1394 error: Failed to initialize libdc1394</code></p>
<p>The reason is: There is no file <strong>/dev/raw1394</strong> since the raw1394 driver is not loaded. So you need to insert that driver:</p>
<pre>$ sudo modprobe raw1394</pre>
<p>Check your permission access to that dev file:</p>
<pre>$ ls -la /dev/raw1394</pre>
<p><span id="more-533"></span><br />
If you don&#8217;t have rw access right, need to change that permissons:</p>
<pre>$ sudo chmod a+rw /dev/raw1394</pre>
<p>Credit for Viktors Petrovs  from <a href="https://bugs.launchpad.net/ubuntu/+source/libdc1394-22/+bug/462453">this bug</a></p>
<br /><div><img src="http://www.ngohaibac.com/wp-content/plugins/gd-star-rating/gfx.php?value=10.0" /></div><div>Rating: 10.0/<strong>10</strong> (1 vote cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://www.ngohaibac.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><!-- google_ad_section_end -->

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.ngohaibac.com/how-to-fix-libdc1394-error-failed-to-initialize-libdc1394/&amp;title=How+to+fix+libdc1394+error%3A+Failed+to+initialize+libdc1394" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=How+to+fix+libdc1394+error%3A+Failed+to+initialize+libdc1394&amp;body=Link: http://www.ngohaibac.com/how-to-fix-libdc1394-error-failed-to-initialize-libdc1394/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%20am%20doing%20a%20project%20about%20Mobile%20Robot%20Teleoperation%20which%20uses%20OpenCV%20for%20Computer%20Vision%2C%20but%20I%20always%20get%20error%3A%20libdc1394%20error%3A%20Failed%20to%20initialize%20libdc1394%0D%0A%0D%0AThe%20reason%20is%3A%20There%20is%20no%20file%20%2Fdev%2Fraw1394%20since%20the%20raw1394%20driver%20is%20not%20loaded.%20So%20you%20need%20to%20insert%20that%20driver%3A%0D%0A%24%20sudo%20modp" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.ngohaibac.com/how-to-fix-libdc1394-error-failed-to-initialize-libdc1394/&amp;t=How+to+fix+libdc1394+error%3A+Failed+to+initialize+libdc1394" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.ngohaibac.com/how-to-fix-libdc1394-error-failed-to-initialize-libdc1394/&amp;submitHeadline=How+to+fix+libdc1394+error%3A+Failed+to+initialize+libdc1394&amp;submitSummary=I%20am%20doing%20a%20project%20about%20Mobile%20Robot%20Teleoperation%20which%20uses%20OpenCV%20for%20Computer%20Vision%2C%20but%20I%20always%20get%20error%3A%20libdc1394%20error%3A%20Failed%20to%20initialize%20libdc1394%0D%0A%0D%0AThe%20reason%20is%3A%20There%20is%20no%20file%20%2Fdev%2Fraw1394%20since%20the%20raw1394%20driver%20is%20not%20loaded.%20So%20you%20need%20to%20insert%20that%20driver%3A%0D%0A%24%20sudo%20modp&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=How+to+fix+libdc1394+error%3A+Failed+to+initialize+libdc1394+-+http://tinyurl.com/2vbbcjq&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<img src="http://www.ngohaibac.com/?ak_action=api_record_view&id=533&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.ngohaibac.com/how-remove-twitter-updates-facebook/' rel='bookmark' title='Permanent Link: How To Remove Twitter Updates From Facebook?'>How To Remove Twitter Updates From Facebook?</a></li>
<li><a href='http://www.ngohaibac.com/how-to-setup-video-calls-in-skype-on-64-bit-ubuntu-system/' rel='bookmark' title='Permanent Link: How to setup Video calls in Skype on 64-bit Ubuntu system'>How to setup Video calls in Skype on 64-bit Ubuntu system</a></li>
<li><a href='http://www.ngohaibac.com/howto-installing-and-setting-tftpd-in-ubuntu-workstation/' rel='bookmark' title='Permanent Link: Howto Install and setup TFTPD in Ubuntu workstation'>Howto Install and setup TFTPD in Ubuntu workstation</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.ngohaibac.com/how-to-fix-libdc1394-error-failed-to-initialize-libdc1394/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>UART Lib for PIC18 in HTPIC18 compiler</title>
		<link>http://www.ngohaibac.com/uart-lib-for-pic18-in-htpic18-compiler/</link>
		<comments>http://www.ngohaibac.com/uart-lib-for-pic18-in-htpic18-compiler/#comments</comments>
		<pubDate>Fri, 22 May 2009 23:38:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Microchip PIC]]></category>
		<category><![CDATA[PIC18]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.ngohaibac.com/?p=153</guid>
		<description><![CDATA[I am a PIC programmer, so I would like to share this library I made before and hopy you can improve to make it better and to be perfect. This souces is made under PIC18 compiler. I have tested this lib under some chips and it works well. UART Library description and source 1. sysdef.h [...]<br /><div><img src="http://www.ngohaibac.com/wp-content/plugins/gd-star-rating/gfx.php?value=10.0" /></div><div>Rating: 10.0/<strong>10</strong> (1 vote cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://www.ngohaibac.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />


Related posts:<ol><li><a href='http://www.ngohaibac.com/tutorials-how-to-work-with-drupal/' rel='bookmark' title='Permanent Link: Tutorials how to work with Drupal'>Tutorials how to work with Drupal</a></li>
<li><a href='http://www.ngohaibac.com/how-to-setup-video-calls-in-skype-on-64-bit-ubuntu-system/' rel='bookmark' title='Permanent Link: How to setup Video calls in Skype on 64-bit Ubuntu system'>How to setup Video calls in Skype on 64-bit Ubuntu system</a></li>
<li><a href='http://www.ngohaibac.com/the-best-chm-viewer-in-ubuntu-linux/' rel='bookmark' title='Permanent Link: The best CHM Viewer in Ubuntu Linux'>The best CHM Viewer in Ubuntu Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p><!-- google_ad_section_start --><p>I am a PIC programmer, so I would like to share this library I made before and hopy you can improve to make it better and to be perfect.</p>
<p>This souces is made under <a href="http://htsoft.com/">PIC18 compiler</a>. I have tested this lib under some chips and it works well.</p>
<h3>UART Library description and source</h3>
<p><strong>1. sysdef.h</strong></p>
<p>The sysdef.h includes some constant values or defined values which are used in the library, you can change it to fit your system.</p>
<pre lang="C">#ifndef SYSDEF_H
#define SYSDEF_H

// Crystal
#define	Fosc	20000000	

// UART Module
#define TX		RC6
#define RX 		RC7

#define TRIS_TX		TRISC6
#define TRIS_RX		TRISC7

// UART Data temporary
#define	UART_Data	TMR1H
#endif    // EOF</pre>
<p><strong>2. UART.h</strong></p>
<ul>
<li>UART.h includes some needed functions:</li>
<li>UART_Init: initialize the UART module. For example: UART_Init(9600)</li>
<li>UART_PrChar: to put a char to the RS232 port. For example: UART_PrChar(&#8216;a&#8217;)</li>
<li>UART_PrString: to put a string to the RS232 port. For example: UART_PrString(&#8220;I love you&#8221;)</li>
<li>UART_detectBaudRate: to auto detect the PIC baudrate. After calling this function, the peripheral should send one special character U to the UART port to let PIC18 detect the baudrate. It is a new feature compared to PIC16.</li>
</ul>
<p>You can download this library here: <a class="downloadlink" href="http://www.ngohaibac.com/download/pic18_uart_lib_ngohaibaccom.zip" title=" downloaded 103 times" >PIC18_UART_LIb (103)</a>. Password: ngohaibac.com</p>
<h3>How to use this library</h3>
<p>Simply you can copy all library files into your project directory and include the header file in every file you want to use this library.</p>
<pre lang="C"># include "uart.h"</pre>
<p>In this library, I already enable UART receive interrupt so you should clear the RCIF flag in the interrupt service routine.</p>
<p>Get fun!</p>
<br /><div><img src="http://www.ngohaibac.com/wp-content/plugins/gd-star-rating/gfx.php?value=10.0" /></div><div>Rating: 10.0/<strong>10</strong> (1 vote cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://www.ngohaibac.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br /><!-- google_ad_section_end -->

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.ngohaibac.com/uart-lib-for-pic18-in-htpic18-compiler/&amp;title=UART+Lib+for+PIC18+in+HTPIC18+compiler" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=UART+Lib+for+PIC18+in+HTPIC18+compiler&amp;body=Link: http://www.ngohaibac.com/uart-lib-for-pic18-in-htpic18-compiler/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%20am%20a%20PIC%20programmer%2C%20so%20I%20would%20like%20to%20share%20this%20library%20I%20made%20before%20and%20hopy%20you%20can%20improve%20to%20make%20it%20better%20and%20to%20be%20perfect.%0D%0A%0D%0AThis%20souces%20is%20made%20under%20PIC18%20compiler.%20I%20have%20tested%20this%20lib%20under%20some%20chips%20and%20it%20works%20well.%0D%0AUART%20Library%20description%20and%20source%0D%0A1.%20sysdef.h%0D%0A%0D%0AThe%20sy" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.ngohaibac.com/uart-lib-for-pic18-in-htpic18-compiler/&amp;t=UART+Lib+for+PIC18+in+HTPIC18+compiler" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.ngohaibac.com/uart-lib-for-pic18-in-htpic18-compiler/&amp;submitHeadline=UART+Lib+for+PIC18+in+HTPIC18+compiler&amp;submitSummary=I%20am%20a%20PIC%20programmer%2C%20so%20I%20would%20like%20to%20share%20this%20library%20I%20made%20before%20and%20hopy%20you%20can%20improve%20to%20make%20it%20better%20and%20to%20be%20perfect.%0D%0A%0D%0AThis%20souces%20is%20made%20under%20PIC18%20compiler.%20I%20have%20tested%20this%20lib%20under%20some%20chips%20and%20it%20works%20well.%0D%0AUART%20Library%20description%20and%20source%0D%0A1.%20sysdef.h%0D%0A%0D%0AThe%20sy&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=UART+Lib+for+PIC18+in+HTPIC18+compiler+-+http://tinyurl.com/nnh4jv&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<img src="http://www.ngohaibac.com/?ak_action=api_record_view&id=153&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.ngohaibac.com/tutorials-how-to-work-with-drupal/' rel='bookmark' title='Permanent Link: Tutorials how to work with Drupal'>Tutorials how to work with Drupal</a></li>
<li><a href='http://www.ngohaibac.com/how-to-setup-video-calls-in-skype-on-64-bit-ubuntu-system/' rel='bookmark' title='Permanent Link: How to setup Video calls in Skype on 64-bit Ubuntu system'>How to setup Video calls in Skype on 64-bit Ubuntu system</a></li>
<li><a href='http://www.ngohaibac.com/the-best-chm-viewer-in-ubuntu-linux/' rel='bookmark' title='Permanent Link: The best CHM Viewer in Ubuntu Linux'>The best CHM Viewer in Ubuntu Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.ngohaibac.com/uart-lib-for-pic18-in-htpic18-compiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 46/128 queries in 0.210 seconds using disk
Content Delivery Network via cdn.ngohaibac.com

Served from: www.ngohaibac.com @ 2010-07-30 11:51:00 -->