Issue with http request - Says http not open - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A8 (https://www.kincony.com/forum/forumdisplay.php?fid=23) +--- Thread: Issue with http request - Says http not open (/showthread.php?tid=7258) Pages:
1
2
|
Issue with http request - Says http not open - fabien1506 - 12-24-2024 Hello Community of Kincony ! I am using a KC868-A8, which is a great product. I have activated http server to send some commands in tcp to the board. When I am trying : http://192.168.1.200/ctrl.cgi?secret=abcd&cmd=get_inputs&id=0&value=0 I have the answer : {"code":-2,"status":"http not open"} When I am trying : http://192.168.1.200/ctrl.cgi?secret=abcd&cmd=get_outputs&id=0&value=0 I have the answer : { "outputs": [0, 0, 0, 0, 0, 0, 0, 0], "status": "success", "code": 0 } Any idea of what could be wrong by reading the inputs ? Thank you ! Fabien RE: Issue with http request - Says http not open - admin - 12-24-2024 take a photo of your protocol webpage setting of KCS firmware. RE: Issue with http request - Says http not open - fabien1506 - 12-26-2024 (12-24-2024, 11:59 PM)admin Wrote: take a photo of your protocol webpage setting of KCS firmware. Hello Admin, Thank you. Here is my parameters. By the way, I don't know why I do not have access to the Modbus parameters, this board should be compatible with Modbus RTU, right ? RE: Issue with http request - Says http not open - admin - 12-27-2024 KC868-A8 no RS485 port, not support modbus. A8S have RS485 ,support modbus. do you A8 board ip is 192.168.1.200? what firmware version you are using? suggest download the newest, here is link: https://www.kincony.com/forum/showthread.php?tid=7224 RE: Issue with http request - Says http not open - fabien1506 - 12-28-2024 (12-27-2024, 12:32 AM)admin Wrote: KC868-A8 no RS485 port, not support modbus. A8S have RS485 ,support modbus. Ok for Modbus. Yes my board is in 192.168.1.200 I am already using the latest firmware in 2.2.8 That’s why I’m wondering what could be wrong. RE: Issue with http request - Says http not open - admin - 12-29-2024 KCS firmware not support tcp by modbus, only RS485 modbus, but KC868-A8 without RS485 port. RE: Issue with http request - Says http not open - fabien1506 - 12-29-2024 (12-29-2024, 12:01 AM)admin Wrote: KCS firmware not support tcp by modbus, only RS485 modbus, but KC868-A8 without RS485 port. Yes ok understood that. But my issue is still existing with the http commands : When I am trying : http://192.168.1.200/ctrl.cgi?secret=abc...=0&value=0 I have the answer : {"code":-2,"status":"http not open"} When I am trying : http://192.168.1.200/ctrl.cgi?secret=abc...=0&value=0 I have the answer : { "outputs": [0, 0, 0, 0, 0, 0, 0, 0], "status": "success", "code": 0 } RE: Issue with http request - Says http not open - fabien1506 - 12-29-2024 Yes ok understood for Modbus TCP. But my original issue was that TCP commands was not working : When I am trying : http://192.168.1.200/ctrl.cgi?secret=abc...=0&value=0 I have the answer : {"code":-2,"status":"http not open"} When I am trying : http://192.168.1.200/ctrl.cgi?secret=abc...=0&value=0 I have the answer : { "outputs": [0, 0, 0, 0, 0, 0, 0, 0], "status": "success", "code": 0 } RE: Issue with http request - Says http not open - fabien1506 - 12-29-2024 Hello, Yes ok I got that, but my main issue was that I was unable to read the Inputs : When I am trying : http://192.168.1.200/ctrl.cgi?secret=abcd&cmd=get_inputs&id=0&value=0 I have the answer : {"code":-2,"status":"http not open"} When I am trying : http://192.168.1.200/ctrl.cgi?secret=abcd&cmd=get_outputs&id=0&value=0 I have the answer : { "outputs": [0, 0, 0, 0, 0, 0, 0, 0], "status": "success", "code": 0 } Thanks. RE: Issue with http request - Says http not open - admin - 12-30-2024 i have tested the newest firmware V2.2.10, it's work well, make sure, you can replaced your actually ip address of your KC868-A8 board. |