Gadget Serial (COM26) Driver



  • Projects
    EDFbrowserEDFlib for C/C++EDFlib for JavaEDFlib for PythonEDF de-identifierEDF test file generatorEDF for LabviewRS-232DSRemoteSerial Com TesterTimer library

To find the latest driver for your computer we recommend running our Free Driver Scan. LGE Mobile USB Serial Port (COM26) - Driver Download. Vendor: LG Electronics Inc. Right click on it and choose Update Driver. If there isn’t an option available for Update Driver, select Properties instead and choose Update Driver from the tabs. In the dialog, choose “Browse my computer for driver software” Select the correct file directory based on the model of the Gadget you have.

ITATI has been dealing for over 40 years in order to create gadgets and souvenirs of textiles extraction. Products are entirely conceived, designed and produced in Italy and they are characterized by the tipical creativity, quality and service of the Made in Italy. – Complies With Universal Serial Bus Specification Rev. 2.0 – Input: S-Video/Audio L+R/CVBS (Composite Video Broadcast Signal) – Support Windows 2000/XP/Vista, Linux(V4L), MacOS – USB bus powered – USB extension cable included. Get your own EasyCAP for Windows, Linux and yes, the Mac here. Get the older version of the EasyCAP from. COM26, Enabled=Y, USB Serial Port, FTDI, VCP0, FTDIBUS COMPORT&VID0403&PID6001, CNCA0, Enabled=Y, com0com - serial port emulator, Vyacheslav Frolov, com0com10, com0com port, CNCA0 where COM1 is a motherboard port, COM3 is a removed USB Prolific port, COM4 is a null modem, COM11 is a USB modem, COM12 (and COM13 to COM19) are an 8-way MRI PCI.

Here you can find code to use the serial port.
It has been tested with GCC on Linux and Mingw-w64 on Windows.
It uses polling to receive characters from the serial port.
Interrupt/event-based is not supported.
It is licensed under the GPL version 3.
No serial port available on your computer? Use a USB to RS232 cable.


Download

This is free software, it is experimental and available under the GPL License version 3.
Despite this software is intend to be usefull, there is no warranty, use this software at your own risk.

May 31, 2019 new version:
- Added support for hardware flow control using RTS and CTS lines.

Gadget serial com 26 driver download

May 20, 2019 new version:
- added function to check for status of 'RING'
- added 921600, 1500000, 2000000, 3000000 baud rates for windows
- extended comport range to COM32 for windows

November 22, 2017 new version:
- Bugfix: RS232_SendBuf() did not return the number of bytes on Linux.

August 5, 2017 new version:
- added a makefile for the demo's.

July 10, 2016 new version:
- added the function: RS232_GetPortnr().
- always unlock the device in case of an error.

December 19, 2015 new version:
- added the functions: RS232_flushRX(), RS232_flushTX() and RS232_flushRXTX().

October 11, 2015 new version:
- Check if the serial port is already opened by another process, before trying to open it.

January 10, 2015 new version:
- Fixed a bug that affected the parity settings.

December 6, 2014 new version:
- Make it compile on FreeBSD.
- Added the devices '/dev/cuau0', etc. needed for FreeBSD.

October 5, 2014 new version:
- Added the possibility to set the mode (databits, parity and stopbits).
- Changed function RS232_OpenComport(), from now on, an extra argument is required to set the mode.
- Fixed a bug that could set wrong baudrates on Linux systems (POSIX instead of BSD style).

Januari 31, 2014 new version:
- Fixed a bug that made it impossible to read from the serial port on Linux 64-bit systems.

December 26, 2013 new version:
- added the function RS232_IsDCDEnabled()

February 1, 2013 new version:
- added the prefix 'RS232_' to all functions in order to prevent clashes with other libraries
- set the DTR pin and RTS pin active when opening a serial port (some RS-422/485 converters need this to enable the outputbuffers)
- added the baudrates 500000 and 1000000 for windows, this can be usefull when using an FTDI-chip or USB-converter
- added the devices '/dev/ttyAMA0' and '/dev/ttyAMA1' for use with the Raspberry Pi
- added the devices '/dev/ttyACM0' and '/dev/ttyACM1' for use with the Atmel (USB-)microcontrollers
- added the devices '/dev/rfcomm0' and '/dev/rfcomm1' for use with Bluetooth
- added the devices '/dev/ircomm0' and '/dev/ircomm1' for Infrared communication
- added the following functions: RS232_enableDTR(), RS232_disableDTR(), RS232_enableRTS(), RS232_disableRTS() and RS232_IsDSREnabled()
- changed function 'cprintf()' to 'RS232_cputs()'

Gadget Serial Com 26 Drivers

The sourcecode

Usage:
git clone https://gitlab.com/Teuniz/RS-232.git
Include rs232.h in your program sourcecode (like: #include 'rs232.h') and compile and link rs232.c (add rs232.c to your project).

Functions

int RS232_OpenComport(int comport_number, int baudrate, const char * mode, int flowctrl)
Opens the comport, comportnumber starts with 0 (see the list of numbers).
Baudrate is expressed in baud per second i.e 115200 (see the list of possible baudrates).
Mode is a string in the form of '8N1', '7E2', etc.
8N1 means eight databits, no parity, one stopbit. If in doubt, use 8N1 (see the list of possible modes).
If flowctrl is set to 0, no flow control is used.
If flowctrl is set to 1, hardware flow control is enabled using the RTS/CTS lines.
Returns 1 in case of an error.
int RS232_PollComport(int comport_number, unsigned char *buf, int size)
Gets characters from the serial port (if any). Buf is a pointer to a buffer
and size the size of the buffer in bytes.
Returns the amount of received characters into the buffer. This can be less than size or zero!
It does not block or wait, it returns immediately, no matter if any characters have been received or not.
After succesfully opening the COM-port, connect this function to a timer.
The timer should have an interval of approx. 100 milliSeconds.
Do not forget to stop the timer before closing the COM-port.
int RS232_SendByte(int comport_number, unsigned char byte)
Sends a byte via the serial port. Returns 1 in case of an error.
int RS232_SendBuf(int comport_number, unsigned char *buf, int size)
Sends multiple bytes via the serial port. Buf is a pointer to a buffer
and size the size of the buffer in bytes.
Returns -1 in case of an error, otherwise it returns the amount of bytes sent.
This function blocks (it returns after all the bytes have been processed).
void RS232_CloseComport(int comport_number)
Closes the serial port.
void RS232_cputs(int comport_number, const char *text)
Sends a string via the serial port. String must be null-terminated.
int RS232_GetPortnr(const char *device)
Returns the comport number based on the device name e.g. 'ttyS0' or 'COM1'. (Doesn't mean the device actually exists!)
Returns -1 when not found.
The following functions are normally not needed but can be used to set or check the status of the control-lines:
void RS232_enableDTR(int comport_number)
Sets the DTR line high (active state).
void RS232_disableDTR(int comport_number)
Sets the DTR line low (non active state).
void RS232_enableRTS(int comport_number)
Sets the RTS line high (active state). Do not use this function when hardware flow control is enabled!
void RS232_disableRTS(int comport_number)
Sets the RTS line low (non active state). Do not use this function when hardware flow control is enabled!
int RS232_IsDSREnabled(int comport_number)
Checks the status of the DSR-pin. Returns 1 when the the DSR line is high (active state), otherwise 0.
int RS232_IsCTSEnabled(int comport_number)
Checks the status of the CTS-pin. Returns 1 when the the CTS line is high (active state), otherwise 0.
int RS232_IsDCDEnabled(int comport_number)
Checks the status of the DCD-pin. Returns 1 when the the DCD line is high (active state), otherwise 0.
int RS232_IsRINGEnabled(int comport_number)
Checks the status of the RING-pin. Returns 1 when the the RING line is high (active state), otherwise 0.
The following functions are normally not needed but can be used to empty the rx/tx buffers:
('discards data written to the serial port but not transmitted, or data received but not read')
void RS232_flushRX(int comport_number)
Flushes data received but not read.
void RS232_flushTX(int comport_number)
Flushes data written but not transmitted.
void RS232_flushRXTX(int comport_number)
Flushes both data received but not read, and data written but not transmitted.


Notes:

You don't need to call RS232_PollComport() when you only want to send characters.
Sending and receiving do not influence eachother.
The os (kernel) has an internal buffer of 4096 bytes.
If this buffer is full and a new character arrives on the serial port,
the oldest character in the buffer will be overwritten and thus will be lost.
After a successfull call to RS232_OpenComport(), the os will start to buffer incoming characters.
Do not use microsoft tools to compile this library.
The microsoft C-compiler is an old and retarded compiler that does not even support ANSI C99.

Demo:

Example code that demonstrates how to use the library to receive characters and print them to the screen:

Example code that demonstrates how to use the library to transmit characters and print them to the screen:

Gadget Serial Com 26 Driver Side Mirror


tip: To get access to the serial port on Linux, you need to be a member of the group 'dialout'.
Look here for a timer library.
Look here for a serial communication tester/debugger.


List of comport numbers, possible baudrates and modes:


port nr.Linuxwindows
0ttyS0COM1
1ttyS1COM2
2ttyS2COM3
3ttyS3COM4
4ttyS4COM5
5ttyS5COM6
6ttyS6COM7
7ttyS7COM8
8ttyS8COM9
9ttyS9COM10
10ttyS10COM11
11ttyS11COM12
12ttyS12COM13
13ttyS13COM14
14ttyS14COM15
15ttyS15COM16
16ttyUSB0COM17
17ttyUSB1COM18
18ttyUSB2COM19
19ttyUSB3COM20
20ttyUSB4COM21
21ttyUSB5COM22
22ttyAMA0COM23
23ttyAMA1COM24
24ttyACM0COM25
25ttyACM1COM26
26rfcomm0COM27
27rfcomm1COM28
28ircomm0COM29
29ircomm1COM30
30cuau0COM31
31cuau1COM32
32cuau2n.a.
33cuau3n.a.
34cuaU0n.a.
35cuaU1n.a.
36cuaU2n.a.
37cuaU3n.a.
Linuxwindows
50n.a.
75n.a.
110110
134n.a.
150n.a.
200n.a.
300300
600600
12001200
1800n.a.
24002400
48004800
96009600
1920019200
3840038400
5760057600
115200115200
230400128000
460800256000
500000500000
576000n.a.
921600921600
10000001000000
1152000n.a.
15000001500000
20000002000000
2500000n.a.
30000003000000
3500000n.a.
4000000n.a.
Mode
8N1
8O1
8E1
8N2
8O2
8E2
7N1
7O1
7E1
7N2
7O2
7E2
6N1
6O1
6E1
6N2
6O2
6E2
5N1
5O1
5E1
5N2
5O2
5E2


Note: Traditional (on-board) UART's usually have a speed limit of max. 115200 baud.
Special cards and USB to Serial converters can usually be set to higher baudrates.

Connector pinlayout


Gadget Serial Com 26 Driver Download


Gadget Serial Com 26 Driver Windows 7