ARCHIVE
LinuxMCE Forums
May 25, 2013, 10:01:38 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Generic Serial Devices (ruby Code)  (Read 5462 times)
archived
Hello, I'm new here

Posts: 0


View Profile
« on: September 09, 2005, 03:51:26 pm »

When I try to send commands to my new Generic Serial Devices I get this
Code:

Message Sent succesfully.
/usr/pluto/bin/MessageSend -r localhost 0 54192 1 351
Response was:
01 09/09/05 10:53:35.542 gethostbyname for '-r', failed, Last Error Code 1, Device: -1003
05 09/09/05 10:53:35.542 void ClientSocket::Disconnect() on this socket: 0x804e578 (m_Socket: 9)
01 09/09/05 10:53:35.542 ClientSocket::Connect() not successful
01 09/09/05 10:53:35.542 Message constructor malformed with missing argument


what can be causing this ?
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #1 on: September 10, 2005, 11:09:04 am »

./MessageSend -help
Usage: MessageSendTest server [-targetType [device|category|template]] [-r | -o] [-p path] DeviceFrom DeviceTo MsgType(1=Command, 2=Event) MsgID [parm1id param1value] [parm2id parm2value] ...
        the server is the name/ip of the router, such as localhost
        the default target type is the device.
        -p specifies the path for output params
        -r means the message will be sent with a response request
        -o means the message will expect out parameters
                which will be echoed to the screen as resp: [response]
        the parm ID can be prefixed with a letter:
                D send as a data paramter, rather than text
                B the value is a filename, the contents sent as a data parameter
                T the value is a filename, the contents sent as a text parameter

Note the host goes *before* the parameter.  this is necessary because the same classes that handle parsing messages from the commandline are also used internally throughout Pluto, and we wanted to have everything share.  So it's messagesend [host] then all the parameter.  Try:
/usr/pluto/bin/MessageSend localhost -r 0 54192 1 351
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #2 on: September 12, 2005, 02:08:34 pm »

I am not the one sending the command. The command is generated when I do a send command on the device from the web page.
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #3 on: September 12, 2005, 03:04:05 pm »

Quote from: "lcomtois"
I am not the one sending the command. The command is generated when I do a send command on the device from the web page.

Please let me know what is the web page you are using to send the command.
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #4 on: September 12, 2005, 06:55:31 pm »

It is nn the Pluto-Admin under:
My Device, Core, PC5401 (Generic_Serial_Device), Send command to device
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #5 on: September 13, 2005, 07:24:29 am »

The issue was in /var/www/pluto-admin/operations/myDevices/sendCommand.php

Go to line 150 and replace that line with:
Code:
$commandToSend="/usr/pluto/bin/MessageSend localhost $firstParam 0 $deviceID 1 $commandID$parmsValues";
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #6 on: September 21, 2005, 04:58:33 am »

I keep having these strange thoughts any one know why? [xx(][xx(]
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Pluto provided a snapshot of their forums with approximately 5,000 posts in February, 2007 when LinuxMCE branched off. Browse those forum posts in the Archive section. Those posts have been included in the search engine and can be found with keyword searches.