Show Posts
Pages: [1] 2
1  Using Arduino / Networking, Protocols, and Devices / Re: ANSI Escape Sequences on: February 11, 2013, 01:12:43 pm
1.It was just an example [there are different escape codes used with this device].
2. I don't know for sure how, but if I'll connect the real display connected to the device - this is the rows order.
first it outputs the second row, then, the first one.


2  Using Arduino / Networking, Protocols, and Devices / Re: ANSI Escape Sequences on: February 11, 2013, 12:08:44 pm
you're right..the problem is that there are alot of escape codes...
and I hoped that someone once built an Arduino library/code for that matter..
3  Using Arduino / Networking, Protocols, and Devices / Re: ANSI Escape Sequences on: February 11, 2013, 11:43:22 am
I want to get a clean text divided to 2 rows.
For example, instead of:

Code:
000089568.[K.[H.[H07 BAG DDAST  .[K

I would like to get:

Code:
<1>07 BAG DDAST  </1><2>000089568</2>
4  Using Arduino / Networking, Protocols, and Devices / Re: ANSI Escape Sequences on: February 11, 2013, 09:53:54 am
RS-422 device connected to a SN75179BP connected to the serial pins of an Arduino Mega.

In the serial I get text mixed with ANSI escape codes.
5  Using Arduino / Networking, Protocols, and Devices / ANSI Escape Sequences on: February 11, 2013, 08:52:11 am
Hi,

I have a device that (as far as I understand) transmit data using the ECMA-48 protocol or ANSI Escape sequences.
That data usually get printed to a 2rows-16chars LCD device.
I want to be able to read that data using an Arduino, and send it to another software parsed as:

Code:
<1>FirstRowData</1><2>SecondRowData</2>

I found some projects online that do the opposite..let you send ANSI escape sequences parsed data to a device. I need the other way around..

Any ideas?
6  Products / Arduino Due / Re: Arduino due DS1307 RTC library on: January 11, 2013, 02:34:25 am
While trying to use the Time library from the playground [TimeRTC example] I get the following errors:

Code:
In file included from TimeRTC.pde:9:
/Applications/Arduino/Arduino 2.app/Contents/Resources/Java/libraries/DS1307RTC/DS1307RTC.h:19: error: 'tmElements_t' has not been declared
/Applications/Arduino/Arduino 2.app/Contents/Resources/Java/libraries/DS1307RTC/DS1307RTC.h:20: error: 'tmElements_t' has not been declared
/Applications/Arduino/Arduino 2.app/Contents/Resources/Java/libraries/DS1307RTC/DS1307RTC.h:27: error: expected ')' before '*' token
/Applications/Arduino/Arduino 2.app/Contents/Resources/Java/libraries/DS1307RTC/DS1307RTC.h:27: error: expected ')' before '*' token
TimeRTC.pde: In function 'void setup()':
TimeRTC:13: error: request for member 'get' in '1074666080u', which is of non-class type 'Rtc*'
TimeRTC:13: error: 'setSyncProvider' was not declared in this scope
TimeRTC:14: error: 'timeStatus' was not declared in this scope
TimeRTC:14: error: 'timeSet' was not declared in this scope
TimeRTC.pde: In function 'void digitalClockDisplay()':
TimeRTC:28: error: 'hour' was not declared in this scope
TimeRTC:29: error: 'minute' was not declared in this scope
TimeRTC:30: error: 'second' was not declared in this scope
TimeRTC:32: error: 'day' was not declared in this scope
TimeRTC:34: error: 'month' was not declared in this scope
TimeRTC:36: error: 'year' was not declared in this scope


7  Products / Arduino Due / Re: Arduino due DS1307 RTC library on: January 07, 2013, 02:20:09 pm
1. Assuming I'll manage to solder a battery to the apropriate pins, is there anything else I should do? [force the SAM3X to enter sleep mode or such] or is it enough to connect the battery?

2. Those RTC libraries I mentioned before doesn't work with an Arduino Due. anyone knows how to fix it?


8  Products / Arduino Due / Re: Arduino due DS1307 RTC library on: January 07, 2013, 09:19:15 am
We're talking on 2 different things.

I didn't know that the SAM3X has an RTC built in it.
I've tried to connect a DS1307 to the Arduino Due.
That is why I didn't understand how your library can help me with my project.

If there is a RTC built-in, how can I save the time there. is there a way to connect a battery to the SAM3X, like the one connected to a DS1307 circuit?


Thanks.
9  Products / Arduino Due / Re: Arduino due DS1307 RTC library on: January 07, 2013, 05:06:44 am
So how do I set the time on the DS1307?
I want to set it once, and read the time from it.
10  Products / Arduino Due / Re: Arduino due DS1307 RTC library on: January 07, 2013, 03:45:46 am
Hi Markus,

I'm using an external XTAL.

I uploaded the Due_Rtc_Simple_Sample once and all worked fine.
When I commented out:

 
Code:
//rtc_clock.set_time(10, 29, 9);
  //rtc_clock.set_date(22, 10, 2012);

The date was 1.1.2007


Am I missing something?
11  Products / Arduino Due / Arduino due DS1307 RTC library on: January 07, 2013, 01:08:05 am
Hi,

I've tried using RTClib and DS1307RTC libraries but they aren't compatible with the Arduio Due.
I've found this library, but it doesn't use an external RTC.


Any help?


12  Using Arduino / Networking, Protocols, and Devices / Isolated RS-422 communication on: November 30, 2012, 03:12:36 pm
Hi!

I'm currently using SN75179BP to convert RS-422 communication to UART, allowing communication from my Arduino to an RS-422 device.

I need to isolate that device from my arduino+driver/receiver circuit.
Does anyone know a good optocoupler solution for RS-422 lines?
any already-isolated driver/receiver pair?


Thank you,
Liad.
13  Using Arduino / Networking, Protocols, and Devices / Arduino Mega hardware serial on: October 30, 2012, 06:42:01 am
Hello,

1. Is there any equivalent to the SoftwareSerial inverse_logic function in the hardware serial? [Eg. SoftwareSerial mySerial(2,3,true);]
2. As I see it, in order to change an hardware-serial from 8-N-1 to 8-O-1, all I've got to do is adding:

Code:
UCSR1C= UCSR1C | B00110000;

after:
Code:
Serial1.begin(9600);

right? anything else I should add?

Thanks!
 
14  Using Arduino / Networking, Protocols, and Devices / Re: SoftwareSerial 8-o-1 problem on: September 11, 2012, 03:21:08 pm
Hey,

Problem solved!

I don't completely get it, but the minute I've changed the write function to non-inverse logic [With of course setting up the parity+stop bit correctly] - everything started working...

I'll keep investigate it to see exactly what's going on but it's nice to see it working.

Pylon, thanks a lot for that OSx workaround!

Liad.
15  Using Arduino / Networking, Protocols, and Devices / Re: SoftwareSerial 8-o-1 problem on: September 11, 2012, 10:47:00 am
Hey,

Thank you for your quick response.
I compiled it with the new code but I still can't transmit normally.

The device is constantly sending data. [ASCII formated messegs] I can read it clearly.
Whey I send 1 character using the serial terminal. I stop getting normal data from the device and it doesn't do what it suppose to do if he got the correct data from me.

I took an oscilloscope to check the arduino's output and it outputs exactly what it should [I think]
For example, sending 0x01 - I get 1011111110 [inverse logic]

is it possible that there is a problem with the timing? bit size?

Thanks,
Liad.
Pages: [1] 2