Skip to content

Can't connect to TCP #5

@dfein38347g

Description

@dfein38347g

I have channel B of this RS485 adapter (https://www.waveshare.com/2-ch-rs485-to-eth-b.htm) connected to between the CCA and the TAPs as described. However, I'm not able to make a connection with taptap. Please see my settings for the RS485 adapter and the results when I try to connect.

┌─────────────────────────────────────┐ ┌────────────────────────────┐
│ CCA │ │ TAP │
│ │ │ │
│ AUX RS485-1 GATEWAY RS485-2 POWER│ │ ┌~┐ │
│┌─┬─┐ ┌─┬─┬─┐ ┌─┬─┬─┬─┐ ┌─┬─┬─┐ ┌─┬─┐│ │ ┌─┬─┬─┬─┐ ┌─┬─┬│┬│┐ │
││/│_│ │-│B│A│ │-│+│B│A│ │-│B│A│ │-│+││ │ │-│+│B│A│ │-│+│B│A│ │
│└─┴─┘ └─┴─┴─┘ └│┴│┴│┴│┘ └─┴─┴─┘ └─┴─┘│ │ └│┴│┴│┴│┘ └─┴─┴─┴─┘ │
└───────────────│─│─│─│───────────────┘ └────│─│─│─│─────────────────┘
│ │ │ │ │ │ │ │
│ │ │ ┃───────────────────────────│─│─│─┘
│ │ ┃─┃───────────────────────────│─│─┘
│ └─┃─┃───────────────────────────│─┘
┃───┃─┃───────────────────────────┘
┗━┓ ┃ ┃
┌───┃─┃─┃───┐
│ ┌┃┬┃┬┃┐ │
│ │-│B│A│ │
│ └─┴─┴─┘ │
│ Monitor │
└───────────┘

Image

nathan@dockervm:/taptap$ ./target/release/taptap observe --tcp 192.168.0.185
[2025-02-04T20:18:28Z ERROR taptap] error opening source: Connection refused (os error 111)
nathan@dockervm:
/taptap$ ./target/release/taptap observe
error: the following required arguments were not provided:
<--serial |--tcp |--port >

Usage: taptap observe <--serial |--tcp |--port >

For more information, try '--help'.
nathan@dockervm:~/taptap$ ./target/release/taptap observe --tcp 192.168.0.185 --port 502
error: the argument '--tcp ' cannot be used with '--port '

Usage: taptap observe <--serial |--tcp |--port >

For more information, try '--help'.
nathan@dockervm:/taptap$ ./target/release/taptap observe --port 502
thread 'main' panicked at src/main.rs:101:17:
a source must be specified
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
nathan@dockervm:
/taptap$ ./target/release/taptap observe --port 502
thread 'main' panicked at src/main.rs:101:17:
a source must be specified
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
nathan@dockervm:~/taptap$ ./target/release/taptap observe --tcp 192.168.0.185 --port 502
error: the argument '--tcp ' cannot be used with '--port '

Usage: taptap observe <--serial |--tcp |--port >

For more information, try '--help'.
nathan@dockervm:/taptap$ ./target/release/taptap observe --tcp 192.168.0.185
[2025-02-04T20:19:19Z ERROR taptap] error opening source: Connection refused (os error 111)
nathan@dockervm:
/taptap$ sudo ./target/release/taptap observe --tcp 192.168.0.185
[2025-02-04T20:19:29Z ERROR taptap] error opening source: Connection refused (os error 111)
nathan@dockervm:~/taptap$ ping 192.168.0.185
PING 192.168.0.185 (192.168.0.185) 56(84) bytes of data.
64 bytes from 192.168.0.185: icmp_seq=1 ttl=64 time=0.804 ms
^C
--- 192.168.0.185 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.804/0.804/0.804/0.000 ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions