Show Posts
Pages: 1 [2] 3 4 ... 48
16  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: software serial2 on: February 10, 2008, 08:59:08 am
You don't need to be changing the library, the parameters are set by the application.

SS works "up to" 9600, so the phidgets at 2400 should be fine

Code:
#include <AFSoftSerial.h>
 
 AFSoftSerial mySerial = AFSoftSerial(3, 2);
 
 void setup() {
  pinMode(13, OUTPUT);
  Serial.begin(9600);
  // set the data rate for the SoftwareSerial port
  mySerial.begin(2400);
  mySerial.println("Hello, world...");
 }
 
 void loop()           // run over and over again
 {
  if (mySerial.available()) {
    Serial.print((char)mySerial.read());
  }
  if (Serial.available()) {
    mySerial.print((char)Serial.read());
  }
 }

You'll need to remove the 'hello world' of course smiley
17  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: software serial2 on: February 06, 2008, 03:14:58 am
Quote
Quote
Quote
[

er, no..."currently only for Diecimila (16mhz atmega168)"  smiley-wink

er, pity
send me a lilypad an an NG with an 8mhz xtal and ill make it work with 'em!

I needed a solution a while back, but improvised this instead.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1201476854/5#5

This should work with your 168's aye, if I wanted to make something like a dualCoreDuino  ;D
18  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: software serial2 on: February 06, 2008, 12:31:20 am
Quote
[

er, no..."currently only for Diecimila (16mhz atmega168)"  smiley-wink

er, pity
19  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: software serial2 on: February 05, 2008, 10:53:09 pm
Quote
ok i fixed it

http://www.ladyada.net/make/eshield/AFSoftSerial.zip

supports RX and TX, up to 57600 tested. due to the delay inherent in digitalRead() its probably not possible to go any faster.
should probably be poked at by others. currently only for Diecimila (16mhz atmega168)

#include <AFSoftSerial.h>

AFSoftSerial mySerial =  AFSoftSerial(3, 2);

void setup()  {
  pinMode(13, OUTPUT);
  Serial.begin(9600);
  // set the data rate for the SoftwareSerial port
  mySerial.begin(9600);
  mySerial.println("Hello, world...");
}

void loop()                     // run over and over again
{
  if (mySerial.available()) {
      Serial.print((char)mySerial.read());
  }
  if (Serial.available()) {
      mySerial.print((char)Serial.read());
  }
}

What a genius, you rock! That fixes a huge problem, that would enable a few serial devices to be connected to one board, how did you do it?

Will it work with BT's, Lilypads and NG's?
20  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Spam fighting request on: September 12, 2008, 08:25:36 pm
The neighborhood is usually quite orderly. I think theres a single exception at the moment taking up space and it would be a shame if it became the norm.

Personally I'm not here often enough to notice the goings ons, but the spam however is evident each time I visit. So in order of priority, I guess spam would have to be at the very top.
21  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Spam fighting request on: August 28, 2008, 05:34:15 pm
Quote
Quote

The attacks Arduino.cc's has been suffering, are Bot attacks, and bots "cannot" navigate sites protected by "good" implementations of CAPTCHAs, such as the format used over at Yahoo.

It's trivial to break any captcha.  You simply link it into a "free porn" site and have users answer the captchas.  They type the captcha, the bot automatically enters it into the victim site, and if it's right, the script lets the viewer have their porn.   There is no such thing as a good implementation because any captcha can be defeated with this sort of attack.

I haven't heard of that one before, how does it work?

If CAPTCHAs are so easy to defeat, then the brains over at Carnegie Mellon University have a lot to be held accountable for, and gosh, the cheek of it, they're still telling people to use it!

http://www.captcha.net/

Our portfolio includes a number of adult sites we've owned "for years", all with CAPTCHA, not one has ever suffered a spam attack. An adult forum we own started out with Yabb, but it got too big and we upgraded it to SMF. In its 3 year history only a handful of Russians have tried manual attacks, but the site has 3 moderators and they blocked the IP's before they had a chance to do anything.

Spam is completely preventable.  
22  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Spam fighting request on: August 28, 2008, 01:33:22 pm
Quote
Quote
what about to use a captcha system for the borad?

http://www.yabbforum.com/community/YaBB.pl?num=1186785854/0

I'm not conviced captchas work, when I added them to my own site it barely slowed them down.

The attacks Arduino.cc's has been suffering, are Bot attacks, and bots "cannot" navigate sites protected by "good" implementations of CAPTCHAs, such as the format used over at Yahoo.

The general mentality of spammers is if they can let their bot's roam the web injecting their filth into millions of vulnerable forums, like this one, then it beats doing any form of work themselves, like reading site CAPTACHA codes for a single attack, especially if the pay-off isn't high unlike the persistent attacks suffered by WindowsLive and Gmail whose CAPTCHAs were hacked, which considering the "kudos" prize, its no wonder.

So for the 5 minutes the Yabb hack takes to implement it'll reduce a substantial amount of the misery users here are obviously suffering as a result of sometimes highly offensive spam.


23  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Spammers on: April 23, 2008, 02:46:38 am
So, the spammer is using a tripod domain, therefore a complaint can be lodged with tripod.com because it's a breach of their AUP. They'll have a record of the subscribers IP address, and aside from reviewing their own sign-up process, they'll have an idea of "what pool" of IP's the spammer is hiding behind and can make that information available to the FBI so the route can be traced back to the originating IP. If it's a bot attack, they came from "somewhere" and unless the spammer has invented a brand new trick, that person will eventually be discovered.

But a complaint needs to come from the owners of this domain for it to be followed up by the proprietors of tripod, whom can probably do without the headache of potential litigation so I'm sure they'll be quick to act.

You can try contacting them at:-

dns-admin@lycos-inc.com

Tripod is owned by Lycos, Inc

24  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Spammers on: April 22, 2008, 08:12:19 pm
Ranges can work too, especially if it's originating via satellite cafe's in Europe, Holland in particular. It's one possibility that needs to be weighted against the numbers of legitimate users that'll affect.

I know sites that block entire countries simply because the webmasters got fed up with spam originating from a list of "usual suspects". I won't mention those countries because it's an unfortunate generalization, but the percentage a quite high, and range blocking can make a difference.

YaBBs ok for small forums, but this one ain't small 'no more' so maybe it's time for an upgrade. Amongst the sites we own, are a few adult themed domains including a forum using SMF. We use that with range blocking, email confirmation and captcha, and we don't have any of this nonsense.

Unfortunately there is no easy way to migrate from YaBB because it uses a flat file for every thread and users and the user preferences, rather than a mySql dB back-end. YaBB was aimed at domain owners who didn't have dB services, which was relevant at the time it was released because hosting with dB used to cost a lot once upon a time.

There maybe a script available to do the job, which could be worth investigating if they come up short on solutions. SMF has superior search, and that would be nice to have.
25  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Spammers on: April 22, 2008, 01:17:43 pm
Quote
It already has email verification now, so I don't think a captcha would offer much more help.  I'm all for trying it, but I wouldn't expect it to be any good.

They're exploiting a known YaBB vulnerability, the attacks will stop with captcha added into the registration process. The board isn't just being spammed, it's being flooded - captcha will plug the hole enough for it to stop.

Quote
They usually link to an IP, not a domain, they have a very, very large botnet pool of IPs, and even if they use a domain, not all countries respect our views on spam and the domains can be registered there.

It's not often that simple either.  Some of the ways these spammers profit is to sell traffic to a domain to boost the domain in google rankings to increase its resale value (who do you report it to?  google doesn't like to listen and the domain will be sold to the victim by the time anything happens), or selling scam goods like illegal software on a site they set up in 10 minutes and don't care if it's taken down.  Or they force malware onto your computer and get paid a per-download fee from the malware authors.

Fighting spam just doesn't work on the level you're talking about, by the time you track them down and get someone to do something about it, they've moved on 10 times already.

Unfortunately the spam has disappeared, next time it shows up (if it does) I'll take a look at what they're "desperately" trying to tell the world about. They're not impervious to detection, that's why most of them get caught... eventually smiley-wink

26  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Spammers on: April 22, 2008, 12:31:41 pm
Adding captcha with new registrations will render the forum a "less easy" target, and like house thieves, they'll move on to easier pickings.

The attacks are scripted and adding a dictionary to hack the captcha requires a level of expertise I very much doubt these spammers possess.

It's possible to track the domain the spam is referring to, find out who the host and ISP are, then file a complaint with interpol.

These attacks are worthless if the sponsors of them are tracked down and hunted like the dogs they are. There'll be a site that's benefiting from the clicks, and that's your culprit.

27  Forum 2005-2010 (read only) / Syntax & Programs / Re: Softwareserial on: April 13, 2008, 04:56:59 pm
Quote
Modified the code a bit and came up with this for the Parallax RFID reader.


// RFID reader for Arduino
// Wiring version by BARRAGAN <http://people.interaction-ivrea.it/h.barragan>
// Modified for Arudino by djmatic
// And pieces from Arduino Playground <http://www.arduino.cc/playground/Learning/PRFID>
// And then modified again by thekidd

#include <SoftwareSerial.h>

#define rxPin 2
#define txPin 3
#define ledPin 13

// set up a soft serial port
SoftwareSerial mySerial(rxPin, txPin);

int  val = 0;
char code[10];
int bytesread = 0;

void setup() {
  // define pin modes for tx, rx, led pins:
  pinMode(rxPin, INPUT);    // Set rxPin as INPUT to accept SOUT from RFID pin
  pinMode(txPin, OUTPUT);   // Set txPin as OUTPUT to connect it to the RFID /ENABLE pin
  pinMode(ledPin, OUTPUT);  // Let the user know whats up

  // set the data rate for the serial ports
  mySerial.begin(2400);    // RFID reader SOUT pin connected to Serial RX pin at 2400bps
  Serial.begin(9600);      // Serial feedback for debugging in Wiring

  // say something
  Serial.println("Hello World!");
}

 void loop() {
  digitalWrite(txPin, LOW);           // Activate the RFID reader
  digitalWrite(ledPin, LOW);          // Turn off debug LED
  
  if((val = mySerial.read()) == 10) { // check for header
    bytesread = 0;
    
    while(bytesread<10) {             // read 10 digit code
      val = mySerial.read();
      
      if((val == 10)||(val == 13)) {  // if header or stop bytes before the 10 digit reading
        break;                        // stop reading
      }
      
      code[bytesread] = val;          // add the digit          
      bytesread++;                    // ready to read next digit  
    }
    
    if(bytesread == 10) {             // If 10 digit read is complete
      digitalWrite(txPin, HIGH);      // deactivate RFID reader
      digitalWrite(ledPin, HIGH);     // activate LED to show an RFID card was read
      Serial.print("TAG code is: ");  // possibly a good TAG
      Serial.println(code);           // print the TAG code
    }
    
    bytesread = 0;
    delay(2000);                      // wait for a second to read next tag
  }
}


Now I want to integrate this with a Purdy LCD, a Parallax GPS, and Xbee! I'll post what I find out for those interested.

Glad I found this post to integrate SoftwareSerial. I thought I was running out of Serial pins. Kudos to whoever wrote the SoftwareSerial library.

Also posted at: http://www.tekcrack.com/interfacing-arduino-with-parallax-rfid-reader-using-softwareserial.html

--thekidd

Software serial hangs your loop until a TAG is received.

So for example:-

void loop() {
 blinkLED();
 upDateLED();
 readRFID();
 getGPS();
}

As soon as the loop gets to readRFID(); it "hangs" so other functions in the loop, like reading gps updates every second, and displaying them on an LCD, won't resume until a TAG is scanned.

If no TAG is presented, then the loop hangs until one does.

Do a search for SoftwareSerial2, I think there's a interrupt hack in it that provides a "way out".
28  Forum 2005-2010 (read only) / Syntax & Programs / Re: Softwareserial on: March 13, 2008, 09:36:45 am
Quote
Awesome. I guess I'll try out the library as soon as I get home from work. As for your solution, well, I haven't yet graduated to straight AVR programming yet. Thank you very much for your help smiley

There's no straight AVR programming involved or required.

The IC's are programmed using the Arduino10 IDE, they are just ultra stripped down and use the mini USB adapter rather than having one inline, like the NG.

The ATMEGA168's are supplied with the Adaboot already installed by The Modern Device Company, so they're shipped ready to accept programs, like an NG, but with less parts.

So it's still an Arduino, but with 2 serial buffers and less components, and more I/O's, for less than the cost of an NG if you've got a mini-USB adapter laying around.

The designs an elaboration on this:-

http://art364.pbwiki.com/Standalone+Arduino

To stress test the shared resonator and find out if anything "flaky" happens, we've had the 2 IC's running now constantly for 3 days, and they're still ticking along quite happily in perfect synchronization. We didn't expect anything weird to happen, but it's worth knowing for certain because it hadn't been done before.


29  Forum 2005-2010 (read only) / Syntax & Programs / Re: Softwareserial on: March 13, 2008, 03:30:01 am
Check this thread, there's another library for Diecimila somewhere in here:-

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1202245205/0

It's a common problem, here's my solution:-

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1205243372

30  Forum 2005-2010 (read only) / Syntax & Programs / Re: Using standard serial and NewSoftSerial togeather on: March 24, 2010, 07:01:30 am
Post it using bracket [ code end bracket ]

Insert your code

Then use bracket [ backslash / end bracket ] - per below, just remove the spaces.

[ code ]

Insert your code

[ /code ]
Pages: 1 [2] 3 4 ... 48