Hello.
I've run out of ideas to get my current project running and hope someone else might be able to give me some ideas. Im fairly familiar with the Picaxe system and don't usually have this level of frustration.
The project - I need to retrieve a single data byte from a solar regulator to keep it in sync with another battery charging device. The regulator uses Modbus at 9600 via RS233.
I can send the required 8 byte string to the regulator and get the correct 7 byte answer back while using the terminal window within the editor program, via an Aten USB to RS232 converter, so I know the data strings and the CRCs are correct.
However. When I connect up my 14M2 and use the serout and serin commands at T9600 I don't get an answer back. Am connecting the Picaxe to the regulator via TTL to RS 232 converter. If I plug the out put of this converter into another computer via its RS232 connection I see the correct string being sent so I'm assuming that the serout command is working properly and that the serin command might be the culprit. I've got the serin command directly after the serout command.
So before I throw it at the wall has anyone got any ideas? Would be greatfull for any advice.
I've run out of ideas to get my current project running and hope someone else might be able to give me some ideas. Im fairly familiar with the Picaxe system and don't usually have this level of frustration.
The project - I need to retrieve a single data byte from a solar regulator to keep it in sync with another battery charging device. The regulator uses Modbus at 9600 via RS233.
I can send the required 8 byte string to the regulator and get the correct 7 byte answer back while using the terminal window within the editor program, via an Aten USB to RS232 converter, so I know the data strings and the CRCs are correct.
However. When I connect up my 14M2 and use the serout and serin commands at T9600 I don't get an answer back. Am connecting the Picaxe to the regulator via TTL to RS 232 converter. If I plug the out put of this converter into another computer via its RS232 connection I see the correct string being sent so I'm assuming that the serout command is working properly and that the serin command might be the culprit. I've got the serin command directly after the serout command.
So before I throw it at the wall has anyone got any ideas? Would be greatfull for any advice.