tag:blogger.com,1999:blog-4922503085503427986.post26532846788072244..comments2024-03-28T06:42:00.501-07:00Comments on Desert Home: Acurite Weather Station, Raspberry Pi, USB driver, I messed up, Part 5davehttp://www.blogger.com/profile/11608589214882334649noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-4922503085503427986.post-72387416383500534272015-03-16T20:28:37.480-07:002015-03-16T20:28:37.480-07:00This is so common I'm surprised you haven'...This is so common I'm surprised you haven't found the solution yet. The libraries you link with and the libraries you are trying to run with are different. Since you can compile without error, you're doing the compile right, but something is pointing your run-time to the wrong place.<br /><br />There's an environment variable LD_LIBRARY_PATH that you can set that will fix this problem, but you have to point it to the right place. Try set LD_LIBRARY_PATH=/usr/local/lib or wherever you installed the version of libusb that you compiled with.<br /><br />Then the error should go away since your running with the same libraries you compiled with. This is all part of the shared library implementation on unix based machines and can occasionally drive you nuts.<br /><br />The other possibility is that you are trying to run this under Ubuntu, there are other folk that hit this on their machine. They fixed it and left the solution in the comments under part 2.davehttps://www.blogger.com/profile/11608589214882334649noreply@blogger.comtag:blogger.com,1999:blog-4922503085503427986.post-17024925672706515092015-03-16T17:42:37.233-07:002015-03-16T17:42:37.233-07:00Shoot - I had hoped this version of the code would...Shoot - I had hoped this version of the code would resolve my inconsistent start issue (mentioned in a reply to Part 3). <br />Sadly, all I get from this version is this: (at least it's consistent...) ;oD<br /><br />====================================<br />./weatherV2 Starting ... libusbDebug = 1, noisy = 1<br />./weatherV2: symbol lookup error: ./weatherV2: undefined symbol: libusb_strerror<br /><br />Anonymoushttps://www.blogger.com/profile/08575141405754987919noreply@blogger.comtag:blogger.com,1999:blog-4922503085503427986.post-63402024476758107752014-12-27T20:58:42.093-07:002014-12-27T20:58:42.093-07:00Yes, I see now they are from the two different R1 ...Yes, I see now they are from the two different R1 messages. Wow. I'm impressed you were able to figure this out. I'll dig around the posts a bit more. Thanks!danhttps://www.blogger.com/profile/05004099122854477800noreply@blogger.comtag:blogger.com,1999:blog-4922503085503427986.post-80051686862370526802014-12-27T20:55:49.587-07:002014-12-27T20:55:49.587-07:00This comment has been removed by the author.danhttps://www.blogger.com/profile/05004099122854477800noreply@blogger.comtag:blogger.com,1999:blog-4922503085503427986.post-52306022905425461432014-12-27T20:55:36.687-07:002014-12-27T20:55:36.687-07:00I drug it out of the message by trial and error, a...I drug it out of the message by trial and error, and a significant boost from some code I ran across somewhere out there showing that various readings spanned the bytes themselves. That means it's actually a bit stream that was shaped into bytes by various methods of reading and saving them. <br /><br />However, the bits you mention are from the two DIFFERENT varieties of R1 messages that we can get. Each of then has wind information, but the other things they carry are different. So, there's really three different blobs of data, Two of them are read as R1 and the other is read as R2. I covered this in detail in the various blog posts, <br /><br />Look around a bit more and you'll see what I mean.davehttps://www.blogger.com/profile/11608589214882334649noreply@blogger.comtag:blogger.com,1999:blog-4922503085503427986.post-79033514812331343562014-12-27T18:53:46.695-07:002014-12-27T18:53:46.695-07:00Where did you get the info to extract the data fro...Where did you get the info to extract the data from the data[] string? Did you hack it or get it from some source? I ask partially because the code shows the same bits being extracted from data[6] for getHumidity and getRainCount. Something is not right.danhttps://www.blogger.com/profile/05004099122854477800noreply@blogger.com