RS485 short reply
koozoo
Posts: 17
NI-x100 serial port using RS485 mode, remote microphone for amprefire needs very short time poling.
remote mic send to amx poling data every 60msec, amx shuold reply it before 2msec.
So after recieving RS485 date, send back data in 2msec @every 60msec . Is it possible ?
I tried following, but AMX send data about 50msec after receiving polling.
DATA_EVENT[RMC]
{
ONLINE:
{
SEND_COMMAND RMC,'SET BAUD 9600,O,7,1, 485 ENABLE'
}
STRING:
{
IF (FIND_STRING(RMC_BUF,"$80,$3D",1))
{ SEND_STRING RMC,"$70,$8F" } //POLING
}
}
Another try
DEFINE_VARIABLE
lTL_Time[1] = {20}
DEFINE_EVENT
TIMELINE_EVENT [1]
{
{ SEND_STRING RMC,"$70,$8F" } //POLING
}
DATA_EVENT [RMC]
{
STRING:
{
IF (FIND_STRING(RMC_BUF,"$80,$3D",1))
TIMELINE_CREATE(1,lTL_Time,1,TIMELINE_ABSOLUTE,TIMELINE_REPEAT)
}
}
remote mic send to amx poling data every 60msec, amx shuold reply it before 2msec.
So after recieving RS485 date, send back data in 2msec @every 60msec . Is it possible ?
I tried following, but AMX send data about 50msec after receiving polling.
DATA_EVENT[RMC]
{
ONLINE:
{
SEND_COMMAND RMC,'SET BAUD 9600,O,7,1, 485 ENABLE'
}
STRING:
{
IF (FIND_STRING(RMC_BUF,"$80,$3D",1))
{ SEND_STRING RMC,"$70,$8F" } //POLING
}
}
Another try
DEFINE_VARIABLE
lTL_Time[1] = {20}
DEFINE_EVENT
TIMELINE_EVENT [1]
{
{ SEND_STRING RMC,"$70,$8F" } //POLING
}
DATA_EVENT [RMC]
{
STRING:
{
IF (FIND_STRING(RMC_BUF,"$80,$3D",1))
TIMELINE_CREATE(1,lTL_Time,1,TIMELINE_ABSOLUTE,TIMELINE_REPEAT)
}
}
0