Yeah that sounds exactly like it :P one of the employees explained it to me, but due to my lack of expertise in programming I didn't fully understand it.

Thanks also for your link. I tried it, but that program crashes for me (when running that piece of code the program freezes). Now, I came across another piece of code which seems to connect just fine (no error) but which does not properly send or receive any messages. Good thing to know is that when the boards receive a message they reply to it, even when the message sent is completely random. So it's likely that the sending part isn't properly functioning... Here is the code to set up the port:

my $PORT = "/dev/ttyS0"; system ("baud=19200 stop=1 data=8 parity=n"); open DEV,"+<$PORT" or die "Failed to open port\n"; my $ofh = select(DEV); $| = 0; $/='>'; select($ofh);
And here to send one of the 4 byte package and receive the output (and since there is no output, the program freezes there). This message is directed at the first board (that's why @data1 = 1).
my @data = (3, 1, 255, 253); my $packeddata = pack("C*", @data); print DEV $packeddata; my $output = <DEV>; #print "Output: $output ";
Thanks for all the replies so far! Let's hope we can solve this!

In reply to Re^2: Open serial port without Device::SerialPort by ThomasBrouwer
in thread Open serial port without Device::SerialPort by ThomasBrouwer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.