#1
| |||
| |||
![]()
I wanted to transfer my files on the Serial Port 3 for this can you provide me the code in either java or .Net? As per your question the transferring of file on the serial port Rs 3c interface the code in Java is already provide by my friend and I provide you the Code in .Net for this you may have .NET Framework 3.5 and above Version here I am giving you the procedure for file transferring on the portrs3 1- Main Application Window Starts/stops the application specific driver to communicate with the serial port and configures the driver. main.png The Driver works similar to a state machine. Every state runs continually until it is jumped to another state or the driver stops. - IDE The application has over 50 different basic commands which make it easy not only to communicate with the serial port but also to perform data parsing and extraction. These commands are written in this editor and compiled into a binary file. ide-main.png Every driver must have an initialization state called "Init". For example; state Init // commands here end state the code which you may write on the code window of the Net Framework the codes are given in ASCII format Char Hex Meaning NUL 0x00 Ctrl-@ | NULL SOH 0x01 Ctrl-A | START OF HEADING STX 0x0 Ctrl-B | START OF TEXT ETX 0x03 Ctrl-C | END OF TEXT EOT 0x04 Ctrl-D | END OF TRANSMISSION ENQ 0x05 Ctrl-E | ENQUIRY ACK 0x06 Ctrl-F | ACKNOWLEDGE BEL 0x07 Ctrl-G | BELL BS 0x08 Ctrl-H | BACKSPACE HT 0x09 Ctrl-I | HORIZONTAL TABULATION LF 0x0A Ctrl-J | LINE FEED VT 0x0B Ctrl-K | VERTICAL TABULATION FF 0x0C Ctrl-L | FORM FEED CR 0x0D Ctrl-M | CARRIAGE RETURN SO 0x0E Ctrl-N | SHIFT OUT SI 0x0F Ctrl-O | SHIFT IN DLE 0x10 Ctrl-P | DATA LINK ESCAPE DC1 0x11 Ctrl-Q | DEVICE CONTROL 1 DC 0x1 Ctrl-R | DEVICE CONTROL DC3 0x13 Ctrl-S | DEVICE CONTROL 3 DC4 0x14 Ctrl-T | DEVICE CONTROL 4 NAK 0x15 Ctrl-U | NEGATIVE ACKNOWLEDGE SYN 0x16 Ctrl-V | SYNCHRONOUS IDLE ETB 0x17 Ctrl-W | END OF TRANSMISSION BLOCK CAN 0x18 Ctrl-X | CANCEL EM 0x19 Ctrl-Y | END OF MEDIUM SUB 0x1A Ctrl-Z | SUBSTITUTE ESC 0x1B Ctrl-[ | ESCAPE FS 0x1C Ctrl-\ | FILE SEPARATOR GS 0x1D Ctrl-] | GROUP SEPARATOR RS 0x1E Ctrl-^ | RECORD SEPARATOR US 0x1F Ctrl-_ | UNIT SEPARATOR DEL 0x7F Ctrl-? | DELETE Last edited by Gunjan; July 4th, 2019 at 05:17 PM. |