Go Down

Topic: send data pleas help (Read 84 times) previous topic - next topic

Jsvarc

Hello
Sorry for my English.
I need advice.
What used to Arduino.
I need to set it up so that when power on, it starts to send this:
00
delay: 10
F403213BED
delay: 100
F403213BED
delay: 100
F403213BED
delay: 100
F403213BED
delay: 100
F403213BED
delay: 100
F403213BED
delay: 100
F403213BED
delay: 100
F403213BED
delay: 100
F403213BED
delay: 100
F403213BED
delay: 100
and when the supply is to be sent
34021026

sending one wire
baud rate 2400
parity: EVEN
data bits: 8
stop bit: 1

many thanks for the advice

robtillaart

I think your question is not clear and ambiguous at best. So here is a sketch that does exactly what you ask but is probably not what you need. On the other hand it is easy to adjust to one of the variations you might have meant.

Spending time on a properly phrased question which includes context of the project saves in the end time for everyone, google translate can help with translating the language to English.

Code: [Select]

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

  Serial.println("00");
  Serial.println("delay: 10");

  for (int i=0; i<10; i++)
  {
    Serial.println("F403213BED");
    Serial.println("delay: 100");
  }

  Serial.println("34021026");
}

void loop()
{}


Success
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Jsvarc

Google translator use
but I'll try to write more specifically.
I need to send in a single device command to start and it should be in a binary system
Now it works with your PC via com port smear and where you're sending data
but I need an external data source to which one to bring the power sends the sequence

0000 0000
then pause 2sec
1111 0100 0000 0011 0010 0001 0011 1011 1110 1101
pause 8sec
1111 0100 0000 0011 0010 0001 0011 1011 1110 1101
pause 8sec
1111 0100 0000 0011 0010 0001 0011 1011 1110 1101
pause 8sec
1111 0100 0000 0011 0010 0001 0011 1011 1110 1101
pause 8sec
1111 0100 0000 0011 0010 0001 0011 1011 1110 1101
pause 8sec
0011 0100 0000 0010 0001 0000 0010 0110

a data line should have the following specifications see Figure

Perhaps I wrote it of course

robtillaart

Quote
should be in a binary system
Although the timing has changed quite a bit (10,100 milliseconds -> 2, 8 seconds), and the amount of messages (10->5), you are telling more now, thank you.

The code below is not ready yet, you need to fix the last issues...
Code: [Select]

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

  Serial.write(0x00);  // NOTE THE PRINTLN HAS BECOME A WRITE - READ DOCUMENTATION WHY

  delay(????);  // NOTE DELAY USES MILLISECONDS


  for (int i=0; i<10; i++)  // CHANGE THE COUNTER UPPER VALUE TO YOUR NEED
  {
    Serial.write(0xF4);
    Serial.write(0x03);
    Serial.write(0x21);
    Serial.write(0x3B);
    Serial.write(0xED);
    delay(????);
  }

  Serial.println("34021026");  // LEFT AS AN EXERCISE TO REWRITE
}

void loop()
{
  // does nothing
}
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

KenF

This thread is so strange I did a google for "F403213BED" and only got one page.  It's in Russian and a google translation of the advice given there is:

Quote
Re: Timer 1533 Webasto analysis work.

    [quote = [G] Smit; 699625 ] It is impossible to put together a package similar to this if we start from the assembly as listed above is a small package is obtained . [/ quote]
    ... not really small, but wrong .
    The heading "hx34" Webasto " will not lead " checked . Should be sent "F4", and when you expect an answer from her - "4F" should come in the header. And nothing else !!!
    Popobuy send Hercules H "f403213bed", only the port settings correctly set ... I start; )
:smiley-eek-blue:

Go Up