There are too many variables here to know what exactly is going on. Id
actually use Node to test your connection as such . . .

(function() {
        var fs = require('fs');
        var rs = fs.createReadStream('/dev/ttyO0');

        rs.on('data', function(chunk){
                process.stdout.write(chunk.toString());
        });
})();
Just change the device path . . . and this code does work. For writes, use
createWriteStream() instead, and it's nearly as simple.

Some things that may be obvious to check.

Make sure that you swap data line from one device to the next. e.g.
tx<->rx, rx<->tx.
Make sure you load the proper device tree files, and disable the universal
IO device tree file. *IF* you do not want to use it.
Disconnect all your serial ports, and just work on a single port until you
get something working.


On Fri, Jun 10, 2016 at 9:44 AM, Manavendra Nath Manav <[email protected]
> wrote:

> Hi James,
>
> Which Port Pins of Beaglebone Red you have connected to which pins of
> Arduino, and the output of that port pin properties in /sys we might
> be able to help.
>
> Thanks
> Manav
>
> On 6/10/16, [email protected] <[email protected]> wrote:
> >
> > That did not help unfortunately, thanks anyway.
> > On Friday, June 10, 2016 at 10:46:44 AM UTC-4, RobertCNelson wrote:
> >>
> >> Hi James,
> >>
> >> On Fri, Jun 10, 2016 at 9:42 AM,  <[email protected]
> <javascript:>>
> >> wrote:
> >> > I am trying to get an arduino to communicate with the BeagleBone Black
> >> and
> >> > send some measured sensor data over via the serial port. I am using
> the
> >> >
> >> most
> >> > recent version of node red to do this. I am running the latest version
> >> of
> >> > Debian.
> >> >
> >> > I have confirmed using an oscilloscope that the arduino's serial port
> is
> >> >
> >> > outputting the information when it is supposed to (it's triggered by
> an
> >> >
> >> > interrupt sent by the BBB). I can see the serial ports that are
> >> supposedly
> >> > enabled in /dev and they appear as ttyO1, ttyO2, and ttyO4, and I have
> >> > confirmed the port mapping and ruled out wiring issues as well (I'm
> >> using a
> >> > logic level converter to go from the arduino's 5V to the BBB's 3.3V
> >> level).
> >> >
> >> > The ports also appear to map like so:
> >> >
> >> > lrwxrwxrwx 1 root root 5 Jun  9 22:37 ttyO1 -> ttyS1
> >> > lrwxrwxrwx 1 root root 5 Jun  9 22:37 ttyO2 -> ttyS2
> >> > lrwxrwxrwx 1 root root 5 Jun  9 22:37 ttyO4 -> ttyS4
> >> >
> >> > Node red also sees these ports and indicated that they are 'connected'
> >> which
> >> > I assume means opened.
> >> >
> >> > When I attempt to receive data on the BBB from ANY of these ports I am
> >> > unable to see anything on the output in node red or from the command
> >> prompt.
> >> >
> >> > I am using a baud rate of 300 to rule out timing issues. I have also
> >> > confirmed that the arduino's serial settings should be matched to what
> >> the
> >> > BBB is expecting. Lastly, I have even tried sending simple strings
> from
> >> >
> >> one
> >> > serial port to the other on the BBB itself.
> >> >
> >> > Has anyone here had this sort of issue and if so, how did you come to
> a
> >> >
> >> > solution?
> >>
> >> By default, cape-universal is loaded, for BB-UART1 just do:
> >>
> >> config-pin P9.24 uart
> >> config-pin P9.26 uart
> >>
> >> and then /dev/ttyO1 will now work..
> >>
> >> Regards,
> >>
> >> --
> >> Robert Nelson
> >> https://rcn-ee.com/
> >>
> >
> > --
> > For more options, visit http://beagleboard.org/discuss
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "BeagleBoard" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/beagleboard/a8e491c4-c39d-4812-bfbe-7346c5b315eb%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
> >
>
>
> --
> Manavendra Nath Manav
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/CAJKgH8B0yX9NvvRLf2q7zGESUMh-w2GVOx2-JTJZpod0ZCEViQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CALHSORonq9QGoS_yfrhhWTHshcYWXrssSCbykX%3DfyNFkmX4Zrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to