当前位置:网站首页>Bc35 & bc95 onenet mqtt (old)
Bc35 & bc95 onenet mqtt (old)
2022-07-02 00:27:00 【weixindINGtaotao】
Recently, I worked on a project MQTT The connection of , Because the ECS and the remote module are often updated , Some knowledge of what we have done in the past few years has become unusable , Have to continue to explore , Strange things happened during this period , Make some notes here , So that I can see later .
1、BC35 The module has been discontinued , The current use is BC95, But it is universal in theory , In fact, there are still some differences in the signal interface , Specific in datasheet It doesn't say , Only actual tests . Mainly uart Interface level , It used to be 3.0V Voltage domain , and 3.3 Communication plus interface circuit or 1k The above resistance , But in BC95 On 1k The resistance needs to be modified to 200-500, Otherwise, the communication fails .
2、BC35 There are many 3 Firmware versions , One is with onenet Of , other 2 One is without , Generally, what you can buy at present is not brought , You need to burn it yourself . Not recommended BC35,BC95 Have your own ONENET Version on sale , It supports the new version MQTT( No test to guess ). Another problem is that the factory mqtt The agreement may be 3.1 Of , But for now oennet On is 3.1.1, This needs to be configured by yourself , Otherwise, you can't even connect .....
3、 The mobile MQTT Don't confuse the old version with the new version , The new version is more complicated than the old version , Need to calculate password , The old version doesn't need . This project uses the old version MQTT, convenient .
4、ONENET The old version of the MQTT Use fx Connect 
fx Sign in
This old version mqtt Login is very simple , So don't confuse the old version with the new version , It's easy to get into a dead end .
5、 The general low-end demand is to display the uploaded information on the cloud , Don't read other technical articles in the past for the next few steps , I don't know if it's due to the revision , Anyway, it's wrong to look at it .
Do not subscribe after connecting “ d p ” , dp”, dp”,dp,dp such , Just leave it blank
Do not subscribe after connecting ! Don't subscribe to ! Don't subscribe to !( If you want to use the system “$dp”, Upload to the cloud to display ).
6、 Send messages directly , Sending message format depends on the message format , This is in onenet There are documents on . Specifically 
file
See this document for details .
Message format
7、 Try to use fx Send message . Okay , You can't publish , Because the system message is “ d p ” , but yes o n e n e t Of Technology Technique writing files say 了 No the a dp”, however onenet The technical documentation of says it doesn't support dp”, but yes onenet Of Technology Technique writing files say 了 No the a The subscription . This is embarrassing , To do .... Only according to this agreement , So I searched for a long time and found a good software 

This is this. , It's easy to use
Use directly after login json Data upload , You can see the data on the system , Premise is json It's full , This fx There is a good function to see whether the format is correct .

Custom subscription
To customize topic Hair json data
To this topic send out json data , You can check whether the data format is correct at the subscriber , You can also find other software to view the format by yourself .
8、 So you can use it AT+QMTPUB=0,0,0,0,"$dp" Sent ( Never subscribe to this system topic)? Still not . This is about to go back to the message format , The front and 3 Bytes? , need 01( Format ),2 Bit data length , Plus the data , This manual operation is also difficult , This requires the use of SCM , It is directly converted into an array and sent , But you have to debug and see what to do ?

Or this software , It can automatically put json convert to hex, In this way, the serial assistant can send directly , But remember to bring it 3 Byte header !
9, Now use BC95 The function of is finished . however , Some projects are for configuring servers , product id It is more convenient , Will choose to bring flash, Power on the module that automatically goes to the cloud , I just bought one ebyte Of ea01, I thought it would be easy to buy it , little does one think , This thing is also God company , No technical support , You need to explore step by step … Finally, press bc95 The process is slowly trying step by step , The tutorial on the official website is customized topic And mirroring topic, There is no need to have data on the cloud , No way . The final process is also similar , But he needs to subscribe to this $dp Of topic Of ( Actually, you need to subscribe , It's just fx You can't , and simulate This software can be subscribed by itself ), And then send , Then you can send it all the time .
10, Actually, I bought it first EA01, I bought it after I really couldn't do it BC35, Then buy BC95, adopt 95 All modules have been adjusted . author :ding526637566 https://www.bilibili.com/read/cv16923988?spm_id_from=333.999.0.0 Source :bilibili
边栏推荐
- 【CTF】bjdctf_ 2020_ babystack2
- Export default the exported object cannot be deconstructed, and module Differences between exports
- 启牛商学院给的证券账户安不安全?哪里可以开户
- 回顾数据脱敏系统
- [embedded system course design] a single key controls the LED light
- Database -- sqlserver details
- 13 MySQL constraint
- Talents come from afar, and Wangcheng district has consolidated the intellectual base of "strengthening the provincial capital"
- 智能运维实战:银行业务流程及单笔交易追踪
- ERP项目施行计划的目的是什么?
猜你喜欢

Graduation season is both a farewell and a new beginning

mysql之B tree 以及 B+tree

SQL Server 安裝指南
![[cmake] cmake configuration in QT Creator](/img/e3/1cf76f88eaddb5d32184523dfb049c.png)
[cmake] cmake configuration in QT Creator
![Jielizhi, production line assembly link [chapter]](/img/1d/d1736fad33c428e61f450aad512ce0.png)
Jielizhi, production line assembly link [chapter]

Export default the exported object cannot be deconstructed, and module Differences between exports

JS -- image to base code, base to file object

leetcode96不同的二叉搜索树

Use es to realize epidemic map or take out order function (including code and data)

heketi 记录
随机推荐
Niuke - Practice 101 - reasoning clown
SQL数据分析之流程控制语句【if,case...when详解】
微信小程序缓存过期时间的相关设置(推荐)
SQL数据分析之窗口排序函数rank、dense_rank、raw_number与lag、lead窗口偏移函数【用法整理】
使用htaccess文件禁止目录里的脚本执行权限
SQL数据分析之子查询的综合用法和案例题【耐心整理】
Flow control statement of SQL data analysis [if, case... When detailed]
【mysql 07】GPG key retrieval failed: “Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022“
Which securities company is safer to open a stock account
mysql之B tree 以及 B+tree
基于全志H3的QT5.12.9移植教程
智能运维实战:银行业务流程及单笔交易追踪
求逆序数的三个方法
Intelligent operation and maintenance practice: banking business process and single transaction tracking
Node - generate wechat permission verification configuration
Database -- sqlserver details
How can entrepreneurial teams implement agile testing to improve quality and efficiency? Voice network developer entrepreneurship lecture Vol.03
Node——添加压缩文件
Ldr6035 smart Bluetooth audio can continuously charge and discharge mobile devices
Node——Egg 创建本地文件访问接口