Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:48 21 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Touch Screen for CMM2

Author Message
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 851
Posted: 07:07am 20 Nov 2024
Copy link to clipboard 
Print this post

For some months now, I have been chatting with a Chinese supplier of industrial touch-monitors. I was looking for a TS with serial output. These guys supply these but I couldn't get through to them that I need the protocol. They just couldn't understand this. "We have driver" Yes but for PCs with operating systems...no good for MCUs.

Anyway I think it finally clicked and I just received this:

  Quote  Touch screen serial port communication protocol
Baud rate: 9600, data bit: 8, stop bit: 1, check bit: N. The format of the data packet sent (a total of 10 bytes):
55H, 54H, DO, D1, D2, D3, D4, FFH, 00H, D5 Among them: 55H, 54H---data packet start character.
D0---touch state, start touch is 81H,
keep touch is 82H, lift is 84H.
D1---touch point X coordinate low 8 bits.
D2--touch point X coordinate high 8 bits.
D3---touch point Y coordinate low 8 bits.
D4--touch point Y coordinate high 8 bits.
FFH, 00H---data packet end character.
D5-check byte, D5=D0+D1+D2+D3+D4-AEH, if greater than FFH, take the lower 8 bits, if less than 0, take the complement. If the check byte is wrong, abandon the data packet.
Note: Data will be sent continuously while the button is pressed, with one data packet every 30ms or so.


This could be good news because I really need a touchscreen for the CMM2.

I already interface with the serial output of the ELO-Touch but those are £500 touch monitors...not exactly hobbyist friendly.

I'll see about grabbing one for test.
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 851
Posted: 07:13am 20 Nov 2024
Copy link to clipboard 
Print this post

 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6756
Posted: 07:42am 20 Nov 2024
Copy link to clipboard 
Print this post

Should be interesting.
The protocol looks pretty sensible, especially as the packet is fixed length. Please let us know how you get on with it.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4212
Posted: 07:48am 20 Nov 2024
Copy link to clipboard 
Print this post

Hi Phenix,

One of our customers uses serial port touch screens (19"). But due to availability/cost they few years ago changed over to USB touch screens (still VGA or HDMI, but USB for touch). I am not sure if this is just a CH340 on the same serial protocol. I may be able to find more dataon them if required. But they where absolutely not cheap as I recall, and the touch requirements where severe (operate with gloves).

Volhout
Edited 2024-11-20 17:51 by Volhout
PicomiteVGA PETSCII ROBOTS
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 851
Posted: 08:42am 20 Nov 2024
Copy link to clipboard 
Print this post

  Volhout said  Hi Phenix,

One of our customers uses serial port touch screens (19"). But due to availability/cost they few years ago changed over to USB touch screens (still VGA or HDMI, but USB for touch). I am not sure if this is just a CH340 on the same serial protocol. I may be able to find more dataon them if required. But they where absolutely not cheap as I recall, and the touch requirements where severe (operate with gloves).

Volhout


Always interested, Harm but the relief for me is that; the protocol above is as simple as it gets and similar to what I had in the 80s with the MicroTouch (now 3M) capacitive screens. Their DOS mouse-emulating driver was horrid and so I used the raw protocol.
A few years ago, a customer requested that I modify the old DOS code to work with the latest ELO-Touch. Whoa, that was a bit of a challenge because they have a lot more going on. Took me a while to filter-out just what was needed. Manual attached.

The Big Book of Smartset.pdf
 
PeteCotton

Guru

Joined: 13/08/2020
Location: Canada
Posts: 367
Posted: 04:16pm 20 Nov 2024
Copy link to clipboard 
Print this post

Definitely interested in finding out how you get on with this.
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 851
Posted: 11:00pm 20 Nov 2024
Copy link to clipboard 
Print this post

Many moons ago, I acquired a company that had a very cool product that we supplied to lathe manufacturer in Bilbao.

Why was it cool? Well it was a 9-axis CNC lathe control and a regular machinist could make ridiculously complex parts without CAD/CAM. He simply selected pre-defined shapes on the touchscreen, linked them together and filled-in the dimensions and voila.

Today, we have desktop hobbyists and we have high-end machine shops who design on CAD and send CNC G-codes to the machine to make a part.

But there's an awful lot of small shops with big CNCs who don't wanna sit down at a CAD station. They know what the part needs to look like and would prefer to simply describe to the control, what they need and hit the start button.

This is what the CMM2 needs to handle on a touchscreen and the PicoMites will receive the motion commands to make things happen. All without the involvement of a BS operating system  
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024