4D Programming Cable

The 4D Programming Cable is a USB to Serial-TTL UART converter cable. It incorporates the Silabs CP2102 USB to Serial UART bridge IC (as used in the uUSB-MB5 module) which handles all the USB signalling and protocols. The cable provides a fast and simple way to connect all of the 4D devices that require TTL level serial interface to USB. The Programming Cable is also an essential hardware tool used for programming PmmC files and 4DGL user code downloads into the GOLDELOX and PICASO processors embedded in many 4D modules.

The cable contains a small internal electronic circuit board, utilising the CP2102 chip and special RESET circuitry, which is encapsulated into the USB connector at the end of the cable. The cable is RoHS compliant and is available with a 5pin female header (0.1″/2.54mm pitch) at TTL levels of 3.3V for RX and TX. The 5pin header is labeled with the appropriate signal names: +5V, RX, TX, GND, RESET which match the programming headers on the 4D devices. The cable also provides +5V DC supply to power up the target device. The cable is 1m in length and the circuitry is USB powered (USB 2.0 compliant full speed @ 12Mbps) and supports data rates from 300bps to 1Mbps.

Information about the cable

  • USB 2.0 compliant Full Speed 12Mbps maximum speed.
  • Hardware or Xon/Xoff handshaking supported; 300bps to 1Mbps.
  • UART supports 5-8 bit data, 1-2 Stop bits, odd/even and no parity.
  • Integrated EEPROM for Vendor ID, product ID, serial number, release number.
  • Virtual COM port drivers allow operation with existing COM port PC applications.
  • USB powered; -40 to +85 deg C temp range.
  • Small size; circuitry built inside the USB connector.
  • 1m in length
  • RoHS compliant.

Typical Applications:

  • The 4D Programming Cable makes an easy USB to Serial interface, so you can easily create:
  • Interface micro-controller UART to USB
  • USB to RS-232 converters
  • USB to RS-422/RS-485 converters
  • Upgrade legacy RS232 devices
  • Make PDA and cellphone USB interface cables
  • Serial Interface for barcode readers, POS terminals, etc.

The cable is designed specifically to interface directly with all 4D devices that use a 5pin programming header. In any non 4D device application, make sure the TX and RX lines from the cable are crossed over to the attached peripheral, that is, the TX from the cable connects to the RX of the target and the RX from the cable connects to the TX of the target device.

Driver Installation – Windows:

  • Download the zip file from the link on the left, “Drivers for Windows”, into a folder on your system and unzip the file.
  • Launch the application and follow the prompts given by the Install Wizard. This will copy all necessary files to a destination folder provided by the install wizard.
  • You will be advised to read the terms of the “Licence Agreement”. If you accept then the installation will proceed. Click “Next”.
  • Only change the “Destination Location” if there is a need to do so, otherwise accept the default location. Click “Next”.
  • Now we are ready to install. Click the “Install” button to start the installation.
  • When the “InstallShield Wizard Complete” window pops up you will need to select the tick box for the “Launch the CP210x VCP Driver Installer” option. Select this and click the “Finish” button.
  • The next step will Install the Drivers, click the “Install” button. This will complete the final installation.
  • You may need to restart your computer for the drivers to take effect. Do so if required.
  • Attach the 4D Programming Cable to the USB port and you’re ready to use it.

How to determine which COM port is allocated to the 4D Programming Cable:

  • There you will see the COM port that has been allocated for the Programming Cable.
  • Take note of the COM port number (e.g. COM4) as you will need this when configuring the COM port for applications that need to communicate with the Programming Cable.
  • Go to Control Panel and double click on the “System” Icon and the “System Properties” window will open up.
  • Click on the “Hardware” window tab and then the “Device Manager” button.
  • Go down the list and expand the “Ports (COM & LPT)” devices.

How to Increase available current from the USB port:

The link in the Software and Utilities section, on the left, “CP2102-Settings” contains a nice little utility program to increase the power (current) available from the Programming Cable. Default is 100ma which may not be enough for some devices. Up to 500ma is available on a USB port but the device (Programming Cable) must ask for what it needs from the host i.e. from the PC.

  • Connect the 4D Programming Cable to the USB port.
  • Unzip the file into a folder, name it anything you like.
  • Run the application “CP210xSetIDs.exe”.
  • A window will open up with lots small selectable boxes, we’re only interested in “Max Power (2 mA Units)”.
  • There you’ll see a default value of 32 (this is in hex, dec=50). Each increment of this value will provide an extra 2ma of current from the PC to the Programming Cable. So if we want to draw 200ma we need to enter 64 and for 300ma we need to enter 96 and for 400ma enter C8 and so on.
  • We can be greedy and go for the maximum so we need to change the value of 32 to FA. You can do so by highlighting this value with your mouse and typing FA. Maximum allowable current is 500ma for a USB device, so do not enter anything more than FA otherwise the setting will not take effect.
  • Once the desired hex value is entered for the current we need, tick the small box next to it.
  • Now click on the “Program Device” button (large button on the right hand side) and make sure the Programming Cable is attached to the USB port. This action will program the USB power descriptors within the CP2102 chip inside the cable with the power value that was entered.
  • Now close the application.
  • The above procedure only needs to be done once. So the next time the Programming Cable is attached to the USB port, it will receive the appropriate current from the USB port.

SPECIFICATIONS

Operating Ambient Temperature

-15°C to +65°C

Storage Temperature

-30°C to +70°C

RoHS?

Yes

Country of origin

China

CCCN / tarif code

85423109

ECCN export control code

EAR99

TARIC Code

8542319000

AHECC Code

85423109

Package Dimensions L x W x H (mm)

N/A

Product Weight (g)

30

Weight with Packaging (g)

30

REACH

Yes

CE Mark

Yes

SIZE & WEIGHT

Viewing Area: N/A

Module Width: N/A

Module Height: N/A

Module Depth: N/A

Module Weight: 30 g

WORKSHOP4 IDE

Workshop4 is a comprehensive software IDE for Microsoft Windows that provides an integrated software development platform for all of the 4D family of processors and modules. The IDE combines the Editor, Compiler, Linker and Downloader to develop complete 4DGL application code.

All user application code is developed within the Workshop4 IDE.

DEVELOPMENT ENVIRONMENTS THAT SUITS ANY APPLICATION & USER LEVEL

Workshop4 includes four development environments for the user to choose based on application requirements or even user skill level.

WORKSHOP4 PRO

Make complex widget design, simple.

Smart Widgets Editor is a powerful utility which enables the generation of Smart Widgets.

  • Users can create complex widgets with up to six layers, including the layer for the base image. The order of the layers can be arranged as desired.
  • Each layer can contain one or more images arranged in sequence that can be manipulated in a variety of ways. Image manipulation options include horizontal motion, vertical motion, and angular motion. Additionally, the transparency of a layer can be set.
  • Two or more layers can be linked to produce synchronized movements of images. This enables the generation of complex widgets with multiple moving parts. Clockwork feature is also supported. This enables users to quickly generate clock widgets.
  • Each layer can have a numeric part which can display numbers in various fonts and formats. Alternatively, the numeric part can be a fixed sequence of text.
  • The output frames can be utilized using any of the supported Workshop4 environments.

GENIE MAGIC

Genie Magic is an extension to ViSi-Genie, which is available in Workshop4 PRO. Genie Magic allows the User to add 4DGL code to various points in the ViSi-Genie backend code, which allows Users to take full advantage of the power of 4DGL, while retaining the speed and convenience of ViSi-Genie and its defined communication protocol.

Genie Magic allows you to enter 4DGL code in the form of Events, Code and Objects, along with various touch related additions too, giving you to the power to achieve advanced GUI’s in ViSi-Genie without having to write the full code yourself.

Genie Magic is fully supported by the genieArduino and geniePi libraries, making communication with an Arduino or Raspberry Pi host even more powerful.

When using Genie Magic in combination with the Smart Widget Editor, it is possible to use the Smart Widgets Editor tool and Smart Widgets to create other graphical user interface elements such as:

  • Dropdown Menu

  • Side Menu

  • ‘Carousel Slider’

  • List Box

  • Dock Menu
  • Quarter-Rotary Menu

  • Fading Slide-To-Unlock Button

  • Spectrum With Transparency

  • And Many Others

DOWNLOADS

Compatibility: Workshop4 is a Windows-only product. It is compatible with Windows 8 through to Windows 11.

Note some older OS such as ME, Vista, XP and 7 have not been tested for some time and are not supported by Microsoft anymore; however, they may still work.
Legacy support updates for the older OS may not be possible, depending on what issues are found. For best results, run a current Windows OS. It is possible to run Workshop4 under a VM on Linux or Mac. However, it is up to the User to set this up.

RFQ – VOLUME ORDERS

We are delighted to offer volume discounts to qualified customers and organizations.

Our dedicated Volume Sales team will address your specific requirements and help you get an accurate quotation in a timely manner.

Order Now

4D-Programming-Cable

  • USB to Serial-TTL UART converter cable.
  • Incorporates the Silabs CP2102 USB to Serial UART bridge IC which handles all the USB signalling and protocols.
  • Provides a fast and simple way to connect all of the 4D devices that require TTL level serial interface to USB.

US$24.95

We are delighted to offer volume discounts to qualified customers and organisations.

Starter Kits and Accessories

  • SK-90DCT Starter Kit for first-time users

    This Starter Kit includes everything you need to integrate the uLCD-90DCT into any project, and it is ideal for first-time users. The SK-90DCT Starter Kit includes:
    • uLCD-90DCT
    • gen4-IB interface board
    • 4D-UPA programmer
    • 4GB Industrial microSD Card
    • 150 mm FFC Cable
    • 5-way female-to-female ribbon cable with male-to-male adaptor

    US$259.95

  • SK-4DUINO-24-2 Starter Kit for first-time users

    This Starter Kit includes everything you need to integrate the 4Duino-24 into any project, and it is  ideal for first-time users. The SK-4DUINO-24-2 Starter Kit includes:
    • 4Duino-24 - 2.4" Resistive Touch Display Module
    • Male and Female Headers
    • uUSB-PA-II Programming Adaptor
    • 5-way F-F Ribbon Cable with Male to Male Adaptor
    • 4GB Industrial Grade microSD Card
    • Getting Started Guide Available as a Download

    US$119.95

  • SK-4DUINO-24 Starter Kit for first-time users

    This Starter Kit includes everything you need to integrate the 4Duino-24 into any project, and it is  ideal for first-time users. The SK-4DUINO-24 Starter Kit includes:
    • 4Duino-24 - 2.4" Resistive Touch Display Module
    • Male and Female Headers
    • uUSB-PA5-II Programming Adaptor
    • 5-way F-F Ribbon Cable with Male to Male Adaptor
    • 4GB Industrial Grade microSD Card
    • Getting Started Guide Available as a Download

    US$109.95

Related Products