Trying to communicate with Chinese 8IN8OUT device

Forum Home Forums Communicating with Devices Modbus Trying to communicate with Chinese 8IN8OUT device

Tagged: 

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #3787
    IvicaD
    Participant

    I’m trying to communicate with Chinese controller bought from Aliexpress. I managed to read input status, write coils and read coil status from Cas modbus scanner and Modbus Poll but no luck communicating with the Rapid SCADA communicator.
    I have followed the Youtube tutorial but still no luck.

    Here is the answer from the communicator log:

    2018-06-03 11:17:27 Communication session with the Device 61 “8IN8OUT Controller”, type: KpModbus, address: 1, call number: 192.168.0.105
    Request element group “Inputs”
    Send (12): 00 00 00 00 00 06 01 02 00 20 00 08
    Receive (7/7): 48 48 43 2D 4E 2D 38
    Incorrect MBAP Header data!
    Request element group “Inputs”
    Send (12): 00 00 00 00 00 06 01 02 00 20 00 08
    Receive (7/7): 49 38 4F 00 00 00 00
    Incorrect MBAP Header data!
    Request element group “Inputs”
    Send (12): 00 00 00 00 00 06 01 02 00 20 00 08
    Receive (7/7): 00 04 01 02 01 00 00
    Incorrect MBAP Header data!

    The following is the Poll and the answer from CAS mobus scanner:

    [11:20:13] <= Response: 01 02 01 00
    [11:20:13] => Poll: 01 02 00 20 00 08
    [11:20:12] Recv error – Unknown
    [11:20:10] <= Response: 38 49 38 4F 00 02 00 00 00 04 01 02 01 00
    [11:20:10] => Poll: 01 02 00 20 00 08

    What am I doing wrong?

    #3788
    IvicaD
    Participant

    This is what I recieve when I switch to Modbus RTU:

    2018-06-03 11:28:10 Communication session with the Device 61 “8IN8OUT Controller”, type: KpModbus, address: 1, call number: 192.168.0.105
    Request element group “Inputs”
    Send (8): 01 02 00 20 00 08 78 06
    Receive (5/5): 48 48 43 2D 4E
    Incorrect device address!
    Request element group “Inputs”
    Send (8): 01 02 00 20 00 08 78 06
    Receive (5/5): 2D 38 49 38 4F
    Incorrect device address!
    Request element group “Inputs”
    Send (8): 01 02 00 20 00 08 78 06
    Receive (0/5):
    Communication error!

    2018-06-03 11:28:13 Disconnect from 192.168.0.105

    2018-06-03 11:28:13 Stop communication line 6 “ModbusPRC”

    #3789
    manjey73
    Participant

    What exactly do you use from the Chinese site ?
    On AliExpress was not a description of the registers ?

    #3790
    IvicaD
    Participant

    I managed to figure out the registers. Coils are at 16-23 and inputs are at 32-39.

    #3791
    manjey73
    Participant

    Give a link to the device you purchased on AliExpress

    When connecting via RTU, you are informed that the address does not match

    #3792
    IvicaD
    Participant
    #3793
    manjey73
    Participant

    Given the Ethernet module used, it can be assumed that there is no Modbus TCP but Modbus RTU on top of TCP. It is a relay not come across live.

    #3795
    Mikhail
    Moderator

    Seems, you do everything right.
    Is there any controller manual with request-response examples?

    #3796
    Mikhail
    Moderator

    Even if you poll incorrect registers, the device must answer meaningful error package.

    #3800
    IvicaD
    Participant

    Unfortunately there is not such documentation. It is probably faulty device or not a standard Modbus.

    #3801
    manjey73
    Participant

    The description indicates that the relay must be sent ON1 to be switched on. I can assume that this is the name of the button but the screens Chinese characters. Write to the sellers of this Board, or follow the links, maybe they have this program in English. If I’m right, then put this program you can use the tracking programs and see what are the parcels in the Protocol.

    The Chinese may be deceiving, saying that there Modbus TCP. I was afraid to buy a Board without a description in my time. I chose the one where the list of registers for management was given.

    • This reply was modified 5 years, 9 months ago by manjey73.
    #3803
    manjey73
    Participant

    Check if this Board has a WEB interface ?

    #3804
    IvicaD
    Participant

    That is a good idea! I tried it on port 80, but I plan to scan the ports.

    #3805
    manjey73
    Participant

    Programm

    The link at the bottom has links to but in Chinese. There will be question marks instead of characters

    #4569
    DaveRodda
    Participant

    8 way 10A relay controller, with normally open and normally closed output. 8 way switch input. Can be used for intelligent home control, can be used for the two development of mobile phone or computer remote control electric lights, motors, and other electrical equipment. Can also be used for the detection of power outages in the room, can be connected to the human body infrared sensor, can be connected to the button switch, can be connected with smoke alarm output. Provide C++ source code. Reliable network connection, network disconnection can automatically reconnect.

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.