Go to advanced search

by HopWorks
Sun Jun 25, 2017 11:27 pm
Forum: General discussion
Topic: DHCPD - Is It For Me?
Replies: 3
Views: 689

Re: DHCPD - Is It For Me?

I believe I have a fix, and my belief is from the approach taken in this thread on here... https://www.raspberrypi.org/forums/viewtopic.php?t=124423 I believe it will work because the approach is different than the one I followed, and because it complies with dhcpcd. Thanks for the ability to post a...
by HopWorks
Sun Jun 25, 2017 10:56 pm
Forum: General discussion
Topic: DHCPD - Is It For Me?
Replies: 3
Views: 689

Re: DHCPD - Is It For Me?

Yes, sorry for the omission. At first I figured it was DHCP with the "D" for daemon. So I did wonder why I had to insert the "C" when I removed the package. I poured over several tutorials and texts about implementing and configuring it, but nothing clear about disabling it and reverting back to usi...
by HopWorks
Sun Jun 25, 2017 10:25 pm
Forum: General discussion
Topic: DHCPD - Is It For Me?
Replies: 3
Views: 689

DHCPD - Is It For Me?

I am fighting a battle with my first RPI0W and soon I will have three of these. Yes, one at a time. My goal is to have 8. The battle is the change over to using DHCPD instead of the older way of setting up networking, at least on Debian Linux headless rigs, which was to use /etc/network/interfaces. ...
by HopWorks
Fri Apr 25, 2014 11:24 pm
Forum: Troubleshooting
Topic: serialport NODE.JS issue installing on my RPi
Replies: 2
Views: 4165

serialport NODE.JS issue installing on my RPi

Greets all, I jumped through some hoops and read a lot of posts, but nothing I read helped me with my issue. When installing serialport as instructed at https://www.npmjs.org/package/serialport I ran into a little problem. I had an error thrown but not sure if it will affect my use of the library. I...
by HopWorks
Sat Apr 19, 2014 12:39 am
Forum: Advanced users
Topic: Linux Daemon - Advice for Preferred Daemon Language
Replies: 3
Views: 2305

Re: Linux Daemon - Advice for Preferred Daemon Language

Took a little bit to get that part of the project development up and updated, but here is my daemon... database login info asterisks out for security. #include <boost/algorithm/string.hpp> #include <boost/algorithm/string/join.hpp> #include <boost/asio.hpp> #include <boost/foreach.hpp> #include <boo...
by HopWorks
Fri Apr 18, 2014 8:58 pm
Forum: Advanced users
Topic: Linux Daemon - Advice for Preferred Daemon Language
Replies: 3
Views: 2305

Re: Linux Daemon - Advice for Preferred Daemon Language

I don't see any need to change the language. C++ is a sensible choice for writing daemons under Linux. I guess the real problems you had might be related to the init script you write to control the daemon , which is a shell script. Which programming languages do you know ? In this scenario , the on...
by HopWorks
Thu Apr 17, 2014 9:18 pm
Forum: Advanced users
Topic: Linux Daemon - Advice for Preferred Daemon Language
Replies: 3
Views: 2305

Linux Daemon - Advice for Preferred Daemon Language

Hi all! I have Raspbian running on my RPi and took a few stabs at writing a daemon in C++ that would send and read from GPIO serial connected to a remote embedded system. It did the reading and writing fine, and the populated my MySQL database fine also, but I never figured out how to init.d script ...
by HopWorks
Tue Mar 11, 2014 8:17 pm
Forum: C/C++
Topic: Cross Compiling for my RPi using Debian on VMWARE Player
Replies: 6
Views: 6740

Re: Cross Compiling for my RPi using Debian on VMWARE Player

I got it working finally! I also have Eclipse set up to copy the built binary to the RPi and chmod +x the file after the build completes. Build time now is 4 seconds versus over two minutes on the RPi. This is awesome!! If anyone wants to know what I had to do, I'll post it in this thread. It's a hu...
by HopWorks
Sun Mar 09, 2014 7:55 pm
Forum: C/C++
Topic: Cross Compiling for my RPi using Debian on VMWARE Player
Replies: 6
Views: 6740

Re: Cross Compiling for my RPi using Debian on VMWARE Player

That is awesome Ragnar thank you! The effort is over the top and answers a lot of questions I have had. Now I have two ways of doing it! Your solution is certainly faster I am sure, because everything I need is on the guest OS. I will try that next, especially since you answered some questions I had...
by HopWorks
Sat Mar 08, 2014 11:50 pm
Forum: C/C++
Topic: Cross Compiling for my RPi using Debian on VMWARE Player
Replies: 6
Views: 6740

Re: Cross Compiling for my RPi using Debian on VMWARE Player

None of my virtual machines have a graphic desktop. I've found that makes them a fair bit snappier. I ssh into them and do everything on the CLI, just like you do. Thank you for the reply. I have a question after my comments if you do not mind. What you said was covered in a great tutorial I found ...
by HopWorks
Thu Mar 06, 2014 11:36 pm
Forum: C/C++
Topic: Cross Compiling for my RPi using Debian on VMWARE Player
Replies: 6
Views: 6740

Cross Compiling for my RPi using Debian on VMWARE Player

OK, I am not a Linux expert, but I am learning. The reason for my approach, compiling my C++ code on the Raspberry Pi, especially using BOOST libraries, is painfully slow. I have seen a few working tutorials that involve distros Ubuntu, Kubuntu, but nothing just Debian yet. So on my trip down these ...
by HopWorks
Thu Feb 27, 2014 9:12 pm
Forum: C/C++
Topic: Compile Speed - Is There Anything I Can Do?
Replies: 12
Views: 2355

Re: Compile Speed - Is There Anything I Can Do?

Userland is the source code for all the ARM side code. So it includes all the demo apps, including the camera apps. It's easily cross compiled using the tools also on github. The userland source from the Raspi github is what is currently officially released. My own github has development versions o...
by HopWorks
Thu Feb 27, 2014 8:38 pm
Forum: Troubleshooting
Topic: CLI Commands Not Found, Responds to Ping
Replies: 5
Views: 1199

Re: CLI Commands Not Found, Responds to Ping

In the old days, centuries ago, when I used to admin Unix systems, lack of response to anything other than ping was usually caused by a disk failure. The network drivers are running in memory, so still respond to ping, but any other commands needed the disk (in this case the filesystem on the SD ca...
by HopWorks
Thu Feb 27, 2014 7:59 pm
Forum: C/C++
Topic: Compile Speed - Is There Anything I Can Do?
Replies: 12
Views: 2355

Re: Compile Speed - Is There Anything I Can Do?

Recently I have been compiling a cross compiler on the Pi that targets an MCU. That build took 20 hours or so! Not such a big deal as I'm not developing that compiler so I only need to do it infrequently. What I found was that attaching a USB hard drive to the Pi and moving the work there reduced b...
by HopWorks
Wed Feb 26, 2014 10:37 pm
Forum: C/C++
Topic: Compile Speed - Is There Anything I Can Do?
Replies: 12
Views: 2355

Re: Compile Speed - Is There Anything I Can Do?

Boost is notorious for greatly increasing compile time. The extensive use of templates puts a lot of work the compilers way. If you can avoid Boost (which you may not want to do for good reason), do so. Size doesn't matter in this case, at least with the hardware I am using. I have plenty of flash ...
by HopWorks
Wed Feb 26, 2014 10:30 pm
Forum: Troubleshooting
Topic: raspbian and Edimax EW-7811Un
Replies: 2
Views: 1236

Re: raspbian and Edimax EW-7811Un

My /etc/network/interfaces auto lo iface lo inet loopback iface eth0 inet dhcp allow-hotplug wlan0 iface wlan0 inet dhcp pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B iface default inet dhcp ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1...
by HopWorks
Wed Feb 26, 2014 10:06 pm
Forum: C/C++
Topic: Compile Speed - Is There Anything I Can Do?
Replies: 12
Views: 2355

Re: Compile Speed - Is There Anything I Can Do?

Didn't mean to reply to my own post, but I didn't want to edit to include so much information. This is exactly what I have been wanting to do. Multi-boot in environments that will help my C++ development for my embedded projects. Android, Linux, whatever. I am new to compiling so I didn't know if it...
by HopWorks
Wed Feb 26, 2014 9:59 pm
Forum: C/C++
Topic: Compile Speed - Is There Anything I Can Do?
Replies: 12
Views: 2355

Re: Compile Speed - Is There Anything I Can Do?

Have you considered dual-booting Windows and Linux on your laptop? I principally use soft-float on the Pi so use the standard Debian ARM cross-compiler tool-chain for development. The binaries can just be copied to the Pi for testing. I have! And I will do it, but wasn't interested in a full-blown ...
by HopWorks
Wed Feb 26, 2014 8:52 pm
Forum: C/C++
Topic: Compile Speed - Is There Anything I Can Do?
Replies: 12
Views: 2355

Compile Speed - Is There Anything I Can Do?

Hey all! I am writing C++ and compiling on my Raspberry Pi, and since I included Boost, it takes a lot longer to compile what I think is pretty simple code. I read about compiling with boost here and it got me wondering about a few things. I am very new to CLI compiling and use to using MPLAB doing ...
by HopWorks
Wed Feb 26, 2014 8:34 pm
Forum: Troubleshooting
Topic: CLI Commands Not Found, Responds to Ping
Replies: 5
Views: 1199

Re: CLI Commands Not Found, Responds to Ping

So far, so good. I have been working with it as hard as I have been doing any given previous day and no signs of crashing. Drive is running at 104°F which I think is tolerable. What I did was replace that cable I mentioned earlier, and removed then re-inserted the SD card using RaTTuS suggestion. I ...
by HopWorks
Wed Feb 26, 2014 3:08 pm
Forum: Troubleshooting
Topic: CLI Commands Not Found, Responds to Ping
Replies: 5
Views: 1199

Re: CLI Commands Not Found, Responds to Ping

In the old days, centuries ago, when I used to admin Unix systems, lack of response to anything other than ping was usually caused by a disk failure. The network drivers are running in memory, so still respond to ping, but any other commands needed the disk (in this case the filesystem on the SD ca...
by HopWorks
Wed Feb 26, 2014 1:08 pm
Forum: Troubleshooting
Topic: CLI Commands Not Found, Responds to Ping
Replies: 5
Views: 1199

CLI Commands Not Found, Responds to Ping

I have a weird problem that has surfaced recently with my RPi running Debian Linux 7.2 (kernel 3.10.25+) and I am hoping someone else who has had this happen could give me some ideas on what to look for and fix. I am running off a usb hard drive. The distro is configured as a LAMP with no GUI. After...
by HopWorks
Mon Feb 24, 2014 8:03 pm
Forum: General discussion
Topic: MySQL, C++, and Serial (AMA0)
Replies: 4
Views: 2645

Re: MySQL, C++, and Serial (AMA0)

I suspect the "C++" in the heading puts folk off. Most of us do our MySQL programming in perl, PHP or python. Some of us steer as far away from C++ as possible. I initially set out to do this in python, but it meant learning a new language. PHP works great for me if the project is web-based. Actual...
by HopWorks
Sun Feb 23, 2014 11:17 pm
Forum: General discussion
Topic: MySQL, C++, and Serial (AMA0)
Replies: 4
Views: 2645

Re: MySQL, C++, and Serial (AMA0)

I'm surprised there wasn't any replies on what I thought would be a popular task for the RPi. No matter. I figured out how to handle the serial with C++ in Debian Linux myself through a day of exhaustive reading and experimenting. And I will post my bread-crumb trail here for the next guy that is lo...
by HopWorks
Sat Feb 22, 2014 9:02 pm
Forum: General discussion
Topic: MySQL, C++, and Serial (AMA0)
Replies: 4
Views: 2645

Re: MySQL, C++, and Serial (AMA0)

Man the fish aren't biting! :o I figured out MySQL using an example I found here... http://www.codingfriends.com/index.php/2010/02/17/mysql-connection-example/ I didn't change a thing except the connection details of course, and it worked on my RPi just fine. When I compiled the C++ code, I did rece...

Go to advanced search