德州仪器
直播中

杨兢兢

7年用户 204经验值
私信 关注
[问答]

用于BBB的4D系统Gen4 LCD触摸屏如何校准

我在使用电阻式触摸屏的4D Systems Gen4 7“LCD显示器上校准触摸屏时遇到问题。在显示器中心附近,校准非常接近但边缘附近的距离超过0.25英寸。在左下方
LCD的一角指针出现在触摸点右上方0.25英寸和0.25英寸处。在右上角,指针出现在触摸点左侧0.4英寸和.3英寸处。
Gen4用户手册中有关校准触摸屏的说明似乎不适用。
我的环境是BeagleBone Black,带有Debian Stretch的最新图片(Ver9.5日期2018-09-16)
如何校准触摸屏?

以上来自于谷歌翻译


以下为原文

        I am having a problem calibrating the touch screen on the 4D Systems Gen4 7" LCD display with a resistive touchscreen. Near the center of the display the calibration is very close but near the edges it’s off by more than 0.25 inch. At the lower left corner of the LCD the pointer appears approximately 0.25" above and 0.25" to the right the touch point. At the upper right hand corner the pointer appears 0.4" below and .3" to the left of the touch point.
The instructions for calibrating the touchscreen in the Gen4 user manual do not seem to apply. My environment is a BeagleBone Black with the latest image of Debian Stretch (Ver 9.5 dated 2018-09-16)
How can I calibrate the touch screen?

回帖(7)

郭雨桐

2018-10-23 00:01:09
@texasEE,这是我没有机会进行个人校准的屏幕之一。
我有机会测试4英寸和5英寸,所以那些已经实现了。
对于7英寸,这些值位于设备树覆盖中,从4英寸和5英寸显示器复制,仅禁用:  
github.com   
的BeagleBoard / bb.org的叠加/斑点/主/ SRC /臂/ BB-BONE-4D7R-01-00A1.dts#L192-L193
//触摸屏偏移-X =;
//触摸屏偏移-Y =;      
在你的beagle运行:
debian @ test-bbb-2:〜$ cd /opt/source/bb.org-overlays/
debian @ test-bbb-2:/opt/source/bb.org-overlays$ git pull
已经是最新的。
debian @ test-bbb-2:/opt/source/bb.org-overlays$ nano src / arm / BB-BONE-4D7R-01-00A1.dts
取消注释: 
interrupt-parent =; 
中断=; 
//触摸屏偏移-X =; 
//触摸屏偏移-Y =; 
触摸屏的倒Y型; 
};
至: 
interrupt-parent =; 
中断=; 
触摸屏偏移-X =; 
触摸屏的偏移Y =; 
触摸屏的倒Y型; 
};
然后通过以下方式重建和安装:
debian @ test-bbb-2:/opt/source/bb.org-overlays$ make
debian @ test-bbb-2:/opt/source/bb.org-overlays$ sudo make install
然后重新启动测试。
问候,

以上来自于谷歌翻译


以下为原文

        @texasEE, this is one of the screen’s i haven’t had a chance to personally calibrate yet. I had a chance to test the 4 and 5 inch, so those have it implemented.  For the 7-inch, the values are in the device tree overlay, copied from the 4 and 5 inch displays, just disabled:
        github.com        beagleboard/bb.org-overlays/blob/master/src/arm/BB-BONE-4D7R-01-00A1.dts#L192-L193


  • //touchscreen-offset-x=<250>;
  • //touchscreen-offset-y=<300>;
                On your beagle run:
debian@test-bbb-2:~$ cd /opt/source/bb.org-overlays/debian@test-bbb-2:/opt/source/bb.org-overlays$ git pullAlready up-to-date.debian@test-bbb-2:/opt/source/bb.org-overlays$ nano src/arm/BB-BONE-4D7R-01-00A1.dtsUn-Comment:
                                interrupt-parent = <&gpio0>;                                interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;                                //touchscreen-offset-x=<250>;                                //touchscreen-offset-y=<300>;                                touchscreen-inverted-y;                        };to:
                                interrupt-parent = <&gpio0>;                                interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;                                touchscreen-offset-x=<250>;                                touchscreen-offset-y=<300>;                                touchscreen-inverted-y;                        };Then rebuild and install via:
debian@test-bbb-2:/opt/source/bb.org-overlays$ makedebian@test-bbb-2:/opt/source/bb.org-overlays$ sudo make installand then restart to test.
Regards,
举报

李欣媛

2018-10-23 00:15:26
我已经尝试过编辑touchscreen-offset-x&amp;
touchscreen-offset-y值从250到5000,结果非常少。
光标仍然从屏幕边缘附近的触摸位置偏离大约相同的量。
您能否提供预期数值的概念以及数字增加或减少时我应该期待什么?

以上来自于谷歌翻译


以下为原文

        I’ve tried editing the touchscreen-offset-x & touchscreen-offset-y values from 250 to 5000 with very little results. Cursor is still off from touch position near the edges of the screen by about the same amount. Can you provide some idea of expected number values and what I should expect as number is increased or decreased?
举报

郭雨桐

2018-10-23 00:22:38
@texasEE,我相信他们是微芯片触摸传感器的像素值......但是由于你没有得到任何好的反馈,请运行这个脚本并将它的输出分享给这个线程。
sudo /opt/scripts/tools/version.sh
问候,

以上来自于谷歌翻译


以下为原文

        @texasEE, i belive they are pixel values in the microchip touch sensor… But since you aren’t getting any good feedback, please run this script and share it’s output to this thread.
sudo /opt/scripts/tools/version.shRegards,
举报

李欣媛

2018-10-23 00:34:10
/opt/scripts/tools/version.sh的输出
GIT中:/选择/脚本/:[73593ebe3b7d3cc381eeb502d45ccb33a6ec5e78]
EEPROM:[A335BNLT000C1826BBBG0816]
模型:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Image 2018-01-28]
引导加载程序:[eMMC-(默认值)]:[的/ dev / mmcblk1]:[U-Boot的2018.01-00002-g9aa111a004]:[位置:DD MBR]
内核:[4.9.105-TI-R114]
的NodeJS:[v6.12.3]
uboot_overlay_options:[enable_uboot_overlays = 1]
uboot_overlay_options:[uboot_overlay_pru = / LIB /固件/ AM335X-PRU-RPROC-4-14-TI-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_pru = / LIB /固件/ AM335X-PRU-UIO-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal = 1]
uboot_overlay_options:[dtb_overlay = / LIB /固件/ BBB-VIPMOTOR-PRU-00A0.dtbo]
PKG检查:单独升级运行:[命令和apt安装--only升级&安培; LT; PKG&安培; GT;]
PKG:[BB-斗篷叠加]:[4.4.20180803.0-0rcnee0〜拉伸+ 20180804]
PKG:[BB-wl18xx固件]:[1.20170829-0rcnee2〜拉伸+ 20180104]
PKG:的kmod]:[23-2rcnee1〜拉伸+ 20171005]
PKG:[roboticscape]:[0.3.4-git20170602-0rcnee4〜拉伸+ 20171108]:[GOT_REPLACED_BY_NEXT]
警告:PKG:[librobotcontrol]:[NOT_INSTALLED]
PKG:[固件-TI-连通]:[20170823-1rcnee0〜拉伸+ 20170830]
组:[Debian的:Debian的ADM kmem的拨出光驱软驱音频视频畅游用户plugdev systemd期刊I2C蓝牙NETDEV cloud9ide GPIO PWM eqep管理SPI tisdk韦斯顿推出xenomai]
CMDLINE:[控制台= ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled = 1根=的/ dev / mmcblk1p1 RO rootfstype = EXT4 rootwait uboot_detected_capes = BB-骨LCD7-01,coherent_pool = 1M net.ifnames = 0安静]
dmesg |
grep pinctrl-single
[1.404269] pinctrl单44e10800.pinmux:142个管脚在PA f9e10800大小568
dmesg |
grep gpio-of-helper
[1.404883] GPIO-的辅助OCP:gpio_helper:准备
[1.405495] gpio-of-helper ocp:cape-universal:ready
结束

以上来自于谷歌翻译


以下为原文

        Output from /opt/scripts/tools/version.sh
git:/opt/scripts/:[73593ebe3b7d3cc381eeb502d45ccb33a6ec5e78]eeprom:[A335BNLT000C1826BBBG0816]model:[TI_AM335x_BeagleBone_Black]dogtag:[BeagleBoard.org Debian Image 2018-01-28]bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2018.01-00002-g9aa111a004]:[location: dd MBR]kernel:[4.9.105-ti-r114]nodejs:[v6.12.3]uboot_overlay_options:[enable_uboot_overlays=1]uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo]uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo]uboot_overlay_options:[enable_uboot_cape_universal=1]uboot_overlay_options:[dtb_overlay=/lib/firmware/BBB-VIPMOTOR-PRU-00A0.dtbo]pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]pkg:[bb-cape-overlays]:[4.4.20180803.0-0rcnee0~stretch+20180804]pkg:[bb-wl18xx-firmware]:[1.20170829-0rcnee2~stretch+20180104]pkg:[kmod]:[23-2rcnee1~stretch+20171005]pkg:[roboticscape]:[0.3.4-git20170602-0rcnee4~stretch+20171108]:[GOT_REPLACED_BY_NEXT]WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]pkg:[firmware-ti-connectivity]:[20170823-1rcnee0~stretch+20170830]groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait uboot_detected_capes=BB-BONE-LCD7-01, coherent_pool=1M net.ifnames=0 quiet]dmesg | grep pinctrl-single[    1.404269] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568dmesg | grep gpio-of-helper[    1.404883] gpio-of-helper ocp:gpio_helper: ready[    1.405495] gpio-of-helper ocp:cape-universal: readyEND
举报

更多回帖

发帖
×
20
完善资料,
赚取积分