Pages: 1 ... 5 6 [7]   Go Down
Author Topic: An alternative Serial Library for Arduino 1.0  (Read 20495 times)
0 Members and 1 Guest are viewing this topic.
Smithfield, Rhode Island
Offline Offline
God Member
*****
Karma: 3
Posts: 843
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All...

I noticed some interesting behavior from this beta SD library.

After running bench, the L LED (attached to the SCK line on my board, like an original Uno) remains lit. If I then set the pinMode to output and try to manually turn that led on or off, it just stays on.

Any ideas?


A number of libraries access Serial.  This causes HardwareSerial to be loaded even if you don't call the functions that access Serial.  These libraries can't be used with SerialPort.

All released SD.h and SdFat libraries cause HardwareSerial to be loaded and can't be used with SerialPort.  I will soon release a version of SdFat that does not access HardwareSerial. 

A beta version of this SdFat is in SerialLoggerBeta20120108.zip here http://code.google.com/p/beta-lib/downloads/list.

Hi...

I was just wondering if there is an update to this beta?

Logged

Smithfield, Rhode Island
Offline Offline
God Member
*****
Karma: 3
Posts: 843
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Never mind, this has been traced to a hardware error.
Logged

Netherlands
Offline Offline
Jr. Member
**
Karma: 1
Posts: 93
Profile before you Optimize.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Would you consider a different design?
Or is compatibility with previous API more important than versatility?

I find the monolithic approach to these 'libraries' really restricting.

Just curious.
Logged


0
Online Online
Edison Member
*
Karma: 63
Posts: 1599
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I find the monolithic approach to these 'libraries' really restricting.

Define the API you want and say why you need it.
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are there optimizations here that we should be incorporating into the default Serial library?  If so, please open a Google Code issue for them so I know to incorporate them.
Logged

0
Online Online
Edison Member
*
Karma: 63
Posts: 1599
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have posted an update for this library as SerialPort20130222.zip http://code.google.com/p/rtoslibs/downloads/list.

A fast Serial port to SD logging sketch is included.  This sketch can log Serial data at up to 115200 baud.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

I was testing this library. Great job!!! Thanks guys.

I had a problem with it. I don't know if it is only me.
I was running an Arduino as data logger. It works fine for minutes, hours, days... but then I get a 'getRxError'.
That error is always RX ring buffer full overrun.

The worst thing that it seems be random. System works for minutes, hours or days and record hundreds of MB and suddenly this error happen. So, it doesn’t has sense with software problem I am thinking that maybe I have a hardware issue when micro controller is working continuously for long time...

Was anyone testing a board recording data with this library for days, weeks...?
Did you get any time a buffer error? Even if everything continue working at end.

Cheers!
Logged

Pages: 1 ... 5 6 [7]   Go Up
Jump to: