Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Steve Vandenbussche
    S
    • Continue chat with Steve Vandenbussche
    • Start new chat with Steve Vandenbussche
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Steve Vandenbussche

    @Steve Vandenbussche

    0
    Reputation
    2
    Posts
    206
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Steve Vandenbussche Follow

    Posts made by Steve Vandenbussche

    • Serail ID of /dec/tttACM0 using io.openport

      Hi,

      I've got an Arduino Uno connected to the USB1 port of my Neuron M203, which is identified as /dev/ttyACM0. How do I open a connection to this device with io.openport(). This function needs a string argument containing the communication parameters: 'serial:6:9600,8,N,1'. Does anyone know where I can find the correct serial ID ?

      edit

      I've connected an usb to serial adapter and then it works with serial ID 10 for /dev/ttyUSB0.
      My code is based on the custom serial protocol example:

      def := 'serial:10:9600,8,N,1';
      handle := io.openport(def);
      
      IF handle >= 0 THEN
         state := 1;
      END_IF;
      

      handle is of type: io.commhandle which is an int. Whether or not io.openport works, it seems that the value of handle is always 0, so testing it makes no sense ?

      Thanks,
      Steve

      posted in Mervis
      S
      Steve Vandenbussche