Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hopefully this is possible with QM!!

Setting up Inovonics 730 RDS encoder that uses TCP/IP communication.

I want to communicate directly with it using QM so I can format text data and upload to the hardware.

I'm not really sure how TCP/IP communication works, so please put in notes.

I have the Assigned IP, Gateway, Subnet, DNS, and port information...just will need to know what is necessary and where to put it. I can set a password in the hardware, but right now it is blank. Perhaps I will be setting a password, so if it's not a trouble, show how that works too.

Jimmy Vig

These functions can be used to create TCP/IP client. All documented in MSDN. You also have to know protocol used by Inovonics 730 RDS encoder.
HyperTerminal works when I configure the program for TCP/IP and put in the correct information. I have no idea where to find out what protocol the machine uses.

To communicate with the Inovonics 730 using HyperTerminal just send commands like:
TEXT=Hello World
RT=More Text

Being that I haven't figured out how to use QM and TCP/IP Right, I am using "SendKey" function to send each individual character to the HyperTerminal way to use setwintext or anything that I could figure out. It works, but I don't feel like it is as stable as I would like it to be, occasionally it will miss a character. Is there anyway to send command line messages through QM to hyperterminal to control a specific connection?

How does QM net work? I also would like to see if the automation program could communicate directly with QM using it's built in TCP/IP connection.

Jimmy Vig
net and the related QM TCP/IP server cannot be used by other software. Specific protocol, passwords, etc.


Try this TCP/IP client class.

Macro TcpIpClient help
Copy      Help
;Sends and receives data using TCP/IP.
;A variable of TcpIpClient type also can be used with Winsock functions as SOCKET variable.
;When a function fails, it returns 0. To get error code, call WSAGetLastError.


;Connects to http server and downloads file.

#compile "__TcpIpClient"
TcpIpClient x

str server=""
str getfile="/wiki/Hypertext_Transfer_Protocol"
str receivedData

out "---- connecting ----"

if(!x.Connect(server 80)) end "failed"

out "---- sending request ----"

str request.format("GET %s HTTP/1.0[]User-Agent: Quick Macros[]Host: %s[][]" getfile server)
if(!x.Send(request)) end "failed"

out "---- receiving ----"

if(!x.Receive(receivedData)) end "failed"

out "---- received: ----"
out receivedData

Attached Files
.qml   Winsock TCP IP client.qml (Size: 3.75 KB / Downloads: 420)
do you have any 'server side' TCP/IP class/example?
tomorrow will post
TCP/IP server and client
what can i say... You're the man Tongue


Forum Jump:

Users browsing this thread: 1 Guest(s)