OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 5074|回复: 2

请教下,使用 gprs 模块时,ip 地址是不是随意设置还是说有什么讲究啊 ?

[复制链接]

260

主题

809

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1890
金钱
1890
注册时间
2012-10-28
在线时间
356 小时
发表于 2018-8-30 15:35:14 | 显示全部楼层 |阅读模式
2金钱
请教下,使用 gprs 模块时,ip 地址是不是随意设置还是说有什么讲究啊 ?

最佳答案

查看完整内容[请看2#楼]

ip地址是移动分配的,你没得设置。。。
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165452
金钱
165452
注册时间
2010-12-1
在线时间
2113 小时
发表于 2018-8-30 15:35:15 | 显示全部楼层
ip地址是移动分配的,你没得设置。。。
回复

使用道具 举报

35

主题

154

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
362
金钱
362
注册时间
2014-7-30
在线时间
49 小时
发表于 2019-12-3 11:19:20 | 显示全部楼层
正点原子 发表于 2018-8-30 15:35
ip地址是移动分配的,你没得设置。。。

<contextID> Integer type, context ID, range is 1-16
<connectID> Integer type, socket service index, range is 0-11
<service_type> String type, socket service type
“TCP” Start a TCP connection as a client
“UDP” Start a UDP connection as a client
“TCP LISTENER” Start a TCP server to listen to TCP connection
“UDP SERVICE” Start a UDP service
<IP_address> String type
If <service_type> is TCP or UDP, it indicates the IP address of remote server, such as
“220.180.239.201”
If <service_type> is TCP LISTENER or UDP SERVICE, please enter “127.0.0.1”
<domain_name> String type, the domain name address of the remote server
<remote_port> The port of the remote server, only valid when <service_type> is “TCP” or “UDP”,
range is 0-65535

这个是移远EC20模块上,为什么说固定ip127.0.0.1,不过端口号如何定。有知道的么
我就是我,是颜色不一样的烟火。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-4-15 17:39

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表