altsoftSerial will not write byte array

need to write this array of bytes {0, 4, 110, 112, 255} once, then do nothing.

Will not write.

#include "Arduino.h"
// Be sure that the AltSoftSerial library is available, download it from http://www.pjrc.com/teensy/td_libs_AltSoftSerial.html"
#include "AltSoftSerial.h"


AltSoftSerial altSerial(8,9);

void setup()
{
  Serial.begin(19200);
  altSerial.begin(10400);
  byte data[5] = {0, 4, 110, 112, 255};

  altSerial.write(data, 5);

delay(100);
}

void loop()

{


  }

If ALL you need to do is write that array ONE time, and then do NOTHING, why do you need to use a software serial port to do it? Why AltSoftSerial?

The AltSoftSerial constructor takes no arguments, so that code won't even compile.

i need these bits to be sent at 10400 kbps to another device. Thats why i use softserial.
The code compiles in arduino ide, but no result in output.

but no result in output.

So, the mysterious device that you have duct-taped to the Arduino doesn't respond to the data in the way you expect.

Perhaps its time to tell us what this mysterious device is, how it is connected to the Arduino, and what the device actually does, or what you expect it to do and WHY you expect it to do that.

iso9141 device connected via buffer IC to arduino pins 8,9.
This byte array initiates system test.

Can you help me understand what 10400 kbps means? Presumably you meant 10,400 baud or 10.4kbps. In any event, just tested AltSoftSerial at 10,400 baud, didn't like it.

iso9141 device connected via buffer IC to arduino pins 8,9.

So, grounds are not connected?

grounds connected, 5v and 12v connected.

ruklis:
grounds connected, 5v and 12v connected.

Instead of hand-waving about the connections, post a schematic, with links to the IC and the device connected to it.