2 Due rx tx not working

Home Forums TinyG TinyG Support 2 Due rx tx not working

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11024
    macgenjason
    Member

    Hi all and thanks to all that have come before me.

    I am trying to connect 2 Due boards via rx tx and I am stumped.
    Inspired by this sketch I want to use one Due for HMI and one for G2core.

    G2 is installed(100.26 bin) and working on Due#2 and I have a small test sketch on Due#1
    I have done so much testing that I believe it has something to do with G2core and Due.

    Here is why I think this.
    1. I have tested my sketch and wiring with a TinyG V8 hardware and it works.
    2. I have tested with grbl on Uno and it works.
    3. I can get 2 Due to talk with my own test sketch on each.
    4. I have even tried a new Due and still will not work.

    Something to do with the two usb ports on Due?
    Any ideas?
    Regards,
    Jason

    • This topic was modified 6 years, 4 months ago by macgenjason.
    #11027
    cmcgrath5035
    Moderator

    3. I can get 2 Due to talk with my own test sketch on each.

    USB0 to USB0, or USB1 to USB1 ?
    I believe when G2core is running, it is connected to USB1, with USB0 relegated to firmware download tasks, etc.

    #11029
    macgenjason
    Member

    Thanks for taking the time.
    Not sure I understand the question. My Arduino Foo is not strong.

    RX1(pin19 Due#1) to TX0(pin1 Due G2)
    TX1(pin18 Due#1) to RX0(pin0 Due G2)
    GND to GND

    I am using the serial terminal on Due#1 to monitor via the native usb port and the IDE serial monitor.

    Basically working ti this.
    Here is an image.

    #11032
    Thingomy
    Member

    I have been (procrasinating instead of) working on a project that does something very similar for a while now, and would be very interested in what answers come up here.

    I suspect (frustratingly for both of us) that under the default configuration, the serial ports on the due with g2core running don’t actually do anything. It seems that the USB interface is directly wired into the processor for performance reasons with no hardware serial link present. (this is very diferent to how it works on and arduino uno with grbl for example which uses a separate chip to interface with the USB port)

    There does seem to be plenty of referecnes to serial stuff in the source code, it is still an emulated serial port, and the motate harware extaction layer seems to sugest that there sould be a way to do something interesting, but I havn’t been able to get to the bottom of how it all works properly.

    There are also references a while ago to “networking” of old hardware tinyg stuff using RS485 serial, meaning that one board recieved the gcode through a conventional USB port, and shared it with 1 or more other boards connected to it to control more motors. While this isn’t exactly what we are after, it sugests that the software options shouldn’t be buried too deeply, unless the functionality has been totally depricated and removed.

    I would be very happy … extremly happy … if somone were to sugest a simple solution to this.

    I’ve heard people sugesting using extra hardware to turn a serial line into a and emulated serial over usb line — this sounds very messy and unnecisary. My plan B is to use GRBL if I can’t find a solution — that would be messy and very suboptimal for my project.

    #11033
    macgenjason
    Member

    Starting to see the problem.
    rx0 tx0 are connect to the programming port and g2 uses the native port for io.
    So now I am looking for a way for the first Due to connect directly through the native usb ports.
    Seems like I should be able to just plug a male/male usb plug in and use some library to communicate just like a terminal program.

    #11035
    cmcgrath5035
    Moderator

    I think you are on the right track.
    It is unclear to me if the DUE has USB Host capability, which is likely required for the controller DUE.

    Many in this space use RaspPi or BeagkleBoards for the controller side.
    Folks have actually ported the entire Chilipeppr environment to a RPi3.

    Good Luck with your hunt

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.