കൂൾഗിയർ CAN പ്രോഗ്രാമിംഗ് 1 പോർട്ട് ഇതർനെറ്റ് ടു CAN ബസ് അഡാപ്റ്റർ
സ്പെസിഫിക്കേഷനുകൾ
- നിർമ്മാതാവ്: Coolgear Inc.
- റിലീസ് തീയതി: 01/24/2017
- പിന്തുണ: coolgear.com/support
ഉൽപ്പന്ന വിവരം
The CAN Programming Guide by Coolgear Inc. provides a detailed guide on programming the Controller Area Network (CAN) devices using their application programming interface.
ഇൻസ്റ്റലേഷൻ
- DLL, LIB, ഹെഡർ എന്നിവ ഇൻസ്റ്റാൾ ചെയ്യാൻ files, copy them to your application project directory. The specific locations may vary depending on your programming language and compiler configurations.
- Refer to your programming environment documentation for guidance.
Types and Structures
- The guide provides details on various types and structures used in CAN programming, like CAN_HANDLE, CAN_ERRORS, CAN_STATUS, and CAN_MSG.
Example കോഡ്
- ഗൈഡിൽ മുൻample code snippets to help you understand how to implement the functions in your application.
റിവിഷൻ ചരിത്രം
പുനരവലോകനം | തീയതി | അഭിപ്രായങ്ങൾ |
1.0 | 04/25/2024 First Release |
ആമുഖം
- Thank you for purchasing Coolgear’s 1 Port Serial RS232 to CAN Bus Adapter. A Controller Area Network (CAN) is a high-integrity asynchronous serial bus system for networking intelligent devices. It is often used in automotive and industrial systems.
- The CG-1P232CAN is designed to provide a fast, simple way to communicate with CAN bus devices. Connected to a serial port on your computer, the CG-1P232CAN instantly adds an industrial CAN bus channel to your host system.
- The CG-1P232CAN provides a cost-effective solution for customers to enable communication with CAN bus devices.
- The solution designed by the ARM Cortex-M0 32-bit microcontroller makes it very flexible in handling small bursts of CAN frames at a high speed.
- Plugging the CG-1P232CAN into the serial port, the CG-1P232CAN adapter provides instant connectivity to CAN bus devices.
- The CG-1P232CAN provides an industrial solution for applications of CAN bus multi-drop communications over short and long distances.
- The CG-1P232CAN provides DC +5V/+12V 500mA power for external devices and is powered from an external DC 12V power supply.
ഫീച്ചറുകൾ:
- Adds a CAN bus port on your computer by connecting to the RS-232 serial port
- One DB9 female connector (serial port)
- One DB9 male connector (CAN bus port)
- Includes one serial cable. Cable length: 100cm
- Powered by an external DC 12V power adapter
- Provides DC +5V/+12V 500mA power for external devices
- LEDs indicate initialization and CAN bus status
- CAN bus speed up to 1 Mbps
- Supports CAN 2.0A and CAN 2.0B protocols
- Supported CAN modes
- Standard mode: normal operation on the CAN bus
- Listen mode: passive receiving of CAN frames
- Echo mode: transmitter also receives sent frames (for testing purposes)
- CG-1P232CAN can be controlled over a serial port using simple ASCII commands
- Wide ambient temperature operation 0°C to 60°C (32°F to 140°F)
- CE, FCC അംഗീകാരം
- Designed by the ARM Cortex-M0 32-bit microcontroller
- Drivers are provided for Windows and Linux OS
- Supports SocketCAN (slcan driver) since kernel 2.6.38+
DIAGRAM OF CG-1P232CAN
പിസിബി ലേഔട്ട്
ബ്ലോക്ക് ഡയഗ്രം
PIN-OUT INFORMATION
The following is the pin-out of the connector for RS-232 serial port signals.
RS-232 Serial Port Pin-out for DB9 Female Connector
പിൻ നമ്പർ | സിഗ്നലുകൾ | വിവരണം |
1 | ഡിസിഡി | ഡാറ്റ കാരിയർ കണ്ടെത്തൽ |
2 | RxD | Receive Serial Data |
3 | TxD | Transmit Serial Data |
4 | – | സംവരണം |
5 | ജിഎൻഡി | സിഗ്നൽ ഗ്രൗണ്ട് |
6 | ഡിഎസ്ആർ | ഡാറ്റ സെറ്റ് തയ്യാറാണ് |
7 | ആർ.ടി.എസ് | അയക്കാനുള്ള അഭ്യർത്ഥന |
8 | സി.ടി.എസ് | അയക്കാൻ ക്ലിയർ |
9 | – | സംവരണം |
- The following are the pin-out of the DB-9 male connector and the terminal block for CAN bus signals.
CAN Bus Pin-out for DB9 Male Connector
പിൻ നമ്പർ | സിഗ്നലുകൾ | വിവരണം |
1 | CAN_V + | Provides +DC 5V or 12V power (optional) |
2 | CAN_L | CAN_L bus line (dominant level is low) |
3 | CAN_GND | സിഗ്നൽ നിലം |
4 | – | സംവരണം |
5 | – | സംവരണം |
6 | CAN_GND | സിഗ്നൽ നിലം |
7 | CAN_H | CAN_H bus line (dominant level is high) |
8 | – | സംവരണം |
9 | CAN_V + | Provides +DC 5V or 12V power (optional) |
CAN Bus Pin-out for 5-pin Terminal Block
പിൻ നമ്പർ | സിഗ്നലുകൾ | വിവരണം |
1 | CAN_GND | സിഗ്നൽ നിലം |
2 | CAN_H | CAN_H bus line (dominant level is high) |
3 | CAN_L | CAN_L bus line (dominant level is low) |
4 | -CAN_V+ | Provides +DC 5V or 12V power (optional) |
5 | CAN_GND | സിഗ്നൽ നിലം |
Enabling the DC +5V or DC +12V Power for External Devices
Outside the unit, there is a 3-pin DIP switch (SW) which are settings used for enabling 5V or 12V (500mA max.) power for external devices.
SW | ഫങ്ഷൻ | |
പിൻ 1 | ON | Enable DB9 pin 1 to provide 5V or 12V power for external devices |
ഓഫ് | Disable the 5V or 12V power on pin 1 | |
പിൻ 2 | ON | Enable DB9 pin 9 to provide 5V or 12V power for external devices |
ഓഫ് | Disable the 5V or 12V power on pin 9 | |
പിൻ 3 | ON | Enable terminal block pin 4 to provide 5V or 12V power for external devices |
ഓഫ് | Disable the 5V or 12V power on terminal block pin 4 |
- Inside the unit, there are three 3-pin header blocks (J1, J2, J3), which are jumpers for selecting 5V or 12V power for external devices.
ജമ്പർ | ഫങ്ഷൻ |
J1 pin 1, 2 short | Select DB9 pin 1 to provide 5V power for external devices |
J1 pin 2, 3 short | Select DB9 pin 1 to provide 12V power for external devices |
J2 pin 1, 2 short | Select DB9 pin 9 to provide 5V power for external devices |
J2 pin 2, 3 short | Select DB9 pin 9 to provide 12V power for external devices |
J3 pin 1, 2 short | Select terminal block pin 4 to provide 5V power for external devices |
J3 pin 2, 3 short | Select terminal block pin 4 to provide 12V power for external devices |
ടെർമിനേഷൻ റെസിസ്റ്ററുകൾ
- The serial-to-CAN adapter does not provide CAN bus termination resistors. A CAN bus network requires 120Ω termination resistors at each end.
- Generally, this must be done in the cabling. Since this depends on the installation of connections, please check your CAN bus cable specification for proper impedance matching.
ഫംഗ്ഷൻ വിവരണം
LED സൂചകങ്ങൾ
- The CG-1P232CANadapter has three LEDs (red LED, green LED, yellow LED) to indicate power and CAN bus statuses.
- The red LED indicates CG-1P232CAN adapter power; the green LED indicates CAN bus data activity, and the yellow LED indicates a CAN bus error.
- The following are the definition of different LED combinations.
A: Power up (device initialized)
- After CG-1P232CAN powers up (device initialized), the red LED turns on and the green & yellow LEDs flash four times to indicate that the CG-1P232CANadapter has been initialized.
B: CAN bus channel open/close
- When CAN bus channel opens, the green LED will turn on to indicate that the CAN bus channel is open; When CAN bus channel closes, the green LED will turn off to indicate that the CAN bus channel is closed.
C: CAN Bus Data Activity
- When a CAN data frame is sent or received, the green LED flashes continuously to indicate CAN bus data I/O activity.
D: CAN Bus Error
- When an error occurs on the CAN bus, the yellow LED flashes continuously to indicate a CAN bus error.
ASCII കമാൻഡ് സെറ്റ്
- With simple ASCII commands the CG-1P232CAN adapter can be controlled over the serial port. Users can send/receive commands from any simple serial terminal program.
- ExampLe: Set bitrate to 500 Kbps, open CAN channel, send CAN frame (ID = 002h, DLC = 3, Data = 11 22 33), close CAN.
കമാൻഡ് | പ്രതികരണം | ഫംഗ്ഷൻ |
എസ്6[സിആർ] | [CR] | Set the bitrate of the CG-1P232CAN adapter to 500 Kbps |
O[CR] | [CR] | Open CAN channel |
t0023112233[CR] | z[CR] | Send CAN message (ID = 002h, DLC = 3, Data = 11 22 33) |
C[CR] | [CR] | Close the CAN channel |
കമാൻഡ് ലിസ്റ്റ്
- The commands are line-based and terminated with the newline character CR (0xD). On error, the response will be 0x7 (BELL).
- The “help” command (‘H’, ‘h’, or ‘?’) will list supported commands.
കമാൻഡ് | പ്രതികരണം | ഫംഗ്ഷൻ |
H[CR] | [CR] | List all supported commands |
h[CR] | [CR] | |
?[CR] | z[CR] |
- ExampLe: H[CR]
റിട്ടേൺ കോഡ്
List of Supported Commands:
- 'ഓ’ – Open the channel in Normal mode
- 'എൽ' – Open the channel in Listen Only mode
- 'Y' – Open the channel in Loopback mode
- 'സി' – Close CAN Channel
- 'എസ്' – Set standard CAN bitrate
- 's' – Set non-standard CAN bitrate
- 'ടി' – Transmit a standard frame
- 'ടി' – Transmit an extended frame
- 'r' – Transmit a standard remote request frame
- 'ആർ' – Transmit an extended remote request frame
- 'Z' – Set timestamp ഓൺ/ഓഫ്
- ‘m – Set acceptance mask
- 'എം' – Set acceptance filter
- 'എഫ്' – Read status flag
- 'വി' – Check software version
- 'എൻ' – Check serial number
- ‘m – Set acceptance mask
- 'എം’ – Set acceptance filter
- 'ആർഎസ്ടി’ – Reset CG-1P232CAN Adapter
- ‘H’, ‘h’, or ‘?’ – List supported commands
Opening the CAN Bus Channel
- The CAN bus channel will be opened with the command O[CR], L[CR], or Y[CR].
- The command O[CR] will open the CAN bus channel in normal operation mode, and the command L[CR] will open the CAN bus channel in listen-only mode, in which no bus interaction will be done from the controller.
- The command Y[CR] will open the CAN bus channel in a loop-back mode, in which the CG-1P232CAN adapter will also receive the frames that it sends. Before you use one of the commands, you should set a bitrate with the commands S or s.
കമാൻഡ് | പ്രതികരണം | ഫംഗ്ഷൻ |
O[CR] | [CR] | Open the channel in Normal mode |
L[CR] | [CR] | Open the channel in Listen Only mode |
Y[CR] | [CR] | Open the channel in Loopback mode |
Closing the CAN Bus Channel
The CAN bus channel will be closed with the command C[CR]. The command can only be used if the CAN bus channel is open.
കമാൻഡ് | പ്രതികരണം | ഫംഗ്ഷൻ |
C[CR] | [CR] | Close the CAN channel if it is open |
Setting CAN Bitrate (Standard)
- The CAN bus bitrate can be set with the command SX[CR]. The command can only be used if the CAN bus channel is closed.
കമാൻഡ് | പ്രതികരണം | ഫംഗ്ഷൻ |
S6[CR] S00[CR] | [CR] | Set the bitrate of the CG-1P232CAN adapter to 500 Kbps |
എസ്0[സിആർ] | [CR] | Open CAN channel |
S1[CR] S2[CR] | [CR] | Send CAN message (ID = 002h, DLC = 3, Data = 11 22 33) |
എസ്3[സിആർ] | [CR] | Close the CAN channel |
എസ്4[സിആർ] | [CR] | |
എസ്5[സിആർ] | [CR] | |
എസ്6[സിആർ] | [CR] | |
എസ്7[സിആർ] | [CR] | |
എസ്8[സിആർ] | [CR] | Set the CAN bus bitrate to 1M |
സ്പെസിഫിക്കേഷനുകൾ
ജനറൽ
സീരിയൽ പോർട്ട് | Bosch C_CAN module |
കഴിയും ബസ് | Supports CAN 2.0A and CAN 2.0B |
ചിപ്സെറ്റ് | ARM Cortex-M0 32-bit microcontroller |
കഴിയും ബസ്
തുറമുഖങ്ങളുടെ എണ്ണം | 1 |
കണക്റ്റർ | DB9 പുരുഷ കണക്റ്റർ |
CAN Bus Speed | CAN 2.0A / 2.0B 5kbps to 1Mbps for transmit & receive |
സിഗ്നലുകൾ | CAN_H, CAN_L, CAN_GND, CAN_V+ |
CAN Bus Controller | Bosch C_CAN module |
എൽഇഡി | Power, CAN bus data activity, CAN bus error |
CAN Bus Mode | Standard mode: normal operation on the CAN bus. Listen mode: passive receiving of CAN Frames
Echo mode: transmitter also receives sent frames (for testing purposes) |
സംരക്ഷണം | +/-16 KV ESD protection for CAN signals |
സോഫ്റ്റ്വെയർ സവിശേഷതകൾ
API Library | Supports C/C++, C#, VB.NET and LabVIEW |
യൂട്ടിലിറ്റി | On-board firmware update utility |
മോണിറ്ററിംഗ് ടൂളുകൾ | Supported by CANHacker, the Titan CAN test program |
പവർ ആവശ്യകത
പവർ ഇൻപുട്ട് | DC 12V external power adapter |
വൈദ്യുതി ഉപഭോഗം | Max. 80mA@12VDC (no external devices) |
മെക്കാനിക്കൽ
കേസിംഗ് | SECC sheet metal (1mm) |
അളവുകൾ | 81 mm x 81 mm x 24 mm (L x W x H) |
ഭാരം | 175 ഗ്രാം |
പരിസ്ഥിതി
പ്രവർത്തന താപനില | 0°C മുതൽ 55°C വരെ (32°F മുതൽ 131°F വരെ) |
സംഭരണ താപനില | -20°C മുതൽ 75°C വരെ (-4°F മുതൽ 167°F വരെ) |
പ്രവർത്തന ഹ്യുമിഡിറ്റി | 5% മുതൽ 95% വരെ RH |
സുരക്ഷാ അംഗീകാരങ്ങൾ | CE, FCC |
ഞങ്ങളെ സമീപിക്കുക:
- Coolgear Inc.
- 5120 110-ആം അവന്യൂ നോർത്ത്
- ക്ലിയർവാട്ടർ, ഫ്ലോറിഡ 33760 യുഎസ്എ
- ടോൾ സൗജന്യം: 18886882188
- പ്രാദേശികം: 17272091300
- ഫാക്സ്: 17272091302
സുരക്ഷ
- Read the entire Installation Guide before implementing this product for your application. This guide contains important information about electrical connections that must be followed for safe and proper operation.
- ഉൽപ്പന്നം ഉപയോഗിക്കുന്നതിന് മുമ്പ് കാഴ്ച വൈകല്യങ്ങൾക്കായി ശ്രദ്ധാപൂർവ്വം പരിശോധിക്കുക.
- Keep away from areas where moisture builds, This product contains electrical components that can be damaged by moisture buildup, which can adversely affect your equipment connected to it.
- ഉൽപ്പന്നം ഡിസ്അസംബ്ലിംഗ് ചെയ്യരുത്. ഉൽപ്പന്നത്തിൻ്റെ ആന്തരിക ഘടകങ്ങൾ കൈകാര്യം ചെയ്യുന്നത് ഉപകരണത്തിൻ്റെ പ്രവർത്തനത്തെ ബാധിച്ചേക്കാവുന്ന ESD (ഇലക്ട്രോ-സ്റ്റാറ്റിക് ഡിസ്ചാർജ്) അപകടങ്ങൾക്ക് വിധേയമാക്കും.
- ഈ ഉൽപ്പന്നം ശരിയായി പ്രവർത്തിക്കുന്നില്ലെങ്കിൽ, ഞങ്ങളുടെ പിന്തുണാ ടീമിന് ഇമെയിൽ ചെയ്യുക support@coolgear.com.
USB ചാർജിംഗ് & കണക്റ്റിവിറ്റി വിദഗ്ധർ
എല്ലാ വലിയ യന്ത്രങ്ങളിലും
- For over 20 years, our rugged, off-the-shelf USB hubs, chargers, and serial products are ready to go for your next project.
- Based in the US, Coolgear has successfully engineered and deployed millions of connectivity solutions into industrial, medical, automotive, commercial, and aerospace industries.
- വിശ്വാസ്യതയുടെയും ഗുണമേന്മയുടെയും പ്രാധാന്യം ഞങ്ങൾ മനസ്സിലാക്കുന്നു, ഞങ്ങളുടെ എല്ലാ ഉപഭോക്താക്കളുടെ ആപ്ലിക്കേഷനുകളും നിർണ്ണായകമായി പരിഗണിക്കുന്നു, ദീർഘകാല ഇവൻ്റ് രഹിത സംയോജനം ഉറപ്പാക്കാൻ ആഗ്രഹിക്കുന്നു.
പാലിക്കൽ പ്രസ്താവന
- View ഉൽപ്പന്നത്തിൻ്റെ ഓൺലൈൻ ലിസ്റ്റിംഗിൽ കാണപ്പെടുന്ന ഉൽപ്പന്നത്തിൻ്റെ ബന്ധപ്പെട്ട സാങ്കേതിക ഡാറ്റ ഷീറ്റിനുള്ളിലെ അനുസരണം.
സാങ്കേതിക സഹായം
- When you reach out to Coolgear support, you’ll find yourself in the hands of a solution-oriented and knowledgeable expert ready to answer whatever question you throw at them.
- If you ever need help with your product, visit coolgear.com/support for support tickets, downloads, and other support resources. For the latest drivers, please visit coolgear.com/download.
വാറൻ്റി
ഉൽപ്പന്ന സ്റ്റാൻഡേർഡ് വാറൻ്റി
- One (1) Year Warranty from Date of Purchase Invoice. Coolgear will repair or replace any Product determined to be defective and which has been returned, at your risk and expense, to Coolgear. Where Coolgear determines in its sole judgment that repair or replacement of such Product is not reasonable, Coolgear will keep the non-conforming Product and refund to you the amount you paid for such Product. Returned Products shall be subject to the balance of the Warranty Period otherwise applicable.
- Any reconditioned parts used by Coolgear shall be subject to all the same provisions as otherwise applicable to new parts.
- THE FOREGOING DESCRIBES COOLGEAR’S SOLE LIABILITY, AND YOUR SOLE REMEDY, FOR ANY BREACH OF WARRANTY.
- IF YOU DO NOT AGREE WITH THE TERMS OF THIS LIMITED WARRANTY, YOU MUST RETURN THE PRODUCTS UNUSED AND IN THEIR ORIGINAL CONTAINERS TO YOUR ORIGIN OF PURCHASE.
ബാധ്യതയുടെ പരിമിതി
- This Limited Warranty does not cover: (i) defects or damages resulting from natural causes, casualty, accident, misuse or abuse, neglect, alterations, service or repair by other than Coolgear, including without limitation by you; (ii) improper installation or de-installation, operation or maintenance, improper connections with peripherals or other causes not arising out of defects in the materials or workmanship of Products; (iii) any Product for which the warranty sticker has been removed, modified or defaced; (iv) normal wear and tear; (v) damage to or loss of repaired or replaced Products during shipping by Coolgear except when such damage or loss is caused by poor or inadequate packaging by Coolgear; or (vi) Products purchased outside the United States. UNDER
- NO CIRCUMSTANCES WILL COOLGEAR BE LIABLE FOR ANY LOSS OF USE, INTERRUPTION OF BUSINESS OR ANY INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND (INCLUDING LOST PROFITS) REGARDLESS OF THE FORM OF ACTION WHETHER IN CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT PRODUCT LIABILITY OR OTHERWISE, EVEN IF COOLGEAR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
- IN NO EVENT SHALL THE TOTAL LIABILITY OF COOLGEAR HEREUNDER EXCEED THE GREATER OF $50.00 OR THE AMOUNT YOU ACTUALLY PAID FOR THE PRODUCT GIVING RISE TO SUCH LIABILITY, REGARDLESS OF THE CAUSE OF ACTION, IN CONTRACT, TORT, STRICT LIABILITY, OR OTHERWISE. NOT ALL JURISDICTIONS ALLOW SUCH LIMITATIONS OF DAMAGES, SO THE FOREGOING LIMITATIONS MAY NOT APPLY TO YOU.
© 2024 Coolgear, Inc. All Rights Reserved. All products and accompanying digital documentation, including images, are the property and/or trademarks of Coolgear Inc. Coolgear Inc. is continuously improving upon its products. - ഉൽപ്പന്ന സ്പെസിഫിക്കേഷനുകൾ അറിയിപ്പ് കൂടാതെ മാറ്റത്തിന് വിധേയമാണ്.
- സഹായം ആവശ്യമുണ്ട്? സന്ദർശിക്കുക: coolgear.com/support
- കൂൾഗിയർ, ഇൻക്.
- പതിപ്പ്: 1.0
- തീയതി: 04/25/2024
പതിവായി ചോദിക്കുന്ന ചോദ്യങ്ങൾ
- ചോദ്യം: DLL-ന് ഒരു പ്രത്യേക ഇൻസ്റ്റാളർ ഉണ്ടോ?
- A: No, there is no specific DLL installer provided. You need to manually copy the DLL, LIB, and Header files to your application project directory.
- ചോദ്യം: acceptance_code, acceptance_mask എന്നിവയ്ക്കുള്ള ഡിഫോൾട്ട് മൂല്യങ്ങൾ എന്തൊക്കെയാണ്?
- A: The default values are set to allow passing all frames – Acceptance Filter = 0x7FF for standard messages and 0x1FFFFFFF for extended messages.
പ്രമാണങ്ങൾ / വിഭവങ്ങൾ
![]() |
കൂൾഗിയർ CAN പ്രോഗ്രാമിംഗ് 1 പോർട്ട് ഇതർനെറ്റ് ടു CAN ബസ് അഡാപ്റ്റർ [pdf] ഇൻസ്റ്റലേഷൻ ഗൈഡ് CAN പ്രോഗ്രാമിംഗ് 1 പോർട്ട് ഇതർനെറ്റ് ടു CAN ബസ് അഡാപ്റ്റർ, CAN പ്രോഗ്രാമിംഗ്, 1 പോർട്ട് ഇതർനെറ്റ് ടു CAN ബസ് അഡാപ്റ്റർ, CAN ബസ് അഡാപ്റ്റർ, ബസ് അഡാപ്റ്റർ, അഡാപ്റ്റർ |