一種通過wifi傳輸數(shù)據(jù)的方法、主設(shè)備及模塊設(shè)備的制造方法
【技術(shù)領(lǐng)域】
[0001]本發(fā)明涉及通信技術(shù)領(lǐng)域,尤其涉及一種通過wifi傳輸數(shù)據(jù)的方法、主設(shè)備及模塊設(shè)備。
【背景技術(shù)】
[0002]組合設(shè)備是幾個(gè)擁有獨(dú)立系統(tǒng)的設(shè)備通過一種物理連接方式藕合在一起,共同完成產(chǎn)品功能的設(shè)備。組合設(shè)備的形式很多,板卡服務(wù)器是比較常見的一種產(chǎn)品形態(tài),通過加入板卡的數(shù)量來提高服務(wù)器的處理能力,每個(gè)板卡是一個(gè)獨(dú)立的系統(tǒng)設(shè)備。組合設(shè)備的主要功能是為終端用戶服務(wù)的,通過組合不同的模塊設(shè)備來實(shí)現(xiàn)不同的產(chǎn)品系列和功能。這些模塊設(shè)備每一個(gè)都是一個(gè)獨(dú)立的系統(tǒng),然后在主模塊設(shè)備的協(xié)調(diào)下工作。無線局域網(wǎng)wifi (wireless fidelity,無線局域網(wǎng))功能是目前組合設(shè)備的一個(gè)重要功能,因?yàn)閣ifi地理定位、wifi直連或者miracast互通功能在某些模塊設(shè)備上是必須的,而且不能夠被以太網(wǎng)所代替,所以每個(gè)模塊設(shè)備可能都需要擁有wifi功能。
[0003]為了實(shí)現(xiàn)組合設(shè)備每個(gè)模塊設(shè)備都能夠使用wifi上網(wǎng),現(xiàn)有技術(shù)通常讓每個(gè)模塊設(shè)備放置一個(gè)獨(dú)立的物理wifi設(shè)備,但是由于無線設(shè)備的特殊性,各個(gè)wifi設(shè)備相互之間存在干擾,同時(shí)也為組合設(shè)備結(jié)構(gòu)設(shè)計(jì)帶來困難。
[0004]綜上所述,現(xiàn)有技術(shù)方案中存在各個(gè)模塊設(shè)備上wifi設(shè)備相互之間存在干擾的問題。
【發(fā)明內(nèi)容】
[0005]本發(fā)明實(shí)施例提供一種通過wifi傳輸數(shù)據(jù)的方法、主設(shè)備及模塊設(shè)備,用以解決現(xiàn)有技術(shù)方案中存在各個(gè)模塊設(shè)備上wifi設(shè)備相互之間存在干擾的問題。
[0006]本發(fā)明實(shí)施例提供的一種通過wifi傳輸數(shù)據(jù)的方法,包括:
[0007]主設(shè)備將通過所述主設(shè)備中的無線網(wǎng)卡收到來自外網(wǎng)的針對(duì)模塊設(shè)備的數(shù)據(jù),發(fā)送給所述主設(shè)備中的以太網(wǎng)網(wǎng)橋,并通過所述以太網(wǎng)網(wǎng)橋?qū)⑺瞿K設(shè)備的數(shù)據(jù),依次通過所述模塊設(shè)備中的以太網(wǎng)卡和虛擬無線網(wǎng)卡發(fā)送給對(duì)應(yīng)的模塊設(shè)備;以及
[0008]所述主設(shè)備將通過所述以太網(wǎng)網(wǎng)橋收到的模塊設(shè)備發(fā)送的數(shù)據(jù),發(fā)送給所述無線網(wǎng)卡,并通過所述無線網(wǎng)卡發(fā)送,其中所述模塊設(shè)備發(fā)送的數(shù)據(jù)是所述模塊設(shè)備依次通過所述虛擬無線網(wǎng)卡和以太網(wǎng)卡發(fā)送的。
[0009]較佳地,所述主設(shè)備將通過所述主設(shè)備中的無線網(wǎng)卡收到來自外網(wǎng)的針對(duì)模塊設(shè)備的數(shù)據(jù),發(fā)送給所述主設(shè)備中的以太網(wǎng)網(wǎng)橋,并通過所述以太網(wǎng)網(wǎng)橋?qū)⑺瞿K設(shè)備的數(shù)據(jù),依次通過所述模塊設(shè)備中的以太網(wǎng)卡和虛擬無線網(wǎng)卡發(fā)送給對(duì)應(yīng)的模塊設(shè)備,包括:
[0010]所述主設(shè)備通過所述無線網(wǎng)卡接收到包含虛擬無線網(wǎng)卡媒體接入控制MAC地址的數(shù)據(jù);
[0011 ] 所述主設(shè)備根據(jù)以太網(wǎng)MAC地址對(duì)所述包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)進(jìn)行封裝,所述主設(shè)備通過所述以太網(wǎng)網(wǎng)橋?qū)⒎庋b后的數(shù)據(jù)發(fā)送給所述以太網(wǎng)卡。
[0012]較佳地,所述主設(shè)備根據(jù)以太網(wǎng)MAC地址對(duì)所述包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)進(jìn)行封裝,所述主設(shè)備通過所述以太網(wǎng)網(wǎng)橋?qū)⒎庋b后的數(shù)據(jù)發(fā)送給所述以太網(wǎng)卡,包括:
[0013]所述主設(shè)備根據(jù)虛擬無線網(wǎng)卡MAC地址與以太網(wǎng)卡MAC地址的映射關(guān)系,確定所述包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)中的虛擬無線網(wǎng)卡MAC地址對(duì)應(yīng)的以太網(wǎng)卡MAC地址,并根據(jù)確定的以太網(wǎng)MAC地址對(duì)所述包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)進(jìn)行封裝,將封裝后的數(shù)據(jù)通過以太網(wǎng)網(wǎng)橋分別發(fā)送給與所述以太網(wǎng)網(wǎng)橋連接的每個(gè)以太網(wǎng)卡;或
[0014]所述主設(shè)備根據(jù)與所述以太網(wǎng)網(wǎng)橋連接的每個(gè)以太網(wǎng)卡對(duì)應(yīng)的每個(gè)以太網(wǎng)卡MAC地址,分別對(duì)所述包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)進(jìn)行封裝,根據(jù)封裝后的數(shù)據(jù)中的以太網(wǎng)卡MAC地址,將封裝后的數(shù)據(jù)通過以太網(wǎng)網(wǎng)橋發(fā)送給對(duì)應(yīng)的以太網(wǎng)卡。
[0015]較佳地,所述主設(shè)備將通過所述以太網(wǎng)網(wǎng)橋收到的模塊設(shè)備發(fā)送的數(shù)據(jù),發(fā)送給所述無線網(wǎng)卡,并通過所述無線網(wǎng)卡發(fā)送,其中所述模塊設(shè)備發(fā)送的數(shù)據(jù)是所述模塊設(shè)備依次通過所述虛擬無線網(wǎng)卡和以太網(wǎng)卡發(fā)送的,包括:
[0016]所述主設(shè)備通過所述以太網(wǎng)網(wǎng)橋收到所述模塊設(shè)備通過虛擬無線網(wǎng)卡和以太網(wǎng)卡發(fā)送的包含以太網(wǎng)卡MAC地址和虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)后,解封所述包含以太網(wǎng)卡MAC地址和虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù),得到包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù),并通過所述無線網(wǎng)卡發(fā)送。
[0017]較佳地,主設(shè)備將通過所述主設(shè)備中的無線網(wǎng)卡收到來自外網(wǎng)的針對(duì)模塊設(shè)備的數(shù)據(jù),發(fā)送給所述主設(shè)備中的以太網(wǎng)網(wǎng)橋,并通過所述以太網(wǎng)網(wǎng)橋?qū)⑺瞿K設(shè)備的數(shù)據(jù),依次通過所述模塊設(shè)備中的以太網(wǎng)卡和虛擬無線網(wǎng)卡發(fā)送給對(duì)應(yīng)的模塊設(shè)備,包括:
[0018]所述主設(shè)備將通過所述主設(shè)備中的無線網(wǎng)卡收到的來自外網(wǎng)的針對(duì)多個(gè)模塊設(shè)備的數(shù)據(jù),通過無線多路復(fù)用器依次通過以太網(wǎng)網(wǎng)橋、以太網(wǎng)卡和虛擬無線網(wǎng)卡發(fā)送給對(duì)應(yīng)的模塊設(shè)備;
[0019]所述主設(shè)備將通過所述以太網(wǎng)網(wǎng)橋收到的模塊設(shè)備發(fā)送的數(shù)據(jù),發(fā)送給所述無線網(wǎng)卡,并通過所述無線網(wǎng)卡發(fā)送,其中所述模塊設(shè)備發(fā)送的數(shù)據(jù)是所述模塊設(shè)備依次通過所述虛擬無線網(wǎng)卡和以太網(wǎng)卡發(fā)送的,包括:
[0020]所述主設(shè)備將通過所述以太網(wǎng)網(wǎng)橋收到的模塊設(shè)備發(fā)送的數(shù)據(jù),通過無線多路復(fù)用器發(fā)送給所述無線網(wǎng)卡,并通過所述無線網(wǎng)卡發(fā)送,其中所述模塊設(shè)備發(fā)送的數(shù)據(jù)是所述模塊設(shè)備依次通過所述虛擬無線網(wǎng)卡和以太網(wǎng)卡發(fā)送的。
[0021]本發(fā)明實(shí)施例提供的另一種通過wifi傳輸數(shù)據(jù)的方法,包括:
[0022]模塊設(shè)備通過虛擬無線網(wǎng)卡將所述模塊設(shè)備的數(shù)據(jù),發(fā)送給所述模塊設(shè)備中的以太網(wǎng)卡,并通過所述以太網(wǎng)卡將所述模塊設(shè)備的數(shù)據(jù)通過主設(shè)備中的以太網(wǎng)網(wǎng)橋和無線網(wǎng)卡發(fā)送;以及
[0023]所述模塊設(shè)備通過所述以太網(wǎng)卡接收所述主設(shè)備發(fā)送的數(shù)據(jù),發(fā)送給所述虛擬無線網(wǎng)卡,其中所述主設(shè)備發(fā)送的數(shù)據(jù)是依次通過所述主設(shè)備中的以太網(wǎng)網(wǎng)橋和以太網(wǎng)卡發(fā)送的。
[0024]較佳地,所述模塊設(shè)備通過虛擬無線網(wǎng)卡將所述模塊設(shè)備的數(shù)據(jù),發(fā)送給所述模塊設(shè)備中的以太網(wǎng)卡,并通過所述以太網(wǎng)卡將所述模塊設(shè)備的數(shù)據(jù)通過主設(shè)備中的以太網(wǎng)網(wǎng)橋和無線網(wǎng)卡發(fā)送,包括:
[0025]所述模塊設(shè)備通過虛擬無線網(wǎng)卡以及以太網(wǎng)卡向所述主設(shè)備發(fā)送包含以太網(wǎng)卡媒體接入控制MAC地址和虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù),以使所述主設(shè)備通過所述以太網(wǎng)網(wǎng)橋接收并解封為包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù),并通過所述無線網(wǎng)卡發(fā)送。
[0026]較佳地,所述模塊設(shè)備通過所述以太網(wǎng)卡接收所述主設(shè)備發(fā)送的數(shù)據(jù),發(fā)送給所述虛擬無線網(wǎng)卡,其中所述主設(shè)備發(fā)送的數(shù)據(jù)是依次通過所述主設(shè)備中的以太網(wǎng)網(wǎng)橋和以太網(wǎng)卡發(fā)送的,包括:
[0027]所述模塊設(shè)備通過所述以太網(wǎng)卡接收所述主設(shè)備通過所述無線網(wǎng)卡和所述以太網(wǎng)網(wǎng)橋發(fā)送的包含以太網(wǎng)卡MAC地址和虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)后,將所述數(shù)據(jù)解封為包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù),通過所述虛擬無線網(wǎng)卡接收,并判斷所述數(shù)據(jù)中的所述虛擬無線網(wǎng)卡MAC地址與所述虛擬無線網(wǎng)卡對(duì)應(yīng)的虛擬無線網(wǎng)卡MAC地址是否相同,若是,則確定接收成功,否則,丟棄收到的所述包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù);或
[0028]所述模塊設(shè)備通過所述以太網(wǎng)卡接收所述主設(shè)備通過所述無線網(wǎng)卡和所述以太網(wǎng)網(wǎng)橋發(fā)送的包含以太網(wǎng)卡MAC地址和虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)后,判斷所述數(shù)據(jù)中的所述以太網(wǎng)卡MAC地址與所述模塊設(shè)備中的所述以太網(wǎng)卡對(duì)應(yīng)的以太網(wǎng)卡MAC地址是否相同,若是,則將所述數(shù)據(jù)解封為包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù),并通過所述虛擬無線網(wǎng)卡接收;否則,丟棄收到的所述包含以太網(wǎng)卡MAC地址和虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)。
[0029]本發(fā)明實(shí)施例提供的一種通過wifi傳輸數(shù)據(jù)的主設(shè)備,包括:
[0030]無線網(wǎng)卡,用于將通過外部網(wǎng)絡(luò)接收的模塊設(shè)備的數(shù)據(jù)發(fā)送給無線熱點(diǎn);以及將所述無線熱點(diǎn)發(fā)送的模塊設(shè)備的數(shù)據(jù),通過外部網(wǎng)絡(luò)發(fā)送;
[0031]以太網(wǎng)網(wǎng)橋,用于接收來自所述無線熱點(diǎn)的模塊設(shè)備的數(shù)據(jù)依次發(fā)送給所述模塊設(shè)備中的以太網(wǎng)卡和虛擬無線網(wǎng)卡;以及將收到的所述模塊設(shè)備中的所述虛擬無線網(wǎng)卡通過所述以太網(wǎng)卡發(fā)送的所述模塊設(shè)備的數(shù)據(jù)發(fā)送給所述無線熱點(diǎn);
[0032]無線熱點(diǎn),用于將收到的來自所述無線網(wǎng)卡的數(shù)據(jù)進(jìn)行傳輸處理后發(fā)送給所述以太網(wǎng)網(wǎng)橋,以及將收到的來自所述以太網(wǎng)網(wǎng)橋的數(shù)據(jù)進(jìn)行傳輸處理后發(fā)送給所述無線網(wǎng)卡。
[0033]較佳地,所述無線熱點(diǎn)具體用于:
[0034]根據(jù)以太網(wǎng)MAC地址對(duì)收到的來自所述無線網(wǎng)卡的包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)進(jìn)行封裝,并發(fā)送給所述以太網(wǎng)網(wǎng)橋;以及通過所述以太網(wǎng)網(wǎng)橋收到包含以太網(wǎng)卡MAC地址和虛擬無線網(wǎng)卡MAC地址的所述模塊設(shè)備的數(shù)據(jù)后,對(duì)收到的來自所述以太網(wǎng)網(wǎng)橋的包含以太網(wǎng)卡MAC地址和虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)進(jìn)行解封,得到包含虛擬無線網(wǎng)卡MAC地址的所述模塊設(shè)備的數(shù)據(jù),并發(fā)送給所述無線網(wǎng)卡。
[0035]較佳地,所述無線熱點(diǎn)具體用于:
[0036]根據(jù)虛擬無線網(wǎng)卡MAC地址與以太網(wǎng)卡MAC地址的映射關(guān)系,確定所述包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)中的虛擬無線網(wǎng)卡MAC地址對(duì)應(yīng)的所述以太網(wǎng)卡MAC地址,并根據(jù)確定的以太網(wǎng)MAC地址對(duì)所述包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)進(jìn)行封裝,將封裝后的數(shù)據(jù)發(fā)送給以太網(wǎng)網(wǎng)橋;
[0037]所述以太網(wǎng)網(wǎng)橋具體用于:
[0038]將收到的所述封裝后的數(shù)據(jù)分別發(fā)送給與所述以太網(wǎng)網(wǎng)橋連接的每個(gè)所述以太網(wǎng)卡。
[0039]較佳地,所述無線熱點(diǎn)具體用于:
[0040]根據(jù)與所述以太網(wǎng)網(wǎng)橋連接的每個(gè)以太網(wǎng)卡對(duì)應(yīng)的每個(gè)以太網(wǎng)卡MAC地址,分別對(duì)所述包含虛擬無線網(wǎng)卡MAC地址的數(shù)據(jù)進(jìn)行封裝,根據(jù)封裝后的數(shù)據(jù)中的以太網(wǎng)卡MAC地址,將封裝后的數(shù)據(jù)發(fā)送給以太網(wǎng)網(wǎng)橋;
[0041]所述以太網(wǎng)網(wǎng)橋具體用于:
[0042]將收到的每個(gè)所述封裝后的數(shù)據(jù),發(fā)送給所述封裝后的數(shù)據(jù)中的以太網(wǎng)卡MAC地址對(duì)應(yīng)的所述以太網(wǎng)卡。
[0043]較佳地,該主設(shè)備包括:
[0044]無線多路復(fù)用器,用于將主設(shè)備通過無線網(wǎng)卡收到的多個(gè)模塊設(shè)備的數(shù)據(jù)發(fā)送給無線熱點(diǎn);以及將收到主設(shè)備通過無線熱點(diǎn)發(fā)送的多個(gè)模塊設(shè)備的數(shù)據(jù)發(fā)送給所述無線網(wǎng)卡。
[0045]本發(fā)明實(shí)施例提供的一種通過wifi傳輸數(shù)據(jù)的模塊設(shè)備,包括:
[0046]虛擬無線網(wǎng)卡,用于將模塊設(shè)備的數(shù)據(jù)發(fā)送給以太網(wǎng)卡;以及通過所述以太網(wǎng)卡接收所述以太網(wǎng)網(wǎng)橋發(fā)送的所述模塊設(shè)備的數(shù)據(jù);
[0047]以太網(wǎng)卡,用于將接收的所述虛擬無線網(wǎng)卡發(fā)送的模塊設(shè)備的數(shù)據(jù)發(fā)送給所述主設(shè)備中的所述以太網(wǎng)網(wǎng)橋;以及將收到的所述主設(shè)備中無線網(wǎng)卡通過的所述以太網(wǎng)網(wǎng)橋發(fā)送的模塊設(shè)備的數(shù)據(jù)發(fā)送給所述虛擬無線網(wǎng)卡。
[0048]較佳地,所述以太網(wǎng)卡具體用于:
[0049]將接收的所述虛擬無線網(wǎng)卡發(fā)送的包含虛擬無線網(wǎng)