com.pax.dal.entity
Class ModemParam
- java.lang.Object
-
- com.pax.dal.entity.ModemParam
-
public class ModemParam extends java.lang.Object
电话线通信参数Modem param
-
-
Constructor Summary
Constructors Constructor and Description ModemParam()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetAsyncMode()获取异步通讯的速率(高4位)、字符格式(低四位), 参考setAsyncMode(int)The rate of asynchronous communication (higher 4 bit)、Character format(lower 4 bit)setAsyncMode(int)intgetChdt()是否检测拨号音, 参考setChdt(int)Check dialing tone,setChdt(int)intgetDelayTime()获取外线等待 时间get delay timeintgetDp()获取音频/脉冲拨号, 参考setDp(int)get tone/pulse dialingintgetDt1()获取摘机后等候拨号音的最长时间(单位:100ms,最小和默认值为20,合法区间:20-255)当拨号音被检测到在此期间,退出等待。The longest time to wait for dial tone when off hook (Unit: 100ms, Minimum and default value is 20, valid range 20~255).intgetDt2()获取拨外线时“,”等待时间(单位:100ms)","wait time when dial outside line (Unit: 100ms).java.lang.StringgetExtNum()获取外线号码get EXT numberintgetHt()获取双音拨号单一号码保持时间(单位:1ms,有效范围50~255)The keep time of two-tone dialing a single number (Unit:1ms,valid range 50~255)intgetLevel()获取拨号电平get dial levelintgetRedialTimes()获取循环拨号总次数Redial times,must be equal or greater than 1intgetSsetup()获取通讯字节设置,参考setSsetup(int)Communication bytes settingssetSsetup(int)java.lang.StringgetTelNo1()获取电话号码1get telephone NO.1java.lang.StringgetTelNo2()获取电话号码2get telephone NO.2java.lang.StringgetTelNo3()获取电话号码3get telephone NO.3intgetTimeout()获取超时时间There is no application-layer data exchange in specified time, MODEM then hang up.intgetWt()获取双音拨号两个号码之间的间隔时间(单位:10ms,有效范围5~25)The interval time between two-tone dial-up two numbers (Unit:10ms, valid range 5~25)booleanisDialBlocking()是否阻塞模式is dial blockingvoidsetAsyncMode(int asyncMode)异步通讯的速率(高4位)、字符格式(低四位)The rate of asynchronous communication (higher 4 bit)、Character format(lower 4 bit)voidsetChdt(int chdt)设置是否检测拨号音Check dialing tonevoidsetDelayTime(int delayTime)设置外线等待时间, ","个数set delay timevoidsetDialBlocking(boolean isDialBlocking)设置是否阻塞模式set dial blockingvoidsetDp(int dp)设置音频/脉冲拨号set tone/pulse dialingvoidsetDt1(int dt1)设置摘机后等候拨号音的最长时间(单位:100ms)最小值和缺省值为20,有效范围20~255
在此期间,只要检测到拨号音,就退出等候The longest time to wait for dial tone when off hook (Unit: 100ms, Minimum and default value is 20, valid range 20~255).voidsetDt2(int dt2)拨外线时“,”等待时间(单位:100ms)此值要根据实际应用环境的情况设定,在应用程序中最好要留出手工设置的接口。 [范围0~255]","wait time when dial outside line (Unit: 100ms).voidsetExtNum(java.lang.String extNum)设置外线号码set EXT numbervoidsetHt(int ht)双音拨号单一号码保持时间(单位:1ms,有效范围50~255)The keep time of two-tone dialing a single number (Unit:1ms,valid range 50~255)voidsetLevel(int level)设置拨号电平set dial levelvoidsetRedialTimes(int redialTimes)循环拨号总次数,若为0则被转换成1, 拨完拨号串的所有号码为一次循环 [有效范围1~255]Redial times,must be equal or greater than 1voidsetSsetup(int ssetup)通讯字节的设置Communication bytes settingsvoidsetTelNo1(java.lang.String telNo1)设置电话号码1set telephone NO.1voidsetTelNo2(java.lang.String telNo2)设置电话号码2set telephone NO.2voidsetTelNo3(java.lang.String telNo3)设置电话号码3set telephone NO.3voidsetTimeout(int timeout)规定的时间内没有应用层数据交换,MODEM则挂断,以10秒为单位,为0时无超时。支持FSK功能的机型最大值为900秒;无FSK功能机型最大值为650秒There is no application-layer data exchange in specified time, MODEM then hang up.voidsetWt(int wt)双音拨号两个号码之间的间隔时间(单位:10ms,有效范围5~25)The interval time between two-tone dial-up two numbers (Unit:10ms, valid range 5~25)
-
-
-
Constructor Detail
-
ModemParam
public ModemParam()
-
-
Method Detail
-
getTelNo1
public java.lang.String getTelNo1()
获取电话号码1get telephone NO.1- Returns:
-
setTelNo1
public void setTelNo1(java.lang.String telNo1)
设置电话号码1set telephone NO.1- Parameters:
telNo1-
-
getTelNo2
public java.lang.String getTelNo2()
获取电话号码2get telephone NO.2- Returns:
-
setTelNo2
public void setTelNo2(java.lang.String telNo2)
设置电话号码2set telephone NO.2- Parameters:
telNo2-
-
getTelNo3
public java.lang.String getTelNo3()
获取电话号码3get telephone NO.3- Returns:
-
setTelNo3
public void setTelNo3(java.lang.String telNo3)
设置电话号码3set telephone NO.3- Parameters:
telNo3-
-
getExtNum
public java.lang.String getExtNum()
获取外线号码get EXT number- Returns:
-
setExtNum
public void setExtNum(java.lang.String extNum)
设置外线号码set EXT number- Parameters:
extNum-
-
getDelayTime
public int getDelayTime()
获取外线等待 时间get delay time- Returns:
-
setDelayTime
public void setDelayTime(int delayTime)
设置外线等待时间, ","个数set delay time- Parameters:
delayTime-
-
getLevel
public int getLevel()
获取拨号电平get dial level- Returns:
-
setLevel
public void setLevel(int level)
设置拨号电平set dial level- Parameters:
level-
-
getDp
public int getDp()
获取音频/脉冲拨号, 参考setDp(int)get tone/pulse dialing- Returns:
-
setDp
public void setDp(int dp)
设置音频/脉冲拨号set tone/pulse dialing- Parameters:
dp-- 0x00 -- 双音多频拨号
- 0x01 -- 脉冲拨号方式1(脉冲速率10/s;断续比1.6:1;号间间隔>=500ms)
- 0x02 -- 脉冲拨号方式2(脉冲速率10/s;断续比2:1;号间间隔>=600ms)
- 其他 -- 保留
- 0x00 -- DTMF(Dual Tone Multi Frequency) dialing
- 0x01 -- Pulse dialing 1(Pulse rate 10/s. Intermittent proportion 1.6:1;Signal interval>=500ms)
- 0x02 -- Pulse dialing 2(Pulse rate 10/s; Intermittent proportion 2:1; Signal interval >=600ms)
- others -- Reserved
-
getChdt
public int getChdt()
是否检测拨号音, 参考setChdt(int)Check dialing tone,setChdt(int)- Returns:
-
setChdt
public void setChdt(int chdt)
设置是否检测拨号音Check dialing tone- Parameters:
chdt-- D0
- 0 -- 检测拨号音
- 1 -- 不检测拨号音
- D1
- 0 -- 主叫拨号
- 1 -- 被叫/来铃应答
- D2
- 0 -- 检测并线电话占用(主叫拨号、非发号转人工接听方式时)
- 1 -- 不检测并线电话占用(主叫拨号、非发号转人工接听方式时)
- D5
- 0 -- 被叫应用时采用AT状态报告接口
- 1 -- 被叫应用时采用PAX远程下载状态报告接口
- D6
- 0 -- 维持SSETUP之低三位表示的超时时长
- 1 -- 将SSETUP之低三位表示的超时时长加倍
- D7
- 0 -- 异步2400bps连接采用标准ITU V.22bis连接;异步1200采用非标准的快速连接
- 1 -- 异步2400bps连接采用非标准的FastConnect快速连接方式(全机型)
- 其他位 -- 保留
- D0
- 0 -- Dial tone detection
- 1 -- Does not detect dial tone
- D1
- 0 -- Caller dialing
- 1 -- Called/answer the call
- D2
- 0 -- Detect the paralleled telephone occupation (Caller dialing、No assign number switch to artificial answer mode)
- 1 -- Not detect the paralleled telephone occupation (Caller dialing、No assign number switch to artificial answer mode)
- D5
- 0 -- Report interfaces with AT status during called application
- 1 -- Report interfaces with PAX remote download status during called application
- D6
- 0 -- Keep the timeout duration which expressed by the lower three bit of SSETUP
- 1 -- Double the timeout duration which expressed by the lower three bit of SSETUP
- D7
- 0 -- 2400bps connection using standard ITU V.22bis connection; 1200bps connection using non-standard FastConnect method. For synchronous 9600bps connection, it will down to 2400/1200 non-standard FastConnection in the case of automatic speed down.
- 1 -- 2400bps connection is using non-standard FastConnect method (All the models); 1200bps connection using standard ITU V.22bis connection. For synchronous 9600bps connection, it will down to 2400/1200 non-standard FastConnection in the case of automatic speed down.
- others -- Reserved.
- D0
-
getDt1
public int getDt1()
获取摘机后等候拨号音的最长时间(单位:100ms,最小和默认值为20,合法区间:20-255)当拨号音被检测到在此期间,退出等待。The longest time to wait for dial tone when off hook (Unit: 100ms, Minimum and default value is 20, valid range 20~255). Exit waiting when the dial tone has been detected during this time- Returns:
-
setDt1
public void setDt1(int dt1)
设置摘机后等候拨号音的最长时间(单位:100ms)最小值和缺省值为20,有效范围20~255
在此期间,只要检测到拨号音,就退出等候The longest time to wait for dial tone when off hook (Unit: 100ms, Minimum and default value is 20, valid range 20~255). Exit waiting when the dial tone has been detected during this time- Parameters:
dt1-
-
getDt2
public int getDt2()
获取拨外线时“,”等待时间(单位:100ms)","wait time when dial outside line (Unit: 100ms). This value will be set up according to the actual application environment, It is better to keep interface of manually setting in the application. (range 0~255)- Returns:
-
setDt2
public void setDt2(int dt2)
拨外线时“,”等待时间(单位:100ms)此值要根据实际应用环境的情况设定,在应用程序中最好要留出手工设置的接口。 [范围0~255]","wait time when dial outside line (Unit: 100ms). This value will be set up according to the actual application environment, It is better to keep interface of manually setting in the application. (range 0~255)- Parameters:
dt2-
-
getHt
public int getHt()
获取双音拨号单一号码保持时间(单位:1ms,有效范围50~255)The keep time of two-tone dialing a single number (Unit:1ms,valid range 50~255)- Returns:
-
setHt
public void setHt(int ht)
双音拨号单一号码保持时间(单位:1ms,有效范围50~255)The keep time of two-tone dialing a single number (Unit:1ms,valid range 50~255)- Parameters:
ht-
-
getWt
public int getWt()
获取双音拨号两个号码之间的间隔时间(单位:10ms,有效范围5~25)The interval time between two-tone dial-up two numbers (Unit:10ms, valid range 5~25)- Returns:
-
setWt
public void setWt(int wt)
双音拨号两个号码之间的间隔时间(单位:10ms,有效范围5~25)The interval time between two-tone dial-up two numbers (Unit:10ms, valid range 5~25)- Parameters:
wt-
-
getSsetup
public int getSsetup()
获取通讯字节设置,参考setSsetup(int)Communication bytes settingssetSsetup(int)- Returns:
-
setSsetup
public void setSsetup(int ssetup)
通讯字节的设置Communication bytes settings- Parameters:
ssetup-- D7: 异步同步选择
- 0 -- 同步
- 1 -- 异步
- D6D5: 设置波特率
- 00 -- 1200
- 01 -- 2400
- 10 -- 9600
- 11 -- 14400
- D4D3: 线路制式(应答音检测方式)
- 10 -- BELL(仅适用于1200BPS)
- 11 -- CCITT
- 0X -- CCITT
- D2D1D0: 等待应答音的超时时间(0~7)
- 000 -- 5秒
- 001 -- 8秒
- 010 -- 11秒
- 011 -- 14秒
- 100 -- 17秒
- 101 -- 20秒
- 110 -- 23秒
- 111 -- 26秒
- D7: asynchronous synchronization options
- 0 -- synchronous
- 1 -- asynchronous
- D6D5: set the baudrate
- 00 -- 1200
- 01 -- 2400
- 10 -- 9600
- 11 -- 14400
- D4D3: line format(detection mode of answer tone)
- 10 -- BELL(only applicable to 1200BPS)
- 11 -- CCITT
- 0X -- CCITT
- D2D1D0: Waiting for the timeout of response tone (0~7)
- 000 -- 5s
- 001 -- 8s
- 010 -- 11s
- 011 -- 14s
- 100 -- 17s
- 101 -- 20s
- 110 -- 23s
- 111 -- 26s
- D7: 异步同步选择
-
getRedialTimes
public int getRedialTimes()
获取循环拨号总次数Redial times,must be equal or greater than 1- Returns:
-
setRedialTimes
public void setRedialTimes(int redialTimes)
循环拨号总次数,若为0则被转换成1, 拨完拨号串的所有号码为一次循环 [有效范围1~255]Redial times,must be equal or greater than 1- Parameters:
redialTimes-
-
getTimeout
public int getTimeout()
获取超时时间There is no application-layer data exchange in specified time, MODEM then hang up. Unit 10s, no timeout if it is 0. The maximum timeout of the model which support FSK function is 900s,and the model which has no FSK function is 650s- Returns:
-
setTimeout
public void setTimeout(int timeout)
规定的时间内没有应用层数据交换,MODEM则挂断,以10秒为单位,为0时无超时。支持FSK功能的机型最大值为900秒;无FSK功能机型最大值为650秒There is no application-layer data exchange in specified time, MODEM then hang up. Unit 10s, no timeout if it is 0. The maximum timeout of the model which support FSK function is 900s,and the model which has no FSK function is 650s- Parameters:
timeout-
-
getAsyncMode
public int getAsyncMode()
获取异步通讯的速率(高4位)、字符格式(低四位), 参考setAsyncMode(int)The rate of asynchronous communication (higher 4 bit)、Character format(lower 4 bit)setAsyncMode(int)- Returns:
-
setAsyncMode
public void setAsyncMode(int asyncMode)
异步通讯的速率(高4位)、字符格式(低四位)The rate of asynchronous communication (higher 4 bit)、Character format(lower 4 bit)- Parameters:
asyncMode-- D3D2D1D0
- 0 -- "8,n,1"
- 1 -- "8,e,1"
- 2 -- "8,o,1"
- 4 -- "7,e,1"
- 5 -- "7,o,1"
- 8 -- FSK 使用B202通信协议
- 9 -- FSK 使用V23C通信协议
- D7D6D5D4
- 0 -- 由SSETUP的D6D5位决定
- 1 -- 1200 bps
- 2 -- 2400 bps
- 3 -- 4800 bps
- 4 -- 7200 bps
- 5 -- 9600 bps
- 6 -- 12000 bps
- 7 -- 14400 bps
- 8 -- 19200 bps
- 9 -- 24000 bps
- 10 -- 26400 bps
- 11 -- 28800 bps
- 12 -- 31200 bps
- 13 -- 33600 bps
- 14 -- 48000 bps
- 15 -- 56000 bps
- D3D2D1D0
- 0 -- "8,n,1"
- 1 -- "8,e,1"
- 2 -- "8,o,1"
- 4 -- "7,e,1"
- 5 -- "7,o,1"
- 8 -- FSK use the B202communication protocol
- 9 -- FSK use the V23Ccommunication protocol
- D7D6D5D4
- 0 -- determined by D6D5 bit of SSETUP
- 1 -- 1200 bps
- 2 -- 2400 bps
- 3 -- 4800 bps
- 4 -- 7200 bps
- 5 -- 9600 bps
- 6 -- 12000 bps
- 7 -- 14400 bps
- 8 -- 19200 bps
- 9 -- 24000 bps
- 10 -- 26400 bps
- 11 -- 28800 bps
- 12 -- 31200 bps
- 13 -- 33600 bps
- 14 -- 48000 bps
- 15 -- 56000 bps
- D3D2D1D0
-
isDialBlocking
public boolean isDialBlocking()
是否阻塞模式is dial blocking- Returns:
-
setDialBlocking
public void setDialBlocking(boolean isDialBlocking)
设置是否阻塞模式set dial blocking- Parameters:
isDialBlocking-
-
-