- Posts: 74
- Thank you received: 5
Is there a generic IP driver?
- stanger89
- Offline
- User
-
Less
More
2 years 5 months ago - 2 years 5 months ago #814
by stanger89
It does work for IP, but probably only for the very basic serial-over-ip or ir-over-ip interfaces. I got it to work with my Paradigm PW Soundbar, but it's a really basic protocol not REST/http like your example. For example my soundbar all you do is open a socket on a specific port and send a string. For example you send Z1POW1 to turn it on. http is a much more complex protocol, I'm guessing if you wanted to use the GenericSerial for an http interface you'd have to define all the http protocol info in each command.
Maybe there's a way to have the server send and http request?
Now the one question I have is is it possible to have myServer read the response to GenericSerial commands and set variables that can be referenced elsewhere? Like volume level for example?
Replied by stanger89 on topic Is there a generic IP driver?
But as I said the GenericSerial does NOT work with IP devices. I couldn't get it to work at all. I basically had to bypass the driver and just make straight GetURL/PostURL commands.
It does work for IP, but probably only for the very basic serial-over-ip or ir-over-ip interfaces. I got it to work with my Paradigm PW Soundbar, but it's a really basic protocol not REST/http like your example. For example my soundbar all you do is open a socket on a specific port and send a string. For example you send Z1POW1 to turn it on. http is a much more complex protocol, I'm guessing if you wanted to use the GenericSerial for an http interface you'd have to define all the http protocol info in each command.
Maybe there's a way to have the server send and http request?
Now the one question I have is is it possible to have myServer read the response to GenericSerial commands and set variables that can be referenced elsewhere? Like volume level for example?
Last edit: 2 years 5 months ago by stanger89.
Please Log in to join the conversation.
- stanger89
- Offline
- User
-
Less
More
- Posts: 74
- Thank you received: 5
2 years 5 months ago #816
by stanger89
Replied by stanger89 on topic Is there a generic IP driver?
Please Log in to join the conversation.
- stanger89
- Offline
- User
-
Less
More
- Posts: 74
- Thank you received: 5
2 years 5 months ago #817
by stanger89
Replied by stanger89 on topic Is there a generic IP driver?
The following user(s) said Thank You: bowlingbeeg
Please Log in to join the conversation.
- bowlingbeeg
- Topic Author
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 5 months ago #818
by bowlingbeeg
Replied by bowlingbeeg on topic Is there a generic IP driver?
Yeah maybe you're right about the http protocol not being supported. Didn't think about that.
Please Log in to join the conversation.
- stanger89
- Offline
- User
-
Less
More
- Posts: 74
- Thank you received: 5
2 years 5 months ago #837
by stanger89
Replied by stanger89 on topic Is there a generic IP driver?
Maybe you can get away with really basic http commands. At it's core it looks pretty simple, basically just "GET <uri> HTTP/<version>"
www.tutorialspoint.com/http/http_messages.htm
So maybe you could try setting:
Prefix: "GET /ZidooControlCenter/RemoteControl/sendkey?key="
Suffix: " HTTP/1.0"
Command Data: "Key.Right"
www.tutorialspoint.com/http/http_messages.htm
So maybe you could try setting:
Prefix: "GET /ZidooControlCenter/RemoteControl/sendkey?key="
Suffix: " HTTP/1.0"
Command Data: "Key.Right"
Please Log in to join the conversation.
- bowlingbeeg
- Topic Author
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 5 months ago #847
by bowlingbeeg
Replied by bowlingbeeg on topic Is there a generic IP driver?
Thanks for the suggestion, but no luck.
Please Log in to join the conversation.
Time to create page: 0.189 seconds