Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 15
61  Using Arduino / Networking, Protocols, and Devices / Re: Webserver with dyn DNS on: February 02, 2013, 10:51:34 am
Ok, thank you.
I will monitor the behaviour as from now.
Maybe I have some chanches making the arduino ethernet (as a client ) doing the request to update the new ip.
If someone is interested in this, too, there is an API http://www.noip.com/integrate/request

Can the Ethernet be Client and Server on the same time?
Will I first have to stop the server then start the client then do the update, then stop the client and restart the server (?)
62  Using Arduino / Networking, Protocols, and Devices / Webserver with dyn DNS on: February 02, 2013, 09:53:18 am
Hello,

to reach my Arduino webserver in the www without knowing my IP address, I used a dyndns service (no-ip in my case) and I know that my ISP will assign my a new IP regularly when I switch off and then on my router again (reset) because then I reconnect.
My question is: Does my ISP also assign me a new IP  if I always let my router on?
Then I would not need to update my IP with the so called DUC (dynamic update client) tool.

Thank you
63  Topics / Robotics / Re: Arduino Act like a USB keyboard on: January 18, 2013, 02:18:49 pm
It works with Arduino UNO as well.
I tested it successfully with mine using UnoJoy.
64  Using Arduino / Interfacing w/ Software on the Computer / Re: fast transmission of much data on: January 13, 2013, 09:40:47 am
Ok, I have edited my reply

I forgot that v1 or v2 or even both could be 13 or 10 which is interpreted as the delimiter for new data.
A solution would be to use [0..254] for any data and "255" for the delimiter. Then I could send , with two bytes :
(254,254) is the highest value then : 254* 255^1 + 254* 255^0 = 65,024

And I always send 250 datas, so with this encoding 500 bytes .
65  Using Arduino / Interfacing w/ Software on the Computer / Re: fast transmission of much data on: January 13, 2013, 09:24:30 am
Ok, I have "modified" it like this:

addition to "Arduino pseudo code":
Code:
   int  val = 54123; //example to check  (data[x]);
    byte v1  = val / 256;
    byte v2  = val % 256;
    Serial.write(v1);
    Serial.write(v2);
    Serial.println("");
A byte cannot be lost , I think , because the sole problem is, that the transmission might be too fast, and so the buffer gets overwritten of new outgoing data. This wont happen because I do not send the next array's element until the last has really arrived.

I forgot that v1 or v2 or even both could be 13 or 10 which is interpreted as the delimiter for new data.
A solution would be to use [0..254] for any data and "255" for the delimiter. Then I could send , with two bytes :
(254,254) is the highest value then : 254* 255^1 + 254* 255^0 = 65,024
66  Using Arduino / Interfacing w/ Software on the Computer / Re: fast transmission of much data on: January 13, 2013, 09:05:27 am
Hello,
now I have changed the baudrate and am still using serial.println (maybe last thing I am going to change)
But these data are not each similar, so I think + and - can even be more than the value itself (e.g. 1000;900;100 - it is 1000,minus100,minus800 - last data (minus800) is more to send  than 100)

Additionally, it is important to know *when* Arduino can send the next array's element. Otherwise it will always send and maybe too fast , thus the buffer will be overwritten and causes data loss!
So, my idea is the following:

Arduino pseudo code:
Code:
for i=0 to datalength-1
send(data[i]);
while (Serial.read()!=123); // wait until the data arrived

windows program pseudo code:
Code:
-loop-
readin(data);
if validdata then (
workwithdata(data);
send(123); // ok got that data, send next one
)

what do you think?

And , I already though about encoding decimal digits to use the byte range
I would use two bytes then, example (255,255) is the highest value then : 255 * 256^1 + 255 * 256^0 = 65,535 and this is enough - so each transmission then needs two bytes



67  Using Arduino / Programming Questions / Re: Help with a pulse detection func on: January 12, 2013, 07:22:18 pm
use them:

analogread
map
digitalwrite
68  Using Arduino / Interfacing w/ Software on the Computer / Re: fast transmission of much data on: January 12, 2013, 06:50:24 pm
Data is collected from radio rx and sent after sync code, I always send the next arriving 250 slopes (ASK) then to be evaluated.
I now use 115200 baud rate and not use serial monitor anyway.
And I forget too mention : Now I am convertin g to string with println(strval) and yes,this is good and easy to parse.
it was exactly what I thought, too: needs more memory / is easy to parse (for example 9999 as string is each a byte because you use only the range 0..9) Thats why an idea would be to send integers up to 65536 in two bytes. (the data is always <25000). That should only need 2 bytes / transmission , insteas of e.g. 5bytes for "25000" as string.



69  Using Arduino / Interfacing w/ Software on the Computer / fast transmission of much data on: January 12, 2013, 05:44:23 pm
Hello,

Arduino is supposed to transmit array of integer to a windows software I am going to write
array length = 250, array elements = integer
How can this be transmitted -serial- fast ?
Any trick?, for example transferring some bits can be transferred by one byte with bitshift operations.

Thank you
70  Using Arduino / Project Guidance / Re: PT2260 / SC2260 key fob, get signal - AGC ? on: January 11, 2013, 09:30:43 am
To keep you informed:

First, I really wondered why there is no repeating change of 1 and 0 (on / off - with Duty cycle = 50% maybe ~ 30 times) .
Now, I wrote that simple sketch because I read (mikroElektronika -  How can read PT2260's datas with PIC):
Quote
by dhouston
The simplest method is to wait for the long space at the end of the first transmitted copy and then use the CCP hardware to capture the pulses and spaces of the second transmitted copy.

readin.ino
Quote
// 11.JAN.2013

int pin = 11;
boolean w = LOW;
unsigned long md = 500;

void setup()
{
  pinMode(pin, INPUT);
  Serial.begin(9600); 
  Serial.println("read_in\n");
}

void loop()
{
  if (Serial.peek() == 'c') {
    w = !w;
    Serial.print("W changed to: ");
    Serial.println(w ? "HIGH" : "LOW");
    Serial.flush();
  }
  if (Serial.available()){
    int k = Serial.parseInt();
    if (k>0){
      md=k; 
      Serial.print("min duration changed to: ");
      Serial.println(md);   
    }
  }
  unsigned long duration = pulseIn(pin, w);
  if (duration>md) {
    Serial.print(w ? "HIGH" : "LOW");
    Serial.print(", length = ");
    Serial.println(duration);
  }
}

Honestly, it would not be necessary to make this code so long but it was important for me to change the variables (w: waiting for low/high; md:minimal duration) on the fly.

Very happy now because the button press is recognized, now I will extract the code that follows and will evaluate it...
71  Using Arduino / Project Guidance / Re: PT2260 / SC2260 key fob, get signal - AGC ? on: January 10, 2013, 12:44:23 pm
AFAIK, the receiver's AGC can be made "ready" by turning the carrier frequency on and of many times (tx sends: 01010101...) so that the receiver is ready to get the following data.

Maybe I just misused the word AGC - however I mean what I described above to make a kind of match between receiver /transmitter.

For example, I received a raw VirtualWire encoded signal and noticed that it also sends ~ 30times on-off with same duration (like a Manchester coded "1"  = "01" or "10" )
72  Using Arduino / Installation & Troubleshooting / Re: Windows 7 and driver signing on: January 10, 2013, 12:35:49 pm
Try this
http://www.techspot.com/community/topics/how-to-install-use-unsigned-drivers-in-windows-vista-7-x64.127187/
solution #2
if this doesn't work, I think I cannot help you, sorry.
73  Using Arduino / Project Guidance / PT2260 / SC2260 key fob, get signal - AGC ? on: January 10, 2013, 10:27:49 am
Hello,

do you know if I can get signals with a simple ASK receiver (those tiny chinese ones for 1-2$, example) sent by an ASK transmitter (of course same frequency, this one) ?

It is PT2260 coded, I opened it, there was written SC2260 (they're technically the same).

I already read the data sheet but only found something to the coding itself.
And I was not able to find out whether there is some kind of AGC used, I think it has to otherwise a matched receiver wouldn't be able to get the signal, I wrote an interrupt based Arduino sketch looking for AGC bits (0,1,0,1,... alternating, each the same duration) and I proved that it works with an easy transmitter I found at home. But why does this transmitter not send any AGC or does it?

Thank you
Regards

74  Using Arduino / Installation & Troubleshooting / Re: Windows 7 and driver signing on: January 10, 2013, 10:16:10 am
look in device manager and search for the Arduino, this should be a question mark - unknown device
right click -> install driver manually.

worked for me on windows 8, 64bit
75  Using Arduino / Project Guidance / Re: Alarm system and radio transmission on: January 08, 2013, 02:35:34 pm
What do you think about the idea (http://arduino.cc/forum/index.php/topic,140776.msg1058205.html#msg1058205) to control whether the cable to the siren was cut? Can this method work - the idea is that there is a short circuit from Arduino GND to a pullupped Arduino Digital In, if the cable is cut anywhere - this is like a switch - it will be recognized. How to make the alarm then?
Pages: 1 ... 3 4 [5] 6 7 ... 15