dh1tw / remoteRotator

remoteRotator lets you expose a local antenna rotator (azimuth / elevation) to the network
MIT License
44 stars 5 forks source link

Yaesu G-5500 #3

Closed UW5EJA closed 4 years ago

UW5EJA commented 6 years ago

Hello Tobias.

RemoteRotator is great idea, interesting and user-friendly program. But when I run remoteRotator in Windows XP or Windows 8 after 30 seconds, I get the error:

"serial port read error <'Rotator on COM3'>: multiple Read calls return no data or error panic: close of nil channel"

Could you please solve this problem?

I use version 0.4.1. Thank you!

remoterotator

dh1tw commented 6 years ago

Hi, Can you give me some more background information on your setup?

Tnx Tobias

UW5EJA commented 6 years ago

Hello Tobias.

I am using "ERC-M USB and RS232" with two option: connect physical COM1 or virtual COM (COM3 - Windows 8, COM4 - Windows XP).

First, I have run "remoteRotetor server lan" in Windows XP and got an error "serial port read error (COM1)....." Soon after that, I launched Ham Radio Deluxe, which successfully connected to COM1 and virtual too.

When I started "remoteRotator.exe web" I got another error "[ERR] mdns: Failed to bind to udp6 port [ff02::]:353: socket: Address incompatible with requested protocol"

How can I to check if there is a data exchange between remoteRotator and COMx?

Thank you! With the best regards Victor

dh1tw commented 6 years ago

Hi Victor,

let's try to solve the easy things first: Can you try running remoteRotator.exe web on the Windows8 machine? The mDNS library I'm using requires unfortunately a IPv6 stack, which WindowsXP probably doesn't have. Windows8 on the other hand should have an IPv6 stack build in.

wrt to the "serial port read error": I saw on the website of the ERC that ERC supports basically 3 protocols:

In order to communicate directly with the rotator, you can open a serial console using putty. You can find the commands for talking to the ERC (via the GS232A/B protocol) for example here.

But if other applications (like HRD or Simplesat) can talk on the same machine directly with the ERC, the problem might be somewhere in my code.

hw?

73 Tobias

UW5EJA commented 6 years ago

Hello Todias.

In Windows 8 was the similar error. After the launch "remote Rotator web" in the browser was only "Searching for rotators...".

I launched remoteRotator in Ubuntu 14.04 and it`s working well. Thank you!

I wrote flag "--discovery-enabled", but after running remoteRotator I saw in command line: "discovery disabled; the HTTP server must listen on an accessible network interface" What does it mean?

73! Victor

dh1tw commented 6 years ago

Hi Victor,

that means that you are listening on localhost only. You should listen on external network interfaces, e.g. 0.0.0.0 for all interfaces.

If you enable discovery and listen on all interfaces, then the rotator should also be detected properly on other instances.

hw?

73 Tobias

UW5EJA commented 6 years ago

Hi Tobias,

Thank you. When I added flag -w 0.0.0.0 I was able to connect from a local network.

Сould I specify a few IP addresses or only choose 127.0.0.1 / 0.0.0.0" ? I read about access to remoteRotator with authentication in Wiki "Expose remoteRotator to the Internet" - This is a great feature.

73! With the best regards Victor

dh1tw commented 6 years ago

by listening on 0.0.0.0 you are automatically listening on all interfaces. If you would like to limit it to a particular address (in the unlikely case that your computer has two network cards and is connected to two different networks), you could specify one particular interface e.g. 192.168.1.30...

Does that help?

73 Tobias

UW5EJA commented 6 years ago

Hi Tobias.

Just wanted to ask you if this is possible. Thanks for the answer. I think that the Caddy web server with authentication is an excellent solution.

With the best regards! Victor

dh1tw commented 4 years ago

Hi @UW5EJA,

my apologies that it took so long to create a new release. I have fixed the windows problems - although support for WindowsXP has been removed, but it will work fine for > Windows 7. You can download the latest release from the release page.

Feel free to re-open this issue if remoteRotator doesn't work as expected.