A network communication control method and system for industrial computer include: reading the ID information of the communication module at the bottom of the system software to detect the communication module at the start of the system; reading the device list at the abstract layer of the system software and hardware after the detection is successful; acquiring the matching items in the device list according to the ID information of the communication module; and according to the AT command interface letter in the matching items, acquiring the matching items in the device list according to the ID information of the communication module. Information sets AT command interface, sets data communication interface according to the data communication interface information in the matching item, and sets environment variable Pro according to the name of communication module in the matching item; loads corresponding wireless interface layer driver file according to the name of communication module when the system is ready to add wireless interface layer driver; reads environment variable Pro when the system runs to the system application, and Set up the communication protocol that the system needs to use according to the environment variable Pro. The invention solves the problem of different maintenance versions of different operators'networks, improves the general performance of industrial computer software and reduces the maintenance cost.
【技术实现步骤摘要】
一种用于工控机的网络通信控制方法以及系统
本专利技术涉及工控机领域,尤其涉及一种用于工控机的网络通信控制方法以及系统。
技术介绍
在ARM工控机的实际运用中,由于地区的不同,不同运营商网络的信号强度不同,所以工控机上需要安装不同运营商的网络通信模块,导致软件需要做到多个版本进行维护,批量生产时,要求工厂严格管控,以及工控机软件通用性降低。例如一些地方电信3G信号强,一些地方联通移动3G信号很强,所以工控机上需要安装两个版本进行维护,一个电信版本,另一个是联通版本(可兼容移动版本)。
技术实现思路
本专利技术要解决的技术问题在于,针对现有技术的上述需要对多个版本的工控机软件进行维护的缺陷,提供一种可以兼容不同运营商网络的用于工控机的网络通信控制方法以及系统。本专利技术解决其技术问题所采用的技术方案是:构造一种用于工控机的网络通信控制方法,包括:在系统启动时读取预先设置于系统软件底层的通信模块的ID信息,并根据读取的ID信息对通信模块进行检测;检测成功后,在系统软件硬件抽象层读取预先设置的通信模块设备列表,根据通信模块的ID信息在通信模块设备列表中获取匹配项,获取出匹配现中记载的通信模块的AT命令接口信息、数据通信接口信息、通信模块名称;根据获取到的AT命令接口信息设置AT命令接口,根据获取到的数据通信接口信息设置数据通信接口,同时根据获取到的所述通信模块名称设置环境变量Pro;当系统准备添加无线接口层驱动时,根据获取到的所述通信模块名称加载相应的无线接口层驱动文件;当系统运行到系统应用时,读取所述环境变量Pro,并根据所述环境变量Pro设置系统需要使用的通信协议 ...
【技术保护点】
1.一种用于工控机的网络通信控制方法,其特征在于,包括:在系统启动时读取预先设置于系统软件底层的通信模块的ID信息,并根据读取的ID信息对通信模块进行检测;检测成功后,在系统软件硬件抽象层读取预先设置的通信模块设备列表,根据通信模块的ID信息在通信模块设备列表中获取匹配项,获取出匹配现中记载的通信模块的AT命令接口信息、数据通信接口信息、通信模块名称;根据获取到的AT命令接口信息设置AT命令接口,根据获取到的数据通信接口信息设置数据通信接口,同时根据获取到的所述通信模块名称设置环境变量Pro;当系统准备添加无线接口层驱动时,根据获取到的所述通信模块名称加载相应的无线接口层驱动文件;当系统运行到系统应用时,读取所述环境变量Pro,并根据所述环境变量Pro设置系统需要使用的通信协议。
【技术特征摘要】
1.一种用于工控机的网络通信控制方法,其特征在于,包括:在系统启动时读取预先设置于系统软件底层的通信模块的ID信息,并根据读取的ID信息对通信模块进行检测;检测成功后,在系统软件硬件抽象层读取预先设置的通信模块设备列表,根据通信模块的ID信息在通信模块设备列表中获取匹配项,获取出匹配现中记载的通信模块的AT命令接口信息、数据通信接口信息、通信模块名称;根据获取到的AT命令接口信息设置AT命令接口,根据获取到的数据通信接口信息设置数据通信接口,同时根据获取到的所述通信模块名称设置环境变量Pro;当系统准备添加无线接口层驱动时,根据获取到的所述通信模块名称加载相应的无线接口层驱动文件;当系统运行到系统应用时,读取所述环境变量Pro,并根据所述环境变量Pro设置系统需要使用的通信协议。2.根据权利要求1所述的用于工控机的网络通信控制方法,其特征在于,方法还包括:在系统启动之前,在系统软件底层添加通信模块的所述ID信息,以及在系统软件硬件抽象层,添加通信模块的设备信息以确定所述通信模块设备列表。3.根据权利要求2所述的用于工控机的网络通信控制方法,其特征在于,所述ID信息包括厂商ID和产品ID,所述设备信息包括以生产公司加型号命名的所述通信模块名称、AT命令接口、数据通信接口、厂商ID和产品ID。4.根据权利要求1所述的用于工控机的网络通信控制方法,其特征在于,所述通信模块为pcie3G模块。5.一种用于工控机的网络通信控制系统,其特征在于,包括处理...
【专利技术属性】
技术研发人员:阮仕涛,
申请(专利权)人:深圳市祈飞科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。