<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to connect serial devices ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/</id><updated>2024-01-06T19:46:20.282000Z</updated><subtitle>Recent posts to How to connect serial devices ?</subtitle><entry><title>How to connect serial devices ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/?limit=25&amp;page=5#1e18" rel="alternate"/><published>2024-01-06T19:46:20.282000Z</published><updated>2024-01-06T19:46:20.282000Z</updated><author><name>usacodesysuser</name><uri>https://forge.codesys.com/u/usacodesysuser/</uri></author><id>https://forge.codesys.com5eb58396b1bddfb7c48a19cdb1083a6fb713ed3d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="user-mention" href="/u/eschwellinger/"&gt;@eschwellinger&lt;/a&gt; do you have any examples of using a USB barcode scanner?  I have read through the forums here and I am unable to find how to get the barcode data to populate in a text field without having to first click into the text field to activate it.  Is there a library that allows you to access the barcode data?  I am really new to this in general any help is greatly appreciated, hopefully you have a pretty clear example&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to connect serial devices ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/?limit=25&amp;page=5#66cf" rel="alternate"/><published>2023-03-23T13:01:27.672000Z</published><updated>2023-03-23T13:01:27.672000Z</updated><author><name>r-keb</name><uri>https://forge.codesys.com/u/r-keb/</uri></author><id>https://forge.codesys.com0e59301e5e46bedf91a5e6c91cfbd54296386b63</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm facing a particularly odd issue, which is when I try to write the data to the rs485 interface, the start and end voltages of the packet are not sent through the A wire. I recorded this issue while comparing the sent data using an oscilloscope. When using the USB-to-rs485 interfaces and realterm terminal program, all is well and the data is then read by the slave and returns the requested information. But when using the rs485 on the PiXtend V2-L, there is no response.&lt;/p&gt;
&lt;p&gt;Does anybody have an idea of what could be the issue here? Is it the PiXtend, rpi, CAA SerialCom library (also tried with SysCom library and the result was the same) or perhaps something else? I've checked that the parameters match multiple times.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Rok&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to connect serial devices ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/?limit=25&amp;page=5#0eca" rel="alternate"/><published>2023-03-23T13:01:25.363000Z</published><updated>2023-03-23T13:01:25.363000Z</updated><author><name>r-keb</name><uri>https://forge.codesys.com/u/r-keb/</uri></author><id>https://forge.codesys.comaac583f22fe60fb717f8f7b45c122fc305d04ea5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm facing a particularly odd issue, which is when I try to write the data to the rs485 interface, the start and end voltages of the packet are not sent through the A wire. I recorded this issue while comparing the sent data using an oscilloscope. When using the USB-to-rs485 interfaces and realterm terminal program, all is well and the data is then read by the slave and returns the requested information. But when using the rs485 on the PiXtend V2-L, there is no response.&lt;/p&gt;
&lt;p&gt;Does anybody have an idea of what could be the issue here? Is it the PiXtend, rpi, CAA SerialCom library (also tried with SysCom library and the result was the same) or perhaps something else? I've checked that the parameters match multiple times.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Rok&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to connect serial devices ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/?limit=25&amp;page=5#bc7e" rel="alternate"/><published>2023-01-26T16:27:31.969000Z</published><updated>2023-01-26T16:27:31.969000Z</updated><author><name>oleanderkiro</name><uri>https://forge.codesys.com/u/oleanderkiro/</uri></author><id>https://forge.codesys.com59ff47bb7c80537a7489e328430d84152f236403</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I receive:"&lt;span&gt;[    0.000000]&lt;/span&gt; Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835                                                                                                                                                             .enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=800 bcm2708_f                                                                                                                                                             b.fbheight=600 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x                                                                                                                                                             40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=eb299098-02 rootfstype                                                                                                                                                             =ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles&lt;br/&gt;
&lt;span&gt;[    0.000475]&lt;/span&gt; printk: console &lt;span&gt;[tty1]&lt;/span&gt; enabled&lt;br/&gt;
&lt;span&gt;[    2.931350]&lt;/span&gt; 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 114, base_baud                                                                                                                                                              = 0) is a PL011 rev2&lt;br/&gt;
&lt;span&gt;[    2.934089]&lt;/span&gt; printk: console &lt;span&gt;[ttyS0]&lt;/span&gt; disabled&lt;br/&gt;
&lt;span&gt;[    2.934217]&lt;/span&gt; 3f215040.serial: ttyS0 at MMIO 0x3f215040 (irq = 86, base_baud =                                                                                                                                                              50000000) is a 16550&lt;br/&gt;
&lt;span&gt;[    2.934482]&lt;/span&gt; printk: console &lt;span&gt;[ttyS0]&lt;/span&gt; enabled&lt;br/&gt;
&lt;span&gt;[   10.430930]&lt;/span&gt; systemd&lt;a class="alink" href="/forge/talk-ru/1/"&gt;[1]&lt;/a&gt;: Created slice system-getty.slice.&lt;br/&gt;
&lt;span&gt;[   10.434094]&lt;/span&gt; systemd&lt;a class="alink" href="/forge/talk-ru/1/"&gt;[1]&lt;/a&gt;: Created slice system-serial\x2dgetty.slice."&lt;/p&gt;
&lt;p&gt;but&lt;br/&gt;
/dev $ ls tty*&lt;br/&gt;
tty   tty10  tty13  tty16  tty19  tty21  tty24  tty27  tty3   tty32  tty35  tty38  tty40  tty43  tty46  tty49  tty51  tty54  tty57  tty6   tty62  tty8     ttyprintk&lt;br/&gt;
tty0  tty11  tty14  tty17  tty2   tty22  tty25  tty28  tty30  tty33  tty36  tty39  tty41  tty44  tty47  tty5   tty52  tty55  tty58  tty60  tty63  tty9     ttyS0&lt;br/&gt;
tty1  tty12  tty15  tty18  tty20  tty23  tty26  tty29  tty31  tty34  tty37  tty4   tty42  tty45  tty48  tty50  tty53  tty56  tty59  tty61  tty7   ttyAMA0&lt;br/&gt;
 Is the interface ttyAMA0 ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to connect serial devices ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/?limit=25&amp;page=5#6e0c" rel="alternate"/><published>2023-01-25T18:21:23.358000Z</published><updated>2023-01-25T18:21:23.358000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comcee5d0a8eab7552855e3c1be666c46b79b5c0b53</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;dmesg | grep -i tty&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to connect serial devices ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/?limit=25&amp;page=5#e894" rel="alternate"/><published>2023-01-24T16:13:08.572000Z</published><updated>2023-01-24T16:13:08.572000Z</updated><author><name>oleanderkiro</name><uri>https://forge.codesys.com/u/oleanderkiro/</uri></author><id>https://forge.codesys.com6c15689f73d0806d7a145ad397673cb78dff6cd5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I receive a long list, what shell I receive ?&lt;br/&gt;
With "lsusb" I receive: "Bus 001 Device 007: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC"&lt;br/&gt;
I want to acces on this port. With lsusb -vs I receive :&lt;br/&gt;
"idVendor           0x0403 Future Technology Devices International, Ltd&lt;br/&gt;
  idProduct          0x6001 FT232 Serial (UART) IC&lt;br/&gt;
  bcdDevice            6.00&lt;br/&gt;
  iManufacturer           1 FTDI&lt;br/&gt;
  iProduct                2 FT232R USB UART&lt;br/&gt;
  iSerial                 3 AB0JV1PJ"&lt;br/&gt;
  How can I reach a success ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to connect serial devices ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/?limit=25&amp;page=5#e257" rel="alternate"/><published>2023-01-21T05:49:38.934000Z</published><updated>2023-01-21T05:49:38.934000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.coma784d4b7e40c861e1ce0bf84ba6e7405698ed9fc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;check with 'dmesg'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to connect serial devices ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/?limit=25&amp;page=5#9c0e" rel="alternate"/><published>2023-01-20T16:46:53.566000Z</published><updated>2023-01-20T16:46:53.566000Z</updated><author><name>oleanderkiro</name><uri>https://forge.codesys.com/u/oleanderkiro/</uri></author><id>https://forge.codesys.comef5b7cb28aed00a805bfeb6dbe6b55cbd011e5cf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I want to control a model railway via usb (NEM451).&lt;br/&gt;
So I wanted to use your program. I can connect the interface directly to 1 of the 4 usb-ports.&lt;br/&gt;
If I try to search the USB-Port I receive:&lt;br/&gt;
Bus 001 Device 004: ID 28a0:1185  USB OPTICAL MOUSE&lt;br/&gt;
Bus 001 Device 005: ID 1c4f:0016 SiGma Micro USB Keyboard&lt;br/&gt;
Bus 001 Device 006: ID 0424:7800 Microchip Technology, Inc. (formerly SMSC)&lt;br/&gt;
Bus 001 Device 003: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub&lt;br/&gt;
Bus 001 Device 002: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub&lt;br/&gt;
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;br/&gt;
but not a tty-port ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to connect serial devices ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/?limit=25&amp;page=5#4f62" rel="alternate"/><published>2022-06-24T07:26:45.096000Z</published><updated>2022-06-24T07:26:45.096000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comed240c400c0823a62938e8dcedff4ae59e6aad89</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is it a RS485 adapter - if so, keep in mind that CODESYS do not control the send direction -&lt;br/&gt;
this must be supported by the hardware (your adapter).&lt;br/&gt;
If you are using RS232 - no clue whats going wrong.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to connect serial devices ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/87506d2b8e/?limit=25&amp;page=5#b539" rel="alternate"/><published>2022-06-23T19:47:37.335000Z</published><updated>2022-06-23T19:47:37.335000Z</updated><author><name>man2002</name><uri>https://forge.codesys.com/u/man2002/</uri></author><id>https://forge.codesys.com30296d52f3a3c345d397c7c10345fad32e892cab</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin, &lt;/p&gt;
&lt;p&gt;I am having the same problem as Nosi described in an earlier post. I  constantly get zeros in the read buffer when attempting to read from the COM port after making the changes below to the /etc/CODESYSControl_User.cfg file&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;[SysCom]&lt;/span&gt;&lt;br/&gt;
  Linux.Devicefile.1=/dev/ttyACM0 - this is communication port for the motorcontroller       (Octopus Pro controller).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I am able to successfully write from Codesys (V3.5 SP17 Patch 3) to the motor controller, but reading from MC is proving to be a challenge. I can read data from the COM port in Linux when I apply the commands below but not in Codesys. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;stty -F /dev/ttyACM0 115200&lt;/li&gt;
&lt;li&gt;stty -F /dev/ttyACM0 raw &lt;/li&gt;
&lt;li&gt;cat /dev/ttyACM0&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Please help.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>