Is there a generic IP driver?

stanger89's Avatar
User User
  • Posts: 74
  • Thanks: 5

Re: Is there a generic IP driver?

2 years 7 months ago - 2 years 7 months ago
#814
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 7 months ago by stanger89.

Please Log in or Create an account to join the conversation.

stanger89's Avatar
User User
  • Posts: 74
  • Thanks: 5

Re: Is there a generic IP driver?

2 years 7 months ago
#816
Here's my serial model. 

Please Log in or Create an account to join the conversation.

stanger89's Avatar
User User
  • Posts: 74
  • Thanks: 5

Re: Is there a generic IP driver?

2 years 7 months ago
#817
Here's the serial model settings
 
The following user(s) said Thank You: bowlingbeeg

Please Log in or Create an account to join the conversation.

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Re: Is there a generic IP driver?

2 years 7 months ago
#818
Yeah maybe you're right about the http protocol not being supported. Didn't think about that.

Please Log in or Create an account to join the conversation.

stanger89's Avatar
User User
  • Posts: 74
  • Thanks: 5

Re: Is there a generic IP driver?

2 years 7 months ago
#837
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"
 

Please Log in or Create an account to join the conversation.

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Re: Is there a generic IP driver?

2 years 7 months ago
#847
Thanks for the suggestion, but no luck.

Please Log in or Create an account to join the conversation.

Time to create page: 0.308 seconds