USB LIN Converter

$28.00

LIN (Local interconnect network) Usb Converter (LUC) can work with PCs without additional drivers, creating a virtual COM port that handles LIN communication. Multiple features are supported:

  • LIN 2.1 support
  • Monitor mode for all frame reception and sending single frames.
  • Master mode, with up to 15 frame slots
  • Slave mode, with up to 15 frame slots
  • 19200/9600 option baud rate
  • Optical isolation for LIN
  • External 4.5 V to 28 V is needed for the LIN network
  • The device size is 31×18 mm (without a USB connector)
  • Termination resistors controlled by software
  • USB DFU compatible bootloader for new software
  • SLCAN compatible works with LINUX socket-can and some of the CAN-utils

USB LIN Converter

LIN (Local interconnect network) USB Converter (LUC) can work with your PC without additional drivers. It creates a virtual COM port that handles LIN communication.

Features supported:

  • LIN 2.1 support
  • Monitor mode for all frame reception and sending single frames.
  • Master mode, with up to 15 frame slots
  • selectable baud rate
  • Optical isolation for LIN
  • External 4.5 V to 28 V is needed for the LIN network
  • The device size is 31×18 mm (without a USB connector)
  • Termination resistors controlled by software
  • USB DFU compatible bootloader for new software
  • SLCAN compatible works with LINUX socket-can and some of the CAN-utils

Drivers: For proper work on Windows, you must install virtual com drivers from the ST site or download them here.

COM port Commands

Below is a list of all available commands. USART baud rate is virtual so it can be any. All commands are in ASCI format. Commands are terminated with newline character CR (0xD). In error, the device responds with a 0x7 value.

Command Description
O Opens device in master mode.
C Close the LIN port on the device; the frame will not be received.
Sx Baud rate selection:
S2 – 9600
S1,S3-S8 – 19200
V Get the hardware version.
v Get a firmware version.
N Get the serial number.
L Open the device in slave mode for LIN slave simulation.
l Open the device in monitor mode and message analyzer mode, with a single frame sending possibility.
tiiildd In Monitor mode, it transmits a full header and data frame.
In Master mode, update the table set with a new frame
In Slave mode, updates table set with new data
0ii: Identifier in hexadecimal format (000-0FF)
l: Data length (0-8)
dd: Data byte value in hexadecimal format (00-FF)
r0iil Monitor mode transmits the header only with a set ID and length; the subscribed slave should answer the header.
In Master mode, put or update the table set with this ID for continuous sending.
In Slave mode, updates table set with reception slot
Proper timing is set according to LIN standards.
0ii: Identifier in hexadecimal format (000-0FF)
l: Data length (0-8)
r1ff0 In Master mode, it starts sending frames from the table.
r2ff0 In Master, Slave mode clears the schedule table.
xm Switch checksum for classic x2 for enhanced x1

Example workflow for Monitor Mode

000005: C  (send close command) 
000006: v  (ask for firmware version)
000007: v0102 (get version number from device)
000008: V   (ask for hardware version)
000009: V0101
000010: N   
000011: N16000000
000012: W2D00
000013:
000014: S0  (speed setting, 19200)
000015: 
000016: L   (open in monitor mode)
000017: 
000018: r0128 (transmit header with 8 data bytes request, id 0x12)
000019: z
000020: t01280011223344556677 (slave responded for header request with 8 byte data frame)

Example workflow for Master Mode

000015: 
000016: O   (open in master mode)
000017: 
000018: r0018 (add to schedule table frame transmission header with 8 data bytes request, id 0x01)
000019: z
000018: r0022 (add to schedule table frame transmission header with 2 data bytes request, id 0x02)
000019: z
000020: t01280011223344556677 (add to schedule table frame transmission header + data (slave task) with 8 data bytes, id 0x12)
000021: z
000022: r1ff0 (start sending frames)
000023: z

Custom frame timing

You can tweak the timing in master mode. Just type the upper letter T instead of t or R instead of r then the format is similar

T 0 id id t1 t1 t2 t2 len d0 d0 d1 d1 d2 d2 

where:
id – frame id same as standard
t1 – frame offset in ms
t2 – response wait time in ms
Len – frame length
d0 …. – data
example frame with id 1 5 ms offset and 1 ms wait time after sending 3 bytes of data AA BB CC

T0005013AABBCC

Hardware

We are using ST STM32f04264 microcontroller. The device PCB is designed in ki-cad. All source files are available on GitHub here.

Software

Converter software is pure C code written in free TrueSTUDIO for STM32. All sources and releases with compilation instructions are available on our GitHub here.

Uploading new software

ULC has embedded a DFU USB bootloader for usage see UsbCANConverter(UCCB) project. See tutorial.

Tools

Python support

A dedicated Python library for LUC (uCANLinTools) has LDF parsing support, LIN frame (PIDs) encoding/decoding, LIN master, and slave support. See uCANLinTools for more info, source code, and examples. See here

Serial Port

You can use LUC on any operating system with a serial terminal program, for example, putty. A description of all available commands can be found in the About section. All commands are the same as for the USB-CAN converter so that all tools can be reused; see the UCAN USB-CAN converter project for libs and tools. LUC is also compatible with LINUX CAN-UTILS and SOCKET CAN. The device has its terminal written in JAVA, uCCBViewer.

UCCBViewer is a GUI program for both uCAN CAN and LIN converters. For the USB-LIN converter, uCCBViewer functionalities are frame reception, transmission, and master table setup. To run this program, Java Runtime Environment (JRE) needs to be installed. To run UCCBViewer on Linux, remember to run this program as a superuser. Sudo java -jar uCCBViewer-2.1.jar
 The newest release of UCCBViewer

Product Datasheet and Manual

If applicable, the Product Documentation such as Datasheet, Brochure, Reference Materials, CAD Design, STP Files, Manuals, and Tutorials will be available for download upon purchase from the My Account as needed. On the checkout page, please create an account to download product-related files upon purchase. You won’t be able to download otherwise.


Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

We are selling LIN CAN to USB Converters. Open source: Our projects are well documented and both open source and open hardware. Enable CAN access on Windows, Linux, Raspberry PI, and custom embedded platforms.

Shipping Policy

Please check your SPAM folder to ensure you accept emails from OzRobotics.com to receive your tracking number and download product-related files.

WE SHIP WORLDWIDE: We primarily ship via FedEx, UPS, DHL, and USPS because they’re reliable, fast, and easily trackable. We usually ship within two to three business days after the full payment. Standard delivery generally occurs within 5 to 7 business days after the shipping date. However, the delivery may take about 7 to 10 business days, depending on the shipping destination, logistics, weather conditions, product weight, size, or shipping company distribution structures.

SHIPPING COSTS: For some industrial products, e.g., heavy wheels, CNC machines, etc., the shipping cost is calculated based on the product weight, not quantity. To benefit from lower shipping costs for orders with multiple items, please contact us at sales@ozrobotics.com. Our shipping rates are listed clearly on each product page under the SHIPPING tab. Additionally, to see the shipping cost for your country, add the item to the Shopping Cart; you will see the shipping cost based on your Country and Location.

CUSTOMS and TARIFFS: While not all products require a tariff, some products may require a minimal tariff if applicable in your country. The total amount for your order does not include a customs fee/tariff. A tariff belongs to the buyer when applicable. Why don't we add tariffs to the product's retail price? - If all countries deducted the same tariff amount, we would have added the tariff amount to the product price. However, we do not do that because each country charges a different amount, while some do not even charge. Therefore, we can't add any tariff to the product's retail pricing. Oz Robotics, manufacturing partners, or Suppliers are not responsible for tariffs. Please check the "Made In:" and "Brand:" labels on the product page to see the product's origin. The total amount for your order does not include any duties, import taxes, customs fees, and GST/VAT. The buyer must pay all import duties. If you choose not to pay the tariff and parcel returns, there will not be any refund. Please click here to see more on Tariffs.

Return Policy

WITHIN 5 HOURS: Mistakes happen when ordering, so you have 5 hours to request an order cancellation, but even within 5 Hours, we still cannot refund the PayPal or Stripe Processing fee because they do not refund us. After 5 hours, your order has either been shipped, prepared to ship, or custom-made. Therefore, we cannot accept your cancellation request after this period has passed.

AFTER 5 HOURS: If you want to cancel your order after 5 Hours, we will deduct 30% of the total for restocking + PayPal or Stripe processing fees and the Return Shipping cost for unopened packages.

AFTER RECEIVING YOUR ORDER: If you decide not to keep your order after it arrives, we will deduct 80% of the total if we find it refundable after a review. Please see our Refund and Replacement Policy

EXCHANGE POLICY: Oz Robotics wants you to be happy with your new purchase. However, we abide by the exchange policy of our suppliers because we do not manufacture these products; our suppliers do. Once you use the product, our supplier(s) and we have the right not to issue a refund. Still, we will offer an exchange for wrongly purchased items or products with serious and irreversible defects or technical problem(s). The buyer will pay the shipping fee for wrongly purchased products or similar issues. If the product you purchased is defective, please email us at support@ozrobotics.com with photos or a video of the defective parts to evaluate before you send it. Click HERE for more on Refund and Replacement Policy

REFUND POLICY: Oz Robotics accepts refunds on a minimal basis unless there is a manufacturing defect. For electronic items, returns are only accepted on devices with serious and irreversible problems; meanwhile, the customer must apply for the returns within seven days of delivery. Before a refund acceptance, please include images or a video and any other proof of the defect. However, we abide by the exchange policy of our suppliers because we do not manufacture these products. For more info please visit Refund and Replacement Policy.

Other than our supplier's default policy, once a return is agreed upon, you can ship your defective item to the provided return address that you should receive from us first. Please ship the order in original packaging with all the accessories and additional parts. If the Required Parts are not sent back, they will be billed for or expected to be shipped later. And only once all items have arrived will our staff check the returned product for testing. Include in your package a signed letter stating the reason for your return, the original receipt, proof of defect, images, a video, etc. It will help us to speed up the process on your behalf.

The purchaser (customer/buyer) is responsible for all shipping costs when returning an item. However, upon receiving the returned order, we will assess the product. If it is determined that there is, in fact, a manufacturing defect, then we will refund the shipping costs as well as repair or replace or refund the full amount to the purchaser if the product is not fixable.

If you wish to return an unused product, please do so within seven days from the ship date for a refund on the purchase price minus shipping and handling. Refunds will be credited to the original credit card used for payment 24-48 HOURS after receiving the product back. We will charge a 30% of the total for restocking + PayPal or Stripe processing fees and the Return Shipping cost for unopened packages.

Once your return is received and inspected, and if you agree to a refund, refunds will be credited to the original credit card used for payment in 24-48 hours. Please note that we will charge an 80% restocking fee once you return a product without any defect.

Once your refund is processed, PayPal will return the money to the card used. It may take at least five business days (depending on the bank and credit company) before your refund is posted in your bank account and statements. Contact Us if you have not received your refund after five business days.

Do not return your product to our New York office. For any exchange or refunds, please email us first at support@ozrobotics.com for us to provide you with the steps that need to be followed. Any product you return must be in the same condition you received and returned in the original packaging without being used. Please keep the original receipt. More on Refund and Replacement Policy.

Shipping costs

Region / Country State Postcode Cost
Europe Any Any $20.00
Everywhere else Any Any $30.00