Woutrrr / Omnik-Data-Logger

Data logger for Omnik Solar Inverters
GNU General Public License v3.0
40 stars 42 forks source link

Port 8899 : [Errno 111] Connection refused #5

Closed micromys closed 11 years ago

micromys commented 11 years ago

Opening on port 8899 does give a connection refused. Scanning my (internal build-in) WIFI does not seem to have a port 8899 (only port 80)

Woutrrr commented 11 years ago

Could you post the result of a scan with nmap (http://nmap.org/) ?

Another thing you should try if you have a smartphone, is check if the 'manual mode' in the Omnik App works.

micromys commented 11 years ago

Smartphone Manual Mode : no reaction, no data,

My Omnik has IP-address 10.0.1.208 Scan output for 10.0.1.208, only port 80 found

Starting Nmap 6.25 ( http://nmap.org ) at 2013-05-09 09:06 W. Europe Daylight Time

NSE: Loaded 106 scripts for scanning.

NSE: Script Pre-scanning.

Initiating ARP Ping Scan at 09:06

Scanning 10.0.1.208 [1 port]

Completed ARP Ping Scan at 09:06, 0.45s elapsed (1 total hosts)

Initiating SYN Stealth Scan at 09:06

Scanning Omnik (10.0.1.208) [65535 ports]

Discovered open port 80/tcp on 10.0.1.208

Completed SYN Stealth Scan at 09:07, 41.43s elapsed (65535 total ports)

Initiating Service scan at 09:07

Scanning 1 service on Omnik (10.0.1.208)

Completed Service scan at 09:07, 6.01s elapsed (1 service on 1 host)

Initiating OS detection (try #1) against Omnik (10.0.1.208)

NSE: Script scanning 10.0.1.208.

Initiating NSE at 09:07

Completed NSE at 09:07, 0.09s elapsed

Nmap scan report for Omnik (10.0.1.208)

Host is up (0.0095s latency).

Not shown: 65534 closed ports

PORT STATE SERVICE VERSION

80/tcp open http GoAhead-Webs httpd

| http-auth:

| HTTP/1.1 401 Unauthorized

|_ Basic realm=GoAhead

|_http-methods: No Allow or Public header in OPTIONS response (status code 400)

|_http-title: Document Error: Unauthorized

MAC Address: AC:CF:23:10:53:5B (Unknown)

Device type: general purpose

Running: Linux 2.6.X

OS CPE: cpe:/o:linux:linux_kernel:2.6

OS details: Linux 2.6.13 - 2.6.32

Uptime guess: 0.115 days (since Thu May 09 06:21:03 2013)

Network Distance: 1 hop

TCP Sequence Prediction: Difficulty=201 (Good luck!)

IP ID Sequence Generation: All zeros

TRACEROUTE

HOP RTT ADDRESS

1 9.47 ms Omnik (10.0.1.208)

NSE: Script Post-scanning.

Read data files from: P:\Program Files\nmap

OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .

Nmap done: 1 IP address (1 host up) scanned in 51.74 seconds

       Raw packets sent: 65947 (2.902MB) | Rcvd: 65790 (2.632MB)
Woutrrr commented 11 years ago

Could you post some information about your inverter? Type of inverter, version of the wifimodule?

And you say you have a build-in wifi module, is this module build into the available slot at the bottom of the inverter?

micromys commented 11 years ago

Inverter 4K-TL, s/n 601......, WIFI-module is build in the slot at the botton, version 3.29.10He. System is operational since 30/11/2012.

Woutrrr commented 11 years ago

Maybe it's not supported by version 3. My module has a version 4.01.9 and does support 'manual mode'.

And because this script uses the same method as the Omnik App's 'Manual mode' , you should try to get that working first. I don't know if you can do a firmware upgrade or something. So my advice is to contract either Omnik support or try the Omnik forums (http://www.omnik-solar.com/faq/).

micromys commented 11 years ago

What wifi s/n you have?

Info from supplier

" Omtrent de nieuwe firmware even wat meer info (kreeg ik gisteren van Omnik): De firmware update is bedoeld voor de nieuwe WiFi modules (de serienummers van deze nieuwe WiFi modules beginnen met 602 of 0602). Deze modules hebben soms het probleem dat de netwerkinstellingen verloren gaan en de modules vervolgens opnieuw ingesteld moeten worden. Met het updaten van de firmware wordt het probleem opgelost.

Direct monitoring wordt alleen door de nieuwe WiFi modules ondersteund (serienummer beginnend met 0602 of 602). De nieuwe modules blijven ook na het koppelen met de locale router als AP point zichtbaar en kan de module ook direct worden benaderd. Wij hebben hier nog een 601tje, heb er net mee zitten experimenteren, maar ik krijg het ook met firmware update niet voor elkaar om de data direct uit te lezen. Ik vrees dat de enigste optie is om er een 602tje in te zetten. "

I assume you can read dutch.

Woutrrr commented 11 years ago

You are right, I can read Dutch. But I will keep it in English for people who can't read Dutch.

My s/n begins with 602. And they basically say that only versions with a s/n beginning with 602 can use direct monitoring. This sounds like a hardware limitation, so there is nothing we can do about it. The only thing I can think of is complaning/asking for a firmware upgrade for the 601 versions.

micromys commented 11 years ago

Today I replaced the WIFI module with one with proper firmware and S/N 602...., scanned the network for port 8899, re-installed your last version and it is up and running. Thanks.

micromys commented 11 years ago

By the way where did you find the description of the sendstring and the layout of the data returned from the inverter.

Woutrrr commented 11 years ago

Nice to hear everything is running now.

I decoded the data of the inverter response with excel and some screenshots of the app in manual mode. And I found the sendstring by comparing strings from several users.

micromys commented 11 years ago

Thanks, look at https://github.com/micromys/Omnik for the PHP version