当前位置:网站首页>Summer Challenge [FFH] NFC touches and pulls up any application without enterprise certification!
Summer Challenge [FFH] NFC touches and pulls up any application without enterprise certification!
2022-07-22 10:01:00 【51CTO】
[ This article is participating in the starlight project 3.0- Summer Challenge ]
In previous project practice , Want to pass NFC Touch the quick wake-up Application , Skip the traditional code scanning opening method . But I found that if you want to be right NFC If the tag writes data , Seem to need Enterprise certification , This is not friendly to ordinary developers . Fortunately, there is little bear pie Nano The case of digital housekeeper , Let me find another simple way , Is to use bear pie Nano Board as NFC label . Cub pie Nano The board is obviously certified by the enterprise , At the same time, some predecessors have developed the application of digital housekeeper . This article will share how to pass the bear pie Nano, Conduct NFC Touch and pull up any application .
0. effect
1. Get ready
We need to prepare the following :
- Cub pie Nano
- 72*72,160*160 Application of pixels logo
- Equipped with Hongmeng system , Support NFC The mobile phone
1.1 Cub pie Nano burn
1.2 obtain productID
1.2.1 Download in the application market Application debugging assistant
1.2.2 Get into NFC page , Click Select
1.2.3 apply productID
Click apply to apply for productID, Each account can be applied for at one time 3 individual ID, And each ID There is a service life , You can apply again after the expiration .
Pictured , Here are two expired ID Number , also 3 One is applied for now , We remember him , In the following text NFC The requested ID Number , Each account here may be different .
2. To configure NFC
- Enter the official website of Huawei developer alliance , Get into HarmonyOS The service platform . Portal
2.1 Create services
- choice HarmonyOS Test service
Complete the information , All information can be customized , When it's done , Click Create .
2.2 Fill in the service information
The information here is basically customized according to personal needs .
- essential information
- Services present information
there logo It is required. , We have prepared two sizes before LOGO.
Click save
2.3 Fill in the configuration information
- add to HarmonyOS label
Click Add , The label name is self-made , Fill in the product model we applied for productID, Fill in the product sub model 00 that will do , Click save .
Multiple can be added here productID, When writing the data stream later , Pay attention to the corresponding . - Add FA Information
Here is the case of wake-up distributed music player , Specific resources can be found in my blog .
Personalized distributed music player
- Select supported devices
- Fill in the package name.
Be careful , The package name filled in here needs to be consistent with the package name of the wake-up Application , This is the only key factor !
Package name , service name (MainAbility) They correspond to each other config.json In the document "bundleName" and "mainAbility"
The module name corresponds to config.json In file “moduleName”
Other information is self prepared , Click save
2.4 Set to test
- Click test
- Add test equipment , Binding by phone number
- Enter the test mobile phone number
3. test
3.1 Write label data
- Open the application debugging assistant , choice productID, Here we choose the above NFC Configure page settings productID, If productID All configured , Then just choose any one .
- 1246128c7b60ad1ed0286680f19206Lamp01308123456784011512teamX-Lamp01
For the structure of user-defined data here, please refer to the case of digital housekeeper ( Portal ), But this data is universal , So just use it directly .
- Click put in cache
Turn on the phone NFC, With little bear pie Nano Touch the board , Write data .
3.2 Touch to arouse Application
4. summary
In some scenes , We hope to pass NFC Touch to quickly pull up the application , Currently through NFC If the label is implemented, it needs enterprise certification . But we can use little bear pie for the time being Nano Instead of ,NFC During service configuration , Most of the information can be customized , The key is the package name , Module name ,MainAbility name ,productID Information cannot be wrong , One by one . Every time you modify the package name , Wake up different applications , All services should be republished to the test state .
Want to know more about open source , Please visit :
边栏推荐
- 2022年简历石沉大海,别投了,软件测试岗位饱和了....
- Review of Biochemistry VI · biological oxidation
- Wechat applet rich text plugin parser
- 直播预告│智汇云舟“数字孪生智慧园区解决方案”专场
- [error reporting] valueerror: it seems that you are using the keras 2 and you are passing both
- The office mode of traditional enterprises is changing. Why do enterprises need digital office?
- 第三章 第一节:函数的概念
- video实现控制视频进度和播放、暂停
- 数据访问之JPA
- Biochemistry review II. Nucleic acid
猜你喜欢
对象深浅拷贝,extends
Live broadcast preview │ special session of Zhihui Yunzhou "digital twin smart Park solutions"
Don't be ridiculous. Don't you know what abilities to improve if you want to enter a big factory? (collect quickly)
About for In and for Of understanding and use
第三章 第一节:函数的概念
融云超级群的「新能力」
关于IE6浏览器出现的问题的解决
MVC框架介绍
在线XML转CSV工具
互联网寒冬,3个月如何从功能测试进阶自动化测试?【附学习指南】
随机推荐
Section 18 of Chapter 2: character set and coding
Section 24 of Chapter 2: document operation: Writing
直播预告│智汇云舟“数字孪生智慧园区解决方案”专场
网络爬虫爬取b站励志弹幕并生成词云(精心笔记总结)
数据访问之JPA
别闹了,想进大厂还不知道提升哪些方面的能力吗?(赶快收藏)
About for In and for Of understanding and use
关于IE6浏览器出现的问题的解决
Laravel文档阅读笔记-How to deploy Laravel 8 project on Cpanel shared hosting
There is a question mark in the parameters passed by wechat applet, which can't be recognized " Content after (question mark)
华泰证券远程开户安全吗?有保障吗?
Intelligent science innovation lecture hall | Institute of automation he Huiguang: Research on deep learning brain mechanism based on visual information encoding and decoding
【OpenCV 例程300篇】234. 特征提取之主成分分析(PCA)
同花顺上面开户安全吗 etf交易规则及费用
京东云分布式链路追踪在金融场景的最佳实践
Symbol
call、apply、bind以及bind的兼容问题
[error reporting] valueerror: it seems that you are using the keras 2 and you are passing both
成功解决电脑麦克风不管用、电脑无法录制声音之出现的麦克风Realtek(R) Audio未插入
Proxy