Announcement

Collapse
No announcement yet.

Serial Port Communication Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Serial Port Communication Help

    Hello forum! I'm struggling with using AutoPlay Media Studio 8 to talk to the serial port. I'm just overwhelmed and confused by all the different serial port plugins etc and dont know which to use. I would really appreciate some help. Here is what I am doing:

    I have a piece of hardware that hooks up to the computer via serial port COM9 and sends either 0's or 1's to the serial port. With Autoplay I just need a simple app that reads COM9 at 9600 Baud and performs a certain action if it reads a 1 or perform a different action if it reads a 0. This will need to run on a timer and read the serial port data once every second. Please please please help me and let me know what plugin will work the best and some simple sample code would be appreciated. Thanks in advance!!

  • #2
    i too, am having problems communication with serial ports on AMS 8... any suggestions out there...? many thanx...

    Comment


    • #3
      I did get it working perfectly and can now interface the application with my Arduino via USB -> Virtual COM Port. I have external sensors and switches etc that the arduino reads and based off the sensor value sends a certain value over the serial port and my auto play app reads the serial port data stream and if it finds certain values in the data stream it performs certain actions! Very excited to get it working! I can post an example app soon but need to strip out all the extra stuff.

      Comment


      • #4
        Hi Tomorrow. Would you mind posting a demo? I'd love to see what can be done controlling real objects!
        "White-colla-AMS-gangsta."

        Comment


        • #5
          Protocol,

          Serial Comms within autoplay can be achieved using pure Lua.
          Install Lua For Windows (If you don't use windows i cant help).
          Then use the following documentation to talk to serial ports!
          http://lua-users.org/lists/lua-l/2012-09/msg00554.html

          Basically you are using the luars232.lib library which is included in Lua For Windows. It is possible to download it individually but Lua For Windows is useful anyway.

          On Startup

          Code:
          rs232 = require "luars232"
          Then you can use the following functions...
          Code:
          errr, port = rs232.Open("COM1")
          port:read()
          port:write()
          port:close()
          As well as configuring port settings etc...

          The error returns aren't too bad either.

          Hope this helps.

          Comment


          • #6
            serial communication solved

            i have made a project that does rs232(serial communication)
            It uses dlls and is very easy to use...
            you can even access all the com port registers
            Thank you
            Attached Files

            Comment


            • #7
              Originally posted by debkar View Post
              i have made a project that does rs232(serial communication)
              It uses dlls and is very easy to use, you can even access all the com port registers
              Thank you
              One Question, does it work with AMS 8
              seems it depends on AMStimer plugin, which is not compatible with AMS8

              Comment


              • #8
                Im sure its within your knowledge to use a page timer instead?

                Comment


                • #9
                  Originally posted by Shrek View Post
                  Im sure its within your knowledge to use a page timer instead?
                  Hey Shrek, probably I can, just curious opeing this project, and noticed this ....

                  Comment


                  • #10
                    no it doesnot need timer..sorry man i forgot to clear unused resources..i used a dll and it does most of the work

                    Comment


                    • #11
                      I know last post was a month ago but does this work with 64 bit windows ?
                      ("Unable to start io.sys service" do you know another dll I can use?)

                      Comment


                      • #12
                        can you repost the rs232.apz because it won't open in AMS8....it keeps asking for references to the timer it doesn't need. -thanks.

                        Comment

                        Working...
                        X