Announcement

Collapse
No announcement yet.

Map COM port to GC100 - 12 Serial

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

    Map COM port to GC100 - 12 Serial

    Hey Guys,

    I am doing some new creative things with a moving LED sign that I have connected to a Serial port directly to the PC on COM 9. What I would like to do is move the LED sign to another room that currently has a GC100-12 in with a free serial port.

    How do I send the commands to that serial port?

    The plugin I am using looks for the LED sign on a certain port so, moving it to a serial port on the GC is what I need help with.

    Plugin is the HS GC plugin.
    LED is Jon00's LED Scripting package.
    PC is a HomeTroller
    LED is a Serial only China thing.

    Thanks for any help!

    This is all I was able to get from the help file but, it reads like stereo instructions:

    SendSerialData

    SendSerialData(ByRef gcUnit_Num As Integer, ByVal GCMod As Integer, ByVal data As String) As Boolean
    Purpose

    This function sends a string of data through a serial port.
    Parameters

    Parameter: gcUnit_Num
    Type: Integer
    Description: The number of the global cache device that has the serial port.

    Parameter: GCMod
    Type: Integer
    Description: The module number of the serial port on the global cache device (usually 1 or 2).

    Parameter: data
    Type: string
    Description: The data to be sent through the serial port.
    Returns

    True if successful, false is failed.
    Example

    sub main()
    'sends a V command through serial port 1 of global cache device 2
    Dim pObj As Object = hs.Plugin("Global Cache Plugin")
    pObj.SendSerialData (2, 1, "V")
    End Sub
    Transitioning to HS3Pro .298 - WinXPEmbedded

    Hometroller S3 Pro - WinXPEmbedded - HSP 2.5.0.81 - BLStat - HSPhone - HSTouch Srvr 1.0.0.73 - Touchpad - BLLan - BLOccupied - DSC Plug 2.0.0.14 - BLStat .38

    #2
    I used a free serial emulator, but had to pay a few bucks to get the 64 bit version.. works great.

    I remote into my A/V receiver using the Okyno Plug-in by TWA

    http://www.eterlogic.com/Products.VSPE.html
    Ubuntu on the Intel NUC ( 8i5BEK ), 32 G, 250G SSD, V4 Pro 😎

    Comment


      #3
      I wonder if something like this would work:

      http://www.hw-group.com/products/hw_vsp/index_en.html

      It appears this creates a virtual port on the computer and maps it to an IP Address and TCP port.

      I think I am going to give this a shot. If this works, I think I may have found a solution.
      Transitioning to HS3Pro .298 - WinXPEmbedded

      Hometroller S3 Pro - WinXPEmbedded - HSP 2.5.0.81 - BLStat - HSPhone - HSTouch Srvr 1.0.0.73 - Touchpad - BLLan - BLOccupied - DSC Plug 2.0.0.14 - BLStat .38

      Comment


        #4
        It worked fine til I moved to 64 bit
        Last edited by gearyt; November 21, 2013, 02:52 PM.
        Ubuntu on the Intel NUC ( 8i5BEK ), 32 G, 250G SSD, V4 Pro 😎

        Comment


          #5
          I did use this for a bit to send serial to a display on a gc device.

          Dim GC As Object = Nothing
          Dim SerIdx As String = "1"
          Dim SerResult As String
          Dim cmd As String
          GC = hs.Plugin("Global Cache")
          If GC Is Nothing Then Exit Sub
          hs.WriteLog("Debug", "Got the plugin")

          'Now we are connected to the plugin send the commands we need.


          ' *******Connect to display*********
          cmd = vbCr
          SerResult = GC.SendSerialData(1, SerIdx, cmd)
          cmd = vbCr
          SerResult = GC.SendSerialData(1, SerIdx, cmd)
          cmd = vbCr
          SerResult = GC.SendSerialData(1, SerIdx, cmd)
          cmd = (Hex(01) & vbCr)
          SerResult = (GC.SendSerialData(1, SerIdx, cmd))

          This may help.

          Greig.
          Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
          X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
          Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
          Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
          Scripts =
          Various

          Comment

          Working...
          X