6083 views|14 replies

9707

Posts

24

Resources
The OP
 

BlueNRG-1 HID Touchscreen Code [Copy link]

 
 
There are few examples of using BLE to implement HID Touch Screen on the Internet. I tried it today. It can be connected under IOS, but it cannot be operated. There will be a mouse icon under ANDROID, and the function is the same as touching with hands. Only single-point touch is implemented. The code has not been changed much. Use BlueNRG-1_2 DK 2.5.0\Project\BLE_Examples\BLE_HID_Peripheral example to burn the code and connect to the mobile phone. Press PUSH1 or PUSH2 on the development board and the pointer will move from the upper left corner to the lower right corner. The descriptor comes from the Internet.
  1. uint8_t reportDesc[] = { 0x05, 0x0d, // USAGE_PAGE (Digitizers) 0x09, 0x04, // USAGE (Touch Screen) 0xa1, 0x01, // COLLECTION (Application) 0x85, REPORT_ID, // REPORT_ID (4) 0x09, 0x20, // USAGE (Stylus) 0xa1, 0x00, // COLLECTION (Physical) 0x09, 0x42, // USAGE (Tip Switch) 0x09, 0x32, // USAGE (In Range) 0x15, 0x00, // LOGICAL_MINIMUM (0) 0x25, 0x01, // LOGICAL_MAXIMUM (1) 0x 75, 0x01, // REPORT_SIZE (1) 0x95, 0x02, // REPORT_COUNT (2) 0x81, 0x02, // INPUT (Data,Var,Abs) 0x75, 0x01, // REPORT_SIZE (1) 0x95, 0x06, // REPORT_COUNT (6) 0x81, 0x01, // INPUT (Cnst,Ary,Abs) 0x05, 0x01, // USAGE_PAGE (Generic Desktop) 0x46, 0x10, 0x27, // PHYSICAL_MAXIMUM (10000) 0x26, 0x10, 0x27, // LOGICAL_MAXIMUM (10000) 0x75, 0x 10, // REPORT_SIZE (16) 0x95, 0x01, // REPORT_COUNT (1) 0x55, 0x0F, // UNIT_EXPONENT (-1) 0x65, 0x11, // UNIT (cm,SI Linear) 0x35, 0x00, // PHYSICAL_MINIMUM (0) 0x45, 0x00, // PHYSICAL_MAXIMUM (0) 0x09, 0x30, // USAGE (X) 0x81, 0x02, // INPUT (Data,Var,Abs) 0x09, 0x31, // USAGE (Y) 0x81, 0x02, // INPUT (Data,Var,Abs) 0xc0, // END_COLLECTION 0xc0, // END_CO LLECTION };
复制代码
游客,如果您要查看本帖隐藏内容请回复

This post is from ST - Low Power RF

Latest reply

Can you make a page turner?   Details Published on 2023-12-14 15:37
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 

38

Posts

0

Resources
2
 
Haha, I just saw today that you also achieved it
This post is from ST - Low Power RF
 
 
 

38

Posts

0

Resources
3
 
I thought it would become a hot topic, but it turns out this thing is a bit off-the-beaten-path and no one is paying attention to it. How embarrassing https://en.eeworld.com/bbs/thread-651454-1-1.html
This post is from ST - Low Power RF

Comments

Few people play and there is little information online  Details Published on 2018-7-20 10:13
 
 
 

9707

Posts

24

Resources
4
 
kangear posted on 2018-7-20 09:31 I thought it would become a hot topic, but it turns out that this thing is a bit niche and no one pays attention to it. It's embarrassing. https://en.eeworld.com/bbs/thread ...
There are few people playing it and there is little information online
This post is from ST - Low Power RF
 
 
 

1

Posts

0

Resources
5
 
LOOK
This post is from ST - Low Power RF
 
 
 

7

Posts

0

Resources
6
 
Just passing by and taking a look, does it mean that you can directly use the touch of your hands to operate the phone?
This post is from ST - Low Power RF

Comments

Right  Details Published on 2019-3-14 20:45
 
 
 

9707

Posts

24

Resources
7
 
god曼 posted on 2019-3-14 17:11 I just passed by and saw it. Does it mean that it can directly replace the touch of the hand to operate the mobile phone?
Yes
This post is from ST - Low Power RF
 
 
 

5

Posts

0

Resources
8
 
See how to do it~
This post is from ST - Low Power RF
 
 
 

256

Posts

0

Resources
9
 
Does the iOS side need to undergo MFi certification?
This post is from ST - Low Power RF

Comments

BLE doesn't seem to be needed  Details Published on 2019-5-28 14:27
 
 
 

9707

Posts

24

Resources
10
 
viphotman posted on 2019-5-28 13:49 Does the iOS side need to be MFi certified?
BLE does not seem to require
This post is from ST - Low Power RF

Comments

HID?  Details Published on 2019-5-28 14:38
 
 
 

256

Posts

0

Resources
11
 
littleshrimp posted on 2019-5-28 14:27 BLE doesn't seem to be needed
HID is needed
This post is from ST - Low Power RF

Comments

Keyboard is not needed, mouse and touch screen are not clear  Details Published on 2019-5-28 18:00
 
 
 

9707

Posts

24

Resources
12
 
Keyboard is not required, mouse and touch screen are not clear
This post is from ST - Low Power RF
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

10

Posts

0

Resources
13
 
.............
This post is from ST - Low Power RF
 
 
 

19

Posts

0

Resources
14
 

Thanks for sharing!

This post is from ST - Low Power RF
 
 
 

1

Posts

0

Resources
15
 

Can you make a page turner?

This post is from ST - Low Power RF
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list