Serial USB

![]() | ![]() | ![]() | ![]() |
Serial USB Module
- Overview
- Drivers
- Samples
- Projects
Serial USB Module
Key features • USB-C Connector | Resources |
Function | Description |
---|---|
DVer() | Returns the driver version |
The Code!
Modules ship with this script preloaded. Use Console to reload or modify the drivers. Additionally, some languages, such as Python, include DUELink.Engine.Record()
for recording scripts directly from the host.
tip
Serial-Usb module uses serial-uart API directly. No other drivers needed..
##### Driver Code Starts Here ###
fn DVer()
return 0.1
fend
##### User Code Starts Here #####
- Script
- Python
- JavaScript
Use Console to modify the default driver by adding this sample.
# Append this code at the bottom of the script, right after the driver.
# You MUST keep the driver code!!
SerCfg(115200, 1024) # set baudrate 115200, 1024 byte buffer
dim b1[1]
while 1
if SerB2R() > 0
SerRds(b1, 1000) # read data
b1[0] = b1[0] + 1 # increase read byte by 1
SerWrs(b1) # write back to sender
end
Wait(1)
wend
from DUELink.DUELinkController import DUELinkController
import time
availablePort = DUELinkController.GetConnectionPort()
duelink = DUELinkController(availablePort)
//code
Coming soon!
Ordering Info
Description | Part Number | Price |
---|---|---|
Serial USB | GDL-CMSERIALUSB-A | $00.00 |