aixiwang / gprs_modbus_dtu Goto Github PK
View Code? Open in Web Editor NEWA MODBUS DTU implementation based on Ai-thinker A6 module, 51 MCU as main controller
A MODBUS DTU implementation based on Ai-thinker A6 module, 51 MCU as main controller
函数grps_att_act()每次初始化n=3 后面并没有用 应该是用来设置循环发送次数的
int grps_att_act()
{
u8 retcode = 0;
u8 n;
n = 3;
while (n > 0)
{
retcode = atcmd("ATE0\r\n",30);
if (retcode == 0)
{
break;
}
else
{
lcd_putstr("F801");
}
n--;
}
// AT+CGATT
n = 3;
while (n > 0)
{
retcode = atcmd("AT+CGATT=1\r\n",30);
if (retcode == 0)
{
break;
}
else
{
lcd_putstr("F802");
}
n--;
}
// AT+CGACT
n = 3;
while (n > 0)
{
retcode = atcmd("AT+CGACT=1,1\r\n",30);
if (retcode == 0)
{
break;
}
else
{
lcd_putstr("F803");
}
n--;
}
这是改好的 另外谢谢作者 对我非常有帮助!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.