Open Bigleby opened 4 years ago
Also experiencing a similar issue on linux mint.
I'm having the same issue on Windows 10. I insert COM3 into the port window but can't press close and it doesn't seem to have an effect. I still get the port not open error.
As a workaround, you can edit the lib\hm310.js file and change line 18 to be: this.client.connectRTUBuffered("COM10", {baudRate: this.options.baudRate}, error => { Where "COM10" is whatever port is connected to the HM310P.
same issue on MacOS (10.15.6 Catalina) and Windows 10 can't find hm310.js anywhere, on Windows neither file does a real installation. HM310P-Setup-1.0.0.exe starts an install and launches the program at the end. No installation, no question about the destination...
Thanks @MikeInMinnesota I was able to get it to work with your instructions.
@mmielck here's a step-by-step:
To change the hm310.js you have to clone the repository to your computer (or go to Code > Download ZIP) and then on your computer navigate to the folder and change the COM port in the file (you can just use any text editor).
Make sure you have NodeJS/NPM installed (https://nodejs.org/en/)
Make sure you have Node GYP installed (https://github.com/nodejs/node-gyp#on-windows)
From the windows command line navigate to the cloned repo on your computer and enter npm install
Then run the program with npm start
yep, i'm stupid... now it works, on my Mac with Catalina, great!!! :)
OK, I think the original problem is that line 23 of settings.html should be a relative path. Change settings.html line 23 from: require('settings.js'); To: require('./settings.js');
And then the close button will work. I see some strangeness if you set the port to be the same as the current open port because the port doesn't get closed first so it gets into a opening exception loop, but that's a different issue.
OK, I think the original problem is that line 23 of settings.html should be a relative path. Change settings.html line 23 from: require('settings.js'); To: require('./settings.js');
@MikeInMinnesota would it be possible for you to upload a fixed Windows runtime version? I'm to stupid to build it self 😢 You would male me very happy if you would be so nice!
Thank you very much!
TinkerBarn
OK, I think the original problem is that line 23 of settings.html should be a relative path. Change settings.html line 23 from: require('settings.js'); To: require('./settings.js');
@MikeInMinnesota would it be possible for you to upload a fixed Windows runtime version? I'm to stupid to build it self 😢 You would male me very happy if you would be so nice!
Thank you very much!
TinkerBarn
https://github.com/LOENS2/hanmatek-hm310p/releases Here's my fork. It's working now.
Hallo das Netzteil ist an sich super, aber mit dem Programm bin ich völlig hilflos. Erst konnte ich den COM-Port nicht eingeben. Hab dann über den Link von LOENS2 das neuen Programm geladen. Jetzt wird der Port wohl zwar abgespeichert (zumindest reagiert nun der Button), aber es geht ein Fenster mit einem Haufen Fehlermeldungen auf. Würde gerne eine PDF einfügen, weiß aber nicht wie. Kann jemand helfen damit das Programm auf COM5 läuft? Das OriginalProgramm vom Hersteller ist zwar SEHR einfach (ohne Speichertasten etc) aber geht mit COM5. Liegt also nicht an der Verbindung. Danke Euch und ein schönes Weihnachten Bleibt gesund
Hallo @Alter-Sachse, die Fehlermeldung hat nichts zu bedeuten. Die kommt bei mir auch. Der Port wird aber gespeichert und das Netzteil funktioniert, zumindest bei mir. Beim PDF einfügen kann ich dir leider nicht helfen. Für COM5 musst du bei port "COM5" eintippen, damit es funktioniert.
yep, i'm stupid... now it works, on my Mac with Catalina, great!!! :)
I have this issue on Big Sur, and going back to Catalina is no option. I think this could be solved by adding the port to the Preference file located in ˜/Library/Application Support/hanmatek-hm310p
Can you show me the contents of that file so I can see the naming and build up?
thanks
any other solutions are welcome as well
For the compiled Mac version I found the following solution/workaround after reading here, that "require('settings.js');" needs to be changed to "require('./settings.js');" You will need a hex editor to do this. I used iHex.
Open the file "/Applications/HM310P.app/Contents/Resources/app.asar" with the hex editor.
At offset 925657 replace the following 22 bytes:
20207265 71756972 65282773 65747469 6E67732E 6A73
with this:
72657175 69726528 272E2F73 65747469 6E67732E 6A73
In ASCII it will replace this:
" require('settings.js"
with this:
"require('./settings.js"
Please note the 2 spaces (2020 in hex) at the beginning of the original string.
Save the file. After that launch the app and open Tools > Settings. It should now allow you to save the serial port.
There is still a bug in the app which I could not solve with the patch above: When you open the settings panel later, then the path to the serial port will be empty and you have to enter the serial port again. But, if you then enter the path to the serial port correctly, the app will work again.
Hello,
Software runs great thank you, however when I export the CSV file the timestamps are not correct. Does anyone know how to change fix this and also change the frequency of data points.
Cheers!
I'm having the same issue on Windows 10. I insert COM3 into the port window but can't press close and it doesn't seem to have an effect. I still get the port not open error.
Did you solved it?
You can download a fixed Windows version from the fork of LOENS2. Just scroll up in this thread: comment from LOENS2 from 6 Nov 2020
Hello,
i just downloaded the Version 1.0.0. I tried the Installer and the Application as well. I can insert the value but the close button don´t work.
Best regards