logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
lbandrade  
#1 Posted : Wednesday, February 12, 2020 9:36:13 PM(UTC)
lbandrade

Rank: Newbie

Groups: Registered
Joined: 12/18/2019(UTC)
Posts: 2
Brazil
Location: Rio das Ostras

Hi,

I`m trying to use a RS232 input as a data surce JSON.

I`m encoding the serial string as this to be in json style: {"name":"***"}

Passing this string to a Serial-TCP who create a localhost with that string.

But on Vmix when I select Json and use the url http:/10.20.36.10:1001 I got the following error: The server committed a protocol violation.

Is there any thing that I could do to fix this issue?Vmix is blocked to accept unsecure url?

Thank you all.
MartLeib  
#2 Posted : Wednesday, February 12, 2020 9:55:17 PM(UTC)
MartLeib

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2017(UTC)
Posts: 100

Thanks: 1 times
Was thanked: 18 time(s) in 17 post(s)
First of all, your JSON will not work with vMix. You need object inside array. Like so:

Code:
[
    {
        "name":"***"
    }
]



If you want to have more than 1 entry, you just add objects:

Code:
[
    {
        "name":"***"
    },
    {
        "name":"###"
    }
]


Could you share output of the http:/10.20.36.10:1001 when you open it in the browser? Does Chrome open it nicely, if it does without errors, this should not be HTTPS/HTTP case.

Probably related to your software not providing correct headers.
lbandrade  
#3 Posted : Wednesday, February 12, 2020 10:04:50 PM(UTC)
lbandrade

Rank: Newbie

Groups: Registered
Joined: 12/18/2019(UTC)
Posts: 2
Brazil
Location: Rio das Ostras

Hi, thank you for your response

I change the string to :


[{ "name":"***" }]


like you told.

Sorry I type the wrong IP the correct is http://10.20.36.125:1001/
I`m trying to connect on the browser but with no success:

ERR_INVALID_HTTP_RESPONSE

No connction.PNG (14kb) downloaded 0 time(s).

I`m testing with the CommFront Serial-TCP program to generate the server.
MartLeib  
#4 Posted : Wednesday, February 12, 2020 10:42:16 PM(UTC)
MartLeib

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2017(UTC)
Posts: 100

Thanks: 1 times
Was thanked: 18 time(s) in 17 post(s)
I believe that this software does not work as you need it to work. It probably creates TCP server which vMix can not use. vMix needs HTTP server for data source.

I have used Node.JS for serial reading and express for outputting that data on the HTTP server. You may contact me at mart.leib.estonia@gmail.com
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.