1.一種數(shù)據(jù)轉(zhuǎn)發(fā)方法,其特征在于,包括:
從數(shù)據(jù)接收端口接收待轉(zhuǎn)發(fā)數(shù)據(jù),并將所述待轉(zhuǎn)發(fā)數(shù)據(jù)緩存到所述數(shù)據(jù)接收端口的接收緩存隊列中,所述數(shù)據(jù)接收端口配置有與源設(shè)備匹配的通信協(xié)議;
獲取預(yù)設(shè)的與所述數(shù)據(jù)接收端口對應(yīng)的至少一個數(shù)據(jù)發(fā)送端口,并將所述待轉(zhuǎn)發(fā)數(shù)據(jù)復(fù)制到所述至少一個數(shù)據(jù)發(fā)送端口的發(fā)送緩存隊列中;
從所述至少一個數(shù)據(jù)發(fā)送端口發(fā)送所述待轉(zhuǎn)發(fā)數(shù)據(jù),所述數(shù)據(jù)發(fā)送端口配置有與目標(biāo)設(shè)備匹配的通信協(xié)議。
2.根據(jù)權(quán)利要求1所述的數(shù)據(jù)轉(zhuǎn)發(fā)方法,其特征在于,所述從數(shù)據(jù)接收端口接收待轉(zhuǎn)發(fā)數(shù)據(jù)包括根據(jù)預(yù)設(shè)的數(shù)據(jù)接收規(guī)則從數(shù)據(jù)接收端口接收待轉(zhuǎn)發(fā)數(shù)據(jù);以及所述從所述至少一個數(shù)據(jù)發(fā)送端口發(fā)送所述待轉(zhuǎn)發(fā)數(shù)據(jù)包括根據(jù)預(yù)設(shè)的數(shù)據(jù)發(fā)送規(guī)則從所述至少一個數(shù)據(jù)發(fā)送端口發(fā)送所述待轉(zhuǎn)發(fā)數(shù)據(jù)。
3.根據(jù)權(quán)利要求2所述的數(shù)據(jù)轉(zhuǎn)發(fā)方法,其特征在于,所述根據(jù)預(yù)設(shè)的數(shù)據(jù)接收規(guī)則從數(shù)據(jù)接收端口接收待轉(zhuǎn)發(fā)數(shù)據(jù)包括:
從數(shù)據(jù)接收端口接收預(yù)設(shè)長度的數(shù)據(jù)并作為待轉(zhuǎn)發(fā)數(shù)據(jù);或者,
根據(jù)幀標(biāo)識區(qū)分整幀數(shù)據(jù)并獲得待轉(zhuǎn)發(fā)數(shù)據(jù);或者,
根據(jù)幀間隙時間區(qū)分整幀數(shù)據(jù)并獲得待轉(zhuǎn)發(fā)數(shù)據(jù)。
4.根據(jù)權(quán)利要求2所述的數(shù)據(jù)轉(zhuǎn)發(fā)方法,其特征在于,所述根據(jù)預(yù)設(shè)的數(shù)據(jù)發(fā)送規(guī)則從所述至少一個數(shù)據(jù)發(fā)送端口發(fā)送所述待轉(zhuǎn)發(fā)數(shù)據(jù)包括:
從數(shù)據(jù)發(fā)送端口發(fā)送預(yù)設(shè)長度的所述待轉(zhuǎn)發(fā)數(shù)據(jù);或者,
從數(shù)據(jù)發(fā)送端口發(fā)送包括幀標(biāo)識的整幀數(shù)據(jù);或者,
對整幀的幀標(biāo)識進行修改后,從所述數(shù)據(jù)發(fā)送端口發(fā)送所述待轉(zhuǎn)發(fā)數(shù)據(jù);或者,
對所述待轉(zhuǎn)發(fā)數(shù)據(jù)進行拆分或封裝處理,從所述數(shù)據(jù)發(fā)送端口發(fā)送拆分或封裝處理的所述待轉(zhuǎn)發(fā)數(shù)據(jù)。
5.根據(jù)權(quán)利要求1-4任一所述的數(shù)據(jù)轉(zhuǎn)發(fā)方法,其特征在于,所述獲取預(yù)設(shè)的與所述數(shù)據(jù)接收端口對應(yīng)的至少一個數(shù)據(jù)發(fā)送端口包括:
從數(shù)據(jù)轉(zhuǎn)發(fā)表項中獲取預(yù)設(shè)的與所述數(shù)據(jù)接收端口對應(yīng)的至少一個數(shù)據(jù)發(fā)送端口,所述數(shù)據(jù)轉(zhuǎn)發(fā)表項中包括有與各個數(shù)據(jù)接收端口對應(yīng)的數(shù)據(jù)發(fā)送端口。
6.根據(jù)權(quán)利要求1-4任一所述的數(shù)據(jù)轉(zhuǎn)發(fā)方法,其特征在于,所述獲取預(yù)設(shè)的與所述數(shù)據(jù)接收端口對應(yīng)的至少一個數(shù)據(jù)發(fā)送端口包括:
從數(shù)據(jù)轉(zhuǎn)發(fā)局域網(wǎng)中獲取預(yù)設(shè)的與所述數(shù)據(jù)接收端口對應(yīng)的至少一個數(shù)據(jù)發(fā)送端口,所述數(shù)據(jù)轉(zhuǎn)發(fā)局域網(wǎng)中包括有與各個數(shù)據(jù)接收端口對應(yīng)的數(shù)據(jù)發(fā)送端口。
7.一種數(shù)據(jù)轉(zhuǎn)發(fā)裝置,其特征在于,包括:
數(shù)據(jù)接收模塊,用于從數(shù)據(jù)接收端口接收待轉(zhuǎn)發(fā)數(shù)據(jù),并將所述待轉(zhuǎn)發(fā)數(shù)據(jù)緩存到所述數(shù)據(jù)接收端口的接收緩存隊列中,所述數(shù)據(jù)接收端口配置有與源設(shè)備匹配的通信協(xié)議;
數(shù)據(jù)轉(zhuǎn)發(fā)模塊,用于獲取預(yù)設(shè)的與所述數(shù)據(jù)接收端口對應(yīng)的至少一個數(shù)據(jù)發(fā)送端口,并將所述待轉(zhuǎn)發(fā)數(shù)據(jù)復(fù)制到所述至少一個數(shù)據(jù)發(fā)送端口的發(fā)送緩存隊列中;
數(shù)據(jù)發(fā)送模塊,用于從所述至少一個數(shù)據(jù)發(fā)送端口發(fā)送所述待轉(zhuǎn)發(fā)數(shù)據(jù),所述數(shù)據(jù)發(fā)送端口配置有與目標(biāo)設(shè)備匹配的通信協(xié)議。
8.根據(jù)權(quán)利要求7所述的數(shù)據(jù)轉(zhuǎn)發(fā)裝置,其特征在于,所述數(shù)據(jù)接收模塊具體用于根據(jù)預(yù)設(shè)的數(shù)據(jù)接收規(guī)則從數(shù)據(jù)接收端口接收待轉(zhuǎn)發(fā)數(shù)據(jù),以及所述數(shù)據(jù)發(fā)送模塊具體用于根據(jù)預(yù)設(shè)的數(shù)據(jù)發(fā)送規(guī)則從所述至少一個數(shù)據(jù)發(fā)送端口發(fā)送所述待轉(zhuǎn)發(fā)數(shù)據(jù)。
9.根據(jù)權(quán)利要求8所述的數(shù)據(jù)轉(zhuǎn)發(fā)裝置,其特征在于,所述數(shù)據(jù)接收模塊具體用于從數(shù)據(jù)接收端口接收預(yù)設(shè)長度的數(shù)據(jù)并作為待轉(zhuǎn)發(fā)數(shù)據(jù);或者,
根據(jù)幀標(biāo)識區(qū)分整幀數(shù)據(jù)并獲得待轉(zhuǎn)發(fā)數(shù)據(jù);或者,
根據(jù)幀間隙時間區(qū)分整幀數(shù)據(jù)并獲得待轉(zhuǎn)發(fā)數(shù)據(jù)。
10.根據(jù)權(quán)利要求8所述的數(shù)據(jù)轉(zhuǎn)發(fā)裝置,其特征在于,所述數(shù)據(jù)發(fā)送模塊具體用于從數(shù)據(jù)發(fā)送端口發(fā)送預(yù)設(shè)長度的所述待轉(zhuǎn)發(fā)數(shù)據(jù);或者,
從數(shù)據(jù)發(fā)送端口發(fā)送包括幀標(biāo)識的整幀數(shù)據(jù);或者,
對整幀的幀標(biāo)識進行修改后,從所述數(shù)據(jù)發(fā)送端口發(fā)送所述待轉(zhuǎn)發(fā)數(shù)據(jù);或者,
對所述待轉(zhuǎn)發(fā)數(shù)據(jù)進行拆分或封裝處理,從所述數(shù)據(jù)發(fā)送端口發(fā)送拆分或封裝處理的所述待轉(zhuǎn)發(fā)數(shù)據(jù)。
11.根據(jù)權(quán)利要求7-10任一所述的數(shù)據(jù)轉(zhuǎn)發(fā)裝置,其特征在于,還包括:
配置模塊,用于存儲數(shù)據(jù)轉(zhuǎn)發(fā)表項,所述數(shù)據(jù)轉(zhuǎn)發(fā)表項中包括有與各個數(shù)據(jù)接收端口對應(yīng)的數(shù)據(jù)發(fā)送端口;
所述數(shù)據(jù)轉(zhuǎn)發(fā)模塊具體用于從數(shù)據(jù)轉(zhuǎn)發(fā)表項中獲取預(yù)設(shè)的與所述數(shù)據(jù)接收端口對應(yīng)的至少一個數(shù)據(jù)發(fā)送端口。
12.根據(jù)權(quán)利要求7-10任一所述的數(shù)據(jù)轉(zhuǎn)發(fā)裝置,其特征在于,還包括:
局域網(wǎng)建立模塊,用于所述根據(jù)預(yù)設(shè)的數(shù)據(jù)接收規(guī)則從數(shù)據(jù)接收端口接收待轉(zhuǎn)發(fā)數(shù)據(jù)之前,建立數(shù)據(jù)轉(zhuǎn)發(fā)局域網(wǎng),并將所述數(shù)據(jù)接收端口,以及至少一個數(shù)據(jù)發(fā)送端口添加到所述數(shù)據(jù)轉(zhuǎn)發(fā)局域網(wǎng)絡(luò)中。
所述數(shù)據(jù)轉(zhuǎn)發(fā)模塊具體用于從數(shù)據(jù)轉(zhuǎn)發(fā)局域網(wǎng)中獲取預(yù)設(shè)的與所述數(shù)據(jù)接收端口對應(yīng)的至少一個數(shù)據(jù)發(fā)送端口。