Show Posts
Pages: [1] 2 3 ... 15
1  Using Arduino / Networking, Protocols, and Devices / Re: client.connect on: July 01, 2014, 07:31:15 am
That's just PaulS making sure you know he's smarter than you.  It's apparently his primary form of entertainment.  He does it constantly.

Quote
This is not my code
Then why did you say it was?
Quote
I have this code
Make up your mind.

Quote
The client only works in Void loop? not in void setup?
There are NO voids in your code. There are FUNCTIONS.

Thanks for the great help, was amazing how it helped me!

I said that I had this code but was not mine because I am using it like everyone can because it is available on the internet. So I have it on my laptop, But it's not mine because it was not me who created it.
Savvy?
2  Using Arduino / Networking, Protocols, and Devices / Re: Stolen Bicycle: I want a GPS on: June 20, 2014, 07:07:00 pm
Maybe a 'BikeSpike', which has nothing to do with Arduino of course.
3  Using Arduino / Installation & Troubleshooting / Re: Takes forever to compile on: May 22, 2014, 07:13:05 am
C:\Users\<your username>\AppData\Local\Temp  with a bazillion files that need to be cleared out?  Could it be windows takes a long time to open/read directory because there are so many entries in the file access table.
4  Development / Other Software Development / Re: CodeBlocks Arduino IDE - real C++ IDE for Arduino development (rev.20130827) on: May 17, 2014, 10:32:12 pm
I seem to be making sense out of this, to an extent.  Thanks to Swpolo providing me a build log to compare, and after realizing it worked for him because he directly added the file RF24.cpp to his project - I figure out the real problem.

The GCC compiler doesn't 'run down' all the .h files to figure out whether the .corresponding cpp needs to be compiled.  Neither does the linker seem to figure out the .o file should be present (but isn't) and added to the linking process.  It never even gets referenced by the linker.

Evidently this makes perfect sense to the Code:Blocks folks and we humans are supposed to deal with such minutia instead of the tools doing it for us.  I say that because the recommended approach is to build a 2nd project to create a static library of the needed library files.

I don't understand the rationale behind this.  Of course, one shouldn't be needlessly recompiling library files everytime your project is rebuilt.  That's the point of 'header' files -- to be a dictionary of sorts for the compiler to tell it what's in the .c/.cpp/.o file.   But why the stupid thing doesn't go get the pieces it needs to build the project, and compile any it finds haven't been compiled -- without me doing the legwork for the compiler and linker -- well, it's a mystery to me.
5  Development / Other Software Development / Re: CodeBlocks Arduino IDE - real C++ IDE for Arduino development (rev.20130827) on: May 14, 2014, 06:49:04 am
That problem continues to exist even when I directly include library files into the project.
It works for me with your code and your libraries.
http://pix.toile-libre.org/upload/original/1399973582.png

Please compile with -v (verbose) and post the build log for that.  I must have something out of whack in the search paths.  I'd like to compare mine to yours to see what's different.
6  Development / Other Software Development / Re: CodeBlocks Arduino IDE - real C++ IDE for Arduino development (rev.20130827) on: April 29, 2014, 08:29:09 am
So... I thought I'd wander over to the CodeBlocks own forum and ask for some insight.  The response?  Go ask in a programming forum.  Others had asked in the past and were blown off with 'we don't support forks like that one'.  Open software, closed society.

So it's back to the 20th century Arduino IDE I guess.  Too bad, CB was such a pleasant improvement.  But, a car without forward gears is of little use when you need to get to work.
7  Using Arduino / Project Guidance / Re: Arduino GSM to call 911 in US on: April 25, 2014, 09:09:59 pm
You'll need a SIM card or else the GSM module will not initialize itself to make connections.  That's different from having a non-activated SIM card installed.

The SIM card has data that tells the device HOW to connect to a network.  That's more than simply passing user authorization data.  AN inactive SIM still has data about networks it will connect to, and expired subscriber identification.  The ability to place a 9-1-1 call is merely a function of bypassing the subscriber identification aspects and placing the call anyway.

My SIM900 halts and tells me I need to install the SIM card, refusing to do much of anything except respond to a few status commands.
8  Using Arduino / Networking, Protocols, and Devices / Re: Problem with WifiShield and webclient example. Gateway always get 0.0.0.0 on: April 23, 2014, 04:53:18 pm
It could be useful to download WireShark and watch the network traffic as the DHCP server offers an IP to your system.  You would see whether the gateway is part of the offer or not and thus know where it gets lost.
9  Development / Other Software Development / Re: CodeBlocks Arduino IDE - real C++ IDE for Arduino development (rev.20130827) on: April 23, 2014, 07:06:13 am
By fiddling with the search paths, in various places inside C::B, I am able to change the error messages from 'include file not found' to the problem I currently have which is uint8_t apparently being an unknown datatype.  So the path-searching seems to work.  I just can't figure what path may still be missing (or *wrong* thus including the wrong files).  That problem continues to exist even when I directly include library files into the project.
10  Development / Other Software Development / Re: CodeBlocks Arduino IDE - real C++ IDE for Arduino development (rev.20130827) on: April 22, 2014, 08:00:02 pm
This is a longshot, as it's a rather open ended question but I've taken a stab at building a simple sketch using the C::B IDE.  It's so much nicer user-wise than the standard Arduino IDE.

My dilemma is that I cannot build anything that utilizes a library.  Or, at least, one that uses the nRF2401 library from Maniac Bug.

My simple sketch, which I could build, upload and run to blink the LED on an Uno (plus some lines I added afterwards):

Code:
#include <arduino.h>
#include <RF24.h>
#include <nRF24L01.h>
#include <RF24_config.h>

/*
  Turns on an LED on for one second, then off for one second, repeatedly.
*/
const int t = 2;

RF24 radio(9,10);

void setup()
{
Serial.begin(9600);

// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);

//    radio.begin();
}

void loop()
{
Serial.println("Hello world!");

delay(1000);              // wait for a second
digitalWrite(13, HIGH);   // set the LED on
delay(1000);              // wait for a second
digitalWrite(13, LOW);    // set the LED off
}

I chose the "GNU AVR GCC Compiler"
You will notice I added the nRF2401 stuff.  Now it complains:
Quote
undefined reference to `RF24::RF24(unsigned char, unsigned char)'

Which I infer is because it cannot resolve uint8_t as an integer.  I assume it fails gracefully and assumes a char data type.

Can someone please look at the attached verbose output of the compilation and perhaps glean a clue what is possibly being overlooked?  Surely I just have the library search paths wrong bit sheesh there are dozens of places to set them and I can't isolate where it's wrong.  If, that is it is the problem at all.

I would also add that if I change the compiler to be "GNU GCC Compiler" The undefined reference goes away, presumably the definition of uint8_t is getting resolved.  But of course, that's not suitable for uploading into an Arduino (doesn't even create the .hex file)

Lastly, the RF24 libraries are there and I have build sketches many times through the Arduino IDE without trouble.  I just hate the damn primitive user interface and much rather would use C::B if I could sort this out.
11  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet, nRF24L01, SD problem on: April 13, 2014, 05:38:58 pm
Most of us discover that the 3.3v power supply is the culprit and putting a 10mF or so electrolytic across the supply, close to the rf24 module makes it all work as it should.

So if you have not tried that, please do.
12  Topics / Home Automation and Networked Objects / Re: Ever use a Fairchild MID400 AC line sensing opto? on: April 06, 2014, 01:09:05 pm
I originally calculated 2.2k ohms, opting to stay well above the minimum current for an 'ON' condition.  I had no idea how finicky they might be.  Ultimately, I tacked a 10K SMD resistor I had laying around onto a test board and it worked fine, so I went with that value.
13  Using Arduino / Programming Questions / Re: PHP Serial Communication NOT working on: March 31, 2014, 05:09:11 pm
I didn't even post my code?
Exactly my point

Still cannot figure out why smart aleck replies are thought to be in any way helpful by a subset of this forum's readership.  Particularly when they go two levels deep.
14  Using Arduino / Networking, Protocols, and Devices / Re: Seeeduino GPRS + Prepaid phone service on: March 28, 2014, 07:02:16 pm
The T-Mobile offerings includes a 'gold' level whereby you pay $100 in one lump and it's good for a year.  $20 less than $10/mo, so minimally cheaper, but at least you don't have to recharge the account every month.
15  Using Arduino / Networking, Protocols, and Devices / Re: nRF24L01+ -> problem to get working on: March 01, 2014, 02:51:52 pm
If the problem you are referring to is the garbage on the console, that's due to the baud rate being 9600 while your code is selecting 115200.
Pages: [1] 2 3 ... 15