I have merged your questions into this topic again.
want to now that have chdkptp ability access to pc port serial usb for send receive signal from input output device like control a relay for on off a led light
general porpose input output
chdkptp itself doesn't have any special support for serial ports.
You can execute system command from chdkptp using normal Lua
os.execute. So if you have a program that already does whatever it is you want to do with the serial port, you can use that. You can also load Lua modules with require, including modules written in C, so if you have a library that does what you want, you could do it that way.
can chdkptp snapshot every frame continuously when camera is in live mode
i mean if camera record 10 fps can i snapshot 10 time in second
i want capture special frames in period of a video record i want do it in fastest possible
chdkptp can either capture still images (with the shoot, remoteshoot or rsint commands) or capture the live view (with lvdump or lvdumpimg)
Still images will not be faster than whatever the camera can capture normally.
The live view can record 10fps or more on many systems, but the resolution and quality is very low. It is also not synchronized to actual screen refresh, so you may see "tearing" where the live view contains parts of more than one frame.