-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GoHeishaMon crashes when writing to /dev/ttyUSB0 #26
Comments
LuCi kernel log
|
Turned out that pl2303 usb-serial module is too old for the updated chip in my CZ_TAW1. New chip requires support for 23a3 product id which has been added in 5.x kernel series. @lsochanowski: I'll be happy to make new CZ_TAW1 working and I have few questons:
|
Hello, I have exactly the same error message o newly-bought cz-taw1 as burt2902 I'm also interested with answer to above questions or any other suggestions how this could be fixed.Sun Dec 4 14:44:56 2022 user.emerg syslog: panic: runtime error: invalid memory address or nil pointer dereference === |
Any progress on this issue? New cz-taw1 devices do not work with current version. |
Hello i've ocerlooked that now i'am processing the issue ;) |
Thanks! I hope this is easy fix. |
ok like you all say , we need to upgrade the core system , (openwrt) , i don't have new system , we need to extract it in the way we do it before (by locing upgrade mechanism and let orginal taw to download file but not to install ) when we get it we can replace wrt here in repo |
https://github.com/lsochanowski/GoHeishaMon/tree/NoWebSerwerButtonsAndLED/OS < here is whole openwrt we use today problem is i don't have the pump or taw anymore we need someone with that hardware to process the case |
How can we help? I have new cz-taw1 with pump. Can you give instructions how to download taw from device? |
@lsochanowski ,@sauliuslt , here is kernel : https://www.mediafire.com/file/5ray9x0d70gjytu/openwrt-ar71xx-generic-cus531-16M-kernel.bin/file , and filesystem: https://www.mediafire.com/file/gaqaqff8h9u3jak/openwrt-ar71xx-generic-cus531-16M-rootfs-squashfs.bin/file |
What is showing "cat /sys/kernel/debug/usb/devices" command:? , since at my it is: T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1 T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 4 T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 |
I cannot access device via ssh, only luci web admin is working for me. |
Here is the newest orginal fw with a2wmain version 04.01.03 : https://www.mediafire.com/file/9z3ewl5g1aqqgk0/download_file.tgz/file You can try to flash it , it will be orginal FW , if this will work with Service Cloud (connecting ,ect) , then it is included new drivers ,case will be only to upload GoHeishaMon there instead a2wmain.... |
Uploaded this FW and it works perfectly. |
You uploaded it with sysupgrade as well (so booth files ) and Smart/Service Cloud works perfectly , or you upload only Kernel file with GoHeishamon sysupgrade file , and GoHeishamon works perfectly ?:) |
I uploaded both files from your archive file and smart could works fine. |
Probably this not helps.... |
on it @MiG-41 |
fixed @MiG-41 |
@lsochanowski maybe you are ale to update all files from nawet orginal squash file? Since i update only pl2303.ko (hoping that this will be ok,but to be sure would be better to update all... |
Anyway i tried newest 1.0.187 from @lsochanowski , and it run's ( so at least it will not stuck). It has changed/updated driver for pl2303 , so there is a chance ,that will ork , so @sauliuslt ,please try it. |
Uploaded latest files, but i don't see any messages. I suspect it did not read config file because after flashing FW white LED was solid and never turned off as in previous versions. I still cannot ssh " Connection refused" so i cannot check any logs. |
Any advice on this issue? I wonder why ssh connection is refused? |
@sauliuslt, you need to have ssh server enabled but it is disabled until you perform a first boot procedure. Luckily, there is a way to spawn the ssh server via MQTT as I have described here. Make sure goheishamon is running and sending/responding to MQTT commands. Since it was crashing for me due to lack of /dev/ttyUSB0, I had to modify the config file and change the device to /dev/ttyS0 first. Hope this lets you move forward. |
Try this one: https://www.mediafire.com/file/c2ac2ls56fhzxbz/GoHeishaMon1.1.191z166.zip/file |
Thank you for getting the kernel updated to support PL23a3. PS: I will wait with closing the issue until there is an official release containing this change. I believe it would also make sense to update README.md to point at a release supporting newest CZ_TAW1 hardware. |
@burt2902 so i understand ,that ou test it and it is working On your CZ-TAW1, have mqtt topics ,ect ? |
Yes, confirming that the issue is fixed with the kernel that properly handles 23a3 USB serial chip |
Same problem with me. Did you solve it? |
GoHeishaMon 1.0.166 successfully installed on CZ_TAW1 with the following changes to the default config:
Mosquitto server running on 192.168.1.2 receives all messages from other clients but receives only one connection attempt from GoHeishaMon-Pub client and no messages. The only connection attempt happens soon after each CZ_TAW1 reboot.
LuCi is accessible. System log indicates a crash...
Furthermore, the same system log does not indicate creation of /dev/ttyUSB0 device.
The crash doesn't occur if GoHeishaMonConfig.new Device is set to "/dev/ttyS0" which exists.
CZ_TAW1 hardware update requiring a different USB serial kernel driver?
The text was updated successfully, but these errors were encountered: