Just to give you an update...
I have not had as much time to work on this I would have liked.
Here is the good news.
I can setup the module to work as a serial connection to the Arduino and talk to it over either wifi or ethernet. This is pretty good going and allows me to use these modules as connected sensors. Not only that they can extend my home wireless network as well! The Serial that they create can be spoken to using a TCP connection. So i can talk to the Arduino using Putty (As a raw connection type)
What is really cool is that I can use this HW VSP - Virtual Serial Port Application to create a Virtual Com Port that I can then talk to through a serial terminal (for instance the one in the Arduino environment)
Now for the bad news.
When pronterface (for that is what I use) connects to the printer it attempts to connect to the Arduino. As far as I can tell it expects the CTS or RTS lines to reset the Arduino and then runs some sort of handshake with the Marlin Firmware. And here i think lies the problem. The serial connection on the HLK-RM04 is a simple affair. It only has RX and TX output on its 1st serial. The documentation hints that there is a second full port. But I have not managed to interface with it so far. It is possible that it is not supported in the firm ware. There is certainly no settings exposed in the web interface that you use to set up the HLK-RM04. Therefore it never got beyond the "Connecting" dialogue. :(
Unfortunately i dont know Python at all. I have scanned the code, but i can't work out how pronterface decides that it is connected or otherwise to the Arduino. It may be possible to reconfigure it so that it checks the connection differently to the printer.
I have been focussing on trying to reset an Arduino remotely so that it can be programmed wirelessly. I have managed to get it to reset a couple of times when sending long strings of text to it when I have the reset connected to pin 9 on the HLK-RM04. Pin 9 (Documented as GPIO1) i had hoped would be the DTR pin, not sure it is though. Might just be a fluke.
There does seem to be some progress with the guys who are trying to run openwrt. They look like they have a partially functioning port. The bit that definitely is not working for them is the second (full) serial port. ie the one that i want to connect to the Arduino! I will keep watching their progress.
I have not had as much time to work on this I would have liked.
Here is the good news.
I can setup the module to work as a serial connection to the Arduino and talk to it over either wifi or ethernet. This is pretty good going and allows me to use these modules as connected sensors. Not only that they can extend my home wireless network as well! The Serial that they create can be spoken to using a TCP connection. So i can talk to the Arduino using Putty (As a raw connection type)
What is really cool is that I can use this HW VSP - Virtual Serial Port Application to create a Virtual Com Port that I can then talk to through a serial terminal (for instance the one in the Arduino environment)
Now for the bad news.
When pronterface (for that is what I use) connects to the printer it attempts to connect to the Arduino. As far as I can tell it expects the CTS or RTS lines to reset the Arduino and then runs some sort of handshake with the Marlin Firmware. And here i think lies the problem. The serial connection on the HLK-RM04 is a simple affair. It only has RX and TX output on its 1st serial. The documentation hints that there is a second full port. But I have not managed to interface with it so far. It is possible that it is not supported in the firm ware. There is certainly no settings exposed in the web interface that you use to set up the HLK-RM04. Therefore it never got beyond the "Connecting" dialogue. :(
Unfortunately i dont know Python at all. I have scanned the code, but i can't work out how pronterface decides that it is connected or otherwise to the Arduino. It may be possible to reconfigure it so that it checks the connection differently to the printer.
I have been focussing on trying to reset an Arduino remotely so that it can be programmed wirelessly. I have managed to get it to reset a couple of times when sending long strings of text to it when I have the reset connected to pin 9 on the HLK-RM04. Pin 9 (Documented as GPIO1) i had hoped would be the DTR pin, not sure it is though. Might just be a fluke.
There does seem to be some progress with the guys who are trying to run openwrt. They look like they have a partially functioning port. The bit that definitely is not working for them is the second (full) serial port. ie the one that i want to connect to the Arduino! I will keep watching their progress.