Hi,
Are you sure the problem is really a software problem and not a hardware problem. Frequency converts are notorious EMV bombs (I had lots of problems with a standard Microprocessor based system when the frequency converters close to the PCB ran at almost full speed. My solution was to install the microprocessor in a metal box with the case connected to ground). Also make sure you use shielded cables for you serial network.
Show us the code. Using inputbin/inkey shouldn't make any real difference, also maybe try testing a minimal program that just reads from the RS485 network and dumps to a second serial port.
Also what RS485 driver chip are you using?
Regards
Ian Dobson
↧