<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: MCP2210 Library Reference</title>
	<atom:link href="http://www.kerrywong.com/2012/10/30/mcp2210-library-reference/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerrywong.com/2012/10/30/mcp2210-library-reference/</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 10:55:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Colin</title>
		<link>http://www.kerrywong.com/2012/10/30/mcp2210-library-reference/comment-page-1/#comment-203276</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Sun, 05 May 2013 19:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=7082#comment-203276</guid>
		<description><![CDATA[That works thanks, there seems to be quite a few out there that didn&#039;t know that.]]></description>
		<content:encoded><![CDATA[<p>That works thanks, there seems to be quite a few out there that didn&#8217;t know that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2012/10/30/mcp2210-library-reference/comment-page-1/#comment-203274</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Sun, 05 May 2013 17:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=7082#comment-203274</guid>
		<description><![CDATA[Great! Glad to hear you got it to work.

By default when you compile and build your project, an executable is generated in the following folders:

{project name}/dist/Release/GNU-Linux-x86/
{project name}/dist/Debug/GNU-Linux-x86/

so you don&#039;t have to manually create the binary and should already have the executables.]]></description>
		<content:encoded><![CDATA[<p>Great! Glad to hear you got it to work.</p>
<p>By default when you compile and build your project, an executable is generated in the following folders:</p>
<p>{project name}/dist/Release/GNU-Linux-x86/<br />
{project name}/dist/Debug/GNU-Linux-x86/</p>
<p>so you don&#8217;t have to manually create the binary and should already have the executables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.kerrywong.com/2012/10/30/mcp2210-library-reference/comment-page-1/#comment-203271</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Sun, 05 May 2013 15:10:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=7082#comment-203271</guid>
		<description><![CDATA[Thanks, I&#039;ve now got your MCP2210 project working, my main issue was not having the C++ module added to netbeans so could only see Java projects! 

One last question for now, is there a way to create a stand alone executable from within netbeans?

I can run the project from inside netbeans and get the desired results and I can see all the object files in  
./MCP2210-Library/build/Release/GNU-Linux-x86

I can create an executable by running g++ -o ./mcp2210-exe ./*.o -ludev and then running sudo ./mcp2210-exe from the terminal
but it would be nice to set the executable name and location from within netbeans.
Again thanks for your help.]]></description>
		<content:encoded><![CDATA[<p>Thanks, I&#8217;ve now got your MCP2210 project working, my main issue was not having the C++ module added to netbeans so could only see Java projects! </p>
<p>One last question for now, is there a way to create a stand alone executable from within netbeans?</p>
<p>I can run the project from inside netbeans and get the desired results and I can see all the object files in<br />
./MCP2210-Library/build/Release/GNU-Linux-x86</p>
<p>I can create an executable by running g++ -o ./mcp2210-exe ./*.o -ludev and then running sudo ./mcp2210-exe from the terminal<br />
but it would be nice to set the executable name and location from within netbeans.<br />
Again thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2012/10/30/mcp2210-library-reference/comment-page-1/#comment-203258</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Sat, 04 May 2013 22:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=7082#comment-203258</guid>
		<description><![CDATA[No problem. When you open a NetBeans project, you need to use File-&gt;Open Project and navigate to the project folder and click open.

Alternatively, you can just create an empty C++ project and copy the source files into that project directory (in this case they would be hidapi.h/hidapi.c mcp2210.h/mcp2210.cpp). And in the IDE right click on your project and choose add existing item to add those copied files.

Here is a screenshot of what a test project looks like (the main function is inside mcp2210test.cpp):

&lt;img src=&quot;http://www.kerrywong.com/blog/wp-content/uploads/2012/10/projectstructure.png&quot; alt=&quot;Project Layout&quot; /&gt;]]></description>
		<content:encoded><![CDATA[<p>No problem. When you open a NetBeans project, you need to use File->Open Project and navigate to the project folder and click open.</p>
<p>Alternatively, you can just create an empty C++ project and copy the source files into that project directory (in this case they would be hidapi.h/hidapi.c mcp2210.h/mcp2210.cpp). And in the IDE right click on your project and choose add existing item to add those copied files.</p>
<p>Here is a screenshot of what a test project looks like (the main function is inside mcp2210test.cpp):</p>
<p><img src="http://www.kerrywong.com/blog/wp-content/uploads/2012/10/projectstructure.png" alt="Project Layout" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.kerrywong.com/2012/10/30/mcp2210-library-reference/comment-page-1/#comment-203253</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Sat, 04 May 2013 20:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=7082#comment-203253</guid>
		<description><![CDATA[Hi,
Thanks for the pointers, I&#039;ve ran all the make files in ./MCP2210-Library/nbproject but they all return Nothing to be done for &quot;Make-file&quot; 
I&#039;ve installed Netbeans but it can&#039;t find and projects in nbproject!!
Could you give a step by step guide on how to install (starting with git clone to download your library), compiling the library, and ending with running one of your demos

My background is in embedded systems where an IDE would be vi to write the c code and and a command line compiler to compile it. ;)

I currently have a MK808 (Android TV) that I&#039;m going to flash with Ubuntu 12.10 Quantal, conect the MCP2210 to the usb port and a Nordic nRF24LE to the MCP2210 SPI port.
This will then allow me to use the full power of a linux system to gather real time data from a number of remote sensors.
  
I&#039;m currently stuck at step 1 trying to talk to the MCP2210 from a shell script in linux :(

Thanks for any help
Colin]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for the pointers, I&#8217;ve ran all the make files in ./MCP2210-Library/nbproject but they all return Nothing to be done for &#8220;Make-file&#8221;<br />
I&#8217;ve installed Netbeans but it can&#8217;t find and projects in nbproject!!<br />
Could you give a step by step guide on how to install (starting with git clone to download your library), compiling the library, and ending with running one of your demos</p>
<p>My background is in embedded systems where an IDE would be vi to write the c code and and a command line compiler to compile it. ;)</p>
<p>I currently have a MK808 (Android TV) that I&#8217;m going to flash with Ubuntu 12.10 Quantal, conect the MCP2210 to the usb port and a Nordic nRF24LE to the MCP2210 SPI port.<br />
This will then allow me to use the full power of a linux system to gather real time data from a number of remote sensors.</p>
<p>I&#8217;m currently stuck at step 1 trying to talk to the MCP2210 from a shell script in linux :(</p>
<p>Thanks for any help<br />
Colin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2012/10/30/mcp2210-library-reference/comment-page-1/#comment-203246</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Sat, 04 May 2013 13:21:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=7082#comment-203246</guid>
		<description><![CDATA[Hi Colin,

You should be able to use &quot;make&quot; within the project directory to compile the project (or if you installed NetBeans, you could just open up the project and compile that way).]]></description>
		<content:encoded><![CDATA[<p>Hi Colin,</p>
<p>You should be able to use &#8220;make&#8221; within the project directory to compile the project (or if you installed NetBeans, you could just open up the project and compile that way).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.kerrywong.com/2012/10/30/mcp2210-library-reference/comment-page-1/#comment-203243</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Sat, 04 May 2013 12:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=7082#comment-203243</guid>
		<description><![CDATA[Hi, I&#039;ve got the MCP2210 and have been playing with it under windows but I need to use it under Ubuntu and came across you library.
I down loaded the library using git clone git://github.com/kerrydwong/MCP2210-Library.git
I then did g++ mcp2210.cpp and got the following errors
I&#039;m now well out of my depth any chance you could help me install the library and walk me though one of the examples pls
Thanks Colin

Error msg
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start&#039;:
(.text+0x18): undefined reference to `main&#039;
/tmp/ccFHnixl.o: In function `SendUSBCmd(hid_device_*, unsigned char*, unsigned char*)&#039;:
mcp2210.cpp:(.text+0x23): undefined reference to `hid_write&#039;
mcp2210.cpp:(.text+0x54): undefined reference to `hid_read&#039;
mcp2210.cpp:(.text+0x7e): undefined reference to `hid_read&#039;
/tmp/ccFHnixl.o: In function `EnumerateMCP2210()&#039;:
mcp2210.cpp:(.text+0x19b0): undefined reference to `hid_enumerate&#039;
/tmp/ccFHnixl.o: In function `InitMCP2210(unsigned short, unsigned short, wchar_t*)&#039;:
mcp2210.cpp:(.text+0x19e1): undefined reference to `hid_open&#039;
/tmp/ccFHnixl.o: In function `InitMCP2210(wchar_t*)&#039;:
mcp2210.cpp:(.text+0x1a04): undefined reference to `hid_open&#039;
/tmp/ccFHnixl.o: In function `InitMCP2210()&#039;:
mcp2210.cpp:(.text+0x1a28): undefined reference to `hid_open&#039;
/tmp/ccFHnixl.o: In function `ReleaseMCP2210(hid_device_*)&#039;:
mcp2210.cpp:(.text+0x1a3b): undefined reference to `hid_close&#039;
mcp2210.cpp:(.text+0x1a40): undefined reference to `hid_exit&#039;
collect2: ld returned 1 exit status]]></description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve got the MCP2210 and have been playing with it under windows but I need to use it under Ubuntu and came across you library.<br />
I down loaded the library using git clone git://github.com/kerrydwong/MCP2210-Library.git<br />
I then did g++ mcp2210.cpp and got the following errors<br />
I&#8217;m now well out of my depth any chance you could help me install the library and walk me though one of the examples pls<br />
Thanks Colin</p>
<p>Error msg<br />
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start&#8217;:<br />
(.text+0&#215;18): undefined reference to `main&#8217;<br />
/tmp/ccFHnixl.o: In function `SendUSBCmd(hid_device_*, unsigned char*, unsigned char*)&#8217;:<br />
mcp2210.cpp:(.text+0&#215;23): undefined reference to `hid_write&#8217;<br />
mcp2210.cpp:(.text+0&#215;54): undefined reference to `hid_read&#8217;<br />
mcp2210.cpp:(.text+0x7e): undefined reference to `hid_read&#8217;<br />
/tmp/ccFHnixl.o: In function `EnumerateMCP2210()&#8217;:<br />
mcp2210.cpp:(.text+0x19b0): undefined reference to `hid_enumerate&#8217;<br />
/tmp/ccFHnixl.o: In function `InitMCP2210(unsigned short, unsigned short, wchar_t*)&#8217;:<br />
mcp2210.cpp:(.text+0x19e1): undefined reference to `hid_open&#8217;<br />
/tmp/ccFHnixl.o: In function `InitMCP2210(wchar_t*)&#8217;:<br />
mcp2210.cpp:(.text+0x1a04): undefined reference to `hid_open&#8217;<br />
/tmp/ccFHnixl.o: In function `InitMCP2210()&#8217;:<br />
mcp2210.cpp:(.text+0x1a28): undefined reference to `hid_open&#8217;<br />
/tmp/ccFHnixl.o: In function `ReleaseMCP2210(hid_device_*)&#8217;:<br />
mcp2210.cpp:(.text+0x1a3b): undefined reference to `hid_close&#8217;<br />
mcp2210.cpp:(.text+0x1a40): undefined reference to `hid_exit&#8217;<br />
collect2: ld returned 1 exit status</p>
]]></content:encoded>
	</item>
</channel>
</rss>
