I am able to get data when i am directly connected to gauge using hyperterminal, but I do not get readable data through logger. My setup is as follows:
gauge(9600,E,8,1) to (rs485port)MD485(CSi/o) to (CSi/o)CR1000
Public gaugeData As String * 200
BeginProg
SerialOpen (ComSD7,9600,0,0,2000)
Scan (15,Sec,3,0)
SerialIn (gaugeData,ComSD7,200,13,80)
NextScan
EndProg
DevConfig for MD485:
Active Port: rs-485 and csi/o
Protocol Configuration : transparent
rs-485 baud rate: 9600
example of NMEA message from gauge directly connected: $PCAER,MIS,d1,d2,d3,d4,d5,d6,f7,d8,d9,d10,d11,d12,d13,f14
Message I am getting using config/code described above:
........N......$.........a.........
Is it my config? the code? do i need anything else?
ANY input is appreciated.
You state that the gauge uses 9600/E/8/1.
Do you have the parity of the RS485 port of the MD485 set to "Even"?
If that doesn't do the trick you can try a format that does not support "concurrent Pakbus" such as:
SerialOpen (ComSD7,9600,2,0,2000)