RS232 big problem! Really need help
lattanzi
Posts: 22
Hi guys...i'm in real trouble. Here's the situation: I have to control a MV-40F quad split.
Here's what the datasheet says:
Baud rate 9600
Data bits I
Start bit 1
Stop bit 1
Parity None
X parameter( flowc ontrol) None
Synchronization Star t-stop( asynchro nous)
Here's my ONLINE EVENT:
But nothing happens...what's wrong?
Please help!!!
Here's what the datasheet says:
Baud rate 9600
Data bits I
Start bit 1
Stop bit 1
Parity None
X parameter( flowc ontrol) None
Synchronization Star t-stop( asynchro nous)
Here's my ONLINE EVENT:
ONLINE: { SEND_COMMAND DATA.DEVICE,'SET BAUD 9600,N,8,1 485 DISABLE' SEND_COMMAND DATA.DEVICE,'HSOFF' SEND_COMMAND DATA.DEVICE,'XOFF' }
But nothing happens...what's wrong?
Please help!!!
0
Comments
Do you have any other code to look at?
--D
Jeff
It's 8, you're right...sorry.
In the string event i receive the same string i've sent...seems like an echo. I should receive an ACK or a NACK instead. The only thing i would like to know now is: shoul i use a differente onlinw event?
Without knowing a bit more about the box - ie pinouts, I suggest you start a terminal session using, say, Hyperterminal and prove a few things with your existing cabling.
Force 9600,n,8,1 on a serial port and issue the exact string you are trying to send from NetLinx.
See what you get in terminal. Check the manual for error responses - ie if your outbound string is not formatted correctly does it ignore you, NACK you, or return the invalid string to you. Some boxes do this.
If the manual says it only NACKs - regardless of the 'correctness' of your outbound string and you get your string back, perhaps check your cabling.
Report back with your findings if you like
Use the following data event if you are using standard RS232:
ONLINE:
{
SEND_COMMAND DATA.DEVICE,'SET BAUD 9600,N,8,1'
}
Using the 485 Disable modifier makes the output RS422 as I remember.
it does?
In the past i post a tread with a tip to find the TXD and RXD line on a serial port.
see thread 1052.
232 and 422 are available simultaneously (except when in 485) mode. They each have unique pins on the connector. 232 uses 2,3,5,7,8 and 422 uses 1,4,5,6,9.
--D
So 232 should always function, regardless of what the 485 mode is. If 485 is disabled, the TX+ and TX- pins are always enabled. If 485 is enabled, the TX+ and TX- pins are not always enabled.
You should not have 232 and 422/485 receive pins BOTH connected to equipment, as they both feed into the same receiver circuits. There will not be any physical damage if they are both connected, just that the data can be erroneously received if both equipment transmit simultaneously.
Chuck