Jump to content
Sign in to follow this  
ETURSON

Connecting Unistream to LoPy via Panel USB Port

Recommended Posts

I have a LoPy device as shown in the link below:

https://pycom.io/hardware/lopy-specs/

I also have the Unitronics US5-B10-TR22. I am trying to connect US5-B10-TR22 to LoPy via Silicon Labs CP210X USB to UART Bridge. 

I enabled the Panel USB Port as TX/RX from Physical-Controller USB Port. Then I used Com TX to send data to LoPy as shown below and I also attached the simple code I wrote. But I never succeeded sending any data. The Com module gave me error code -1, which is general com error. I never programmed Unistream before and I am just learning. Can I communicate to LoPy via Panel USB Port? If yes, how can I do so?  

image.png.91ba82ea22493644f42f094be3260df4.png

FirstProgram.ulpr

Share this post


Link to post
Share on other sites

Hello,

Please make sure that you are using USB to Serial based on  "PL23203 USB to Serial/UART Bridge Controller".

You'll have to use it to be able communicating between the LoPy and UniStream  controller.

Share this post


Link to post
Share on other sites

I really hate for my first forum post to be resurrecting a dead thread, however I'm doing this identical thing and having issues.

Eturson, did you get this working?

 

I am using a CP2102 converter chip on an ESP32 dev board (https://docs.zerynth.com/latest/official/board.zerynth.doit_esp32/docs/index.html).  Amazon will be delivering a PL2303 USB to TTL adapter this afternoon.  I'm hoping this fixes me.

I initially had all working well directly from the USB host port to the micro-USB on my dev board.  This worked until the next time the system was turned on (???).

Share this post


Link to post
Share on other sites

1. You have to use Prolific based USB to Serial converter. Other models are not supported.

2. In Ladder you must to use Set request/process command/reset request.

If your ladder is similar to one in this post, then transmit will be processed at each scan, and will lead to owerload and errors.

 

Share this post


Link to post
Share on other sites

Prolific is what is supported, however I assume it is not unheard of for other hardware to work sporadically?  This is what I'm waiting on (https://www.amazon.com/gp/product/B07R8BQYW1/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1).  Do you think this is what I need?

Here is my ladder for outputting the message(s) and the setting/resetting "send".  I think I have an issue with my algorithm for cycling through messages.  Shouldn't be a hard fix- it only sends the first message, never cycles through which messages.  (I changed the original message to a few smaller messages in case the length was causing problems for my MCU.  It was not.  May change back).

 

I appreciate the help.  Ladder is new for me, but I've got lots of programming and electronics experience otherwise.

 

 

 

 

Serial Comms.PNG

Share this post


Link to post
Share on other sites

Take care that output of this adapter from Amazon is TTL 3.3V.

LoPy device link is invalid, so I cannot see what is a device input voltage level, TTL 3.3V or RS232, which is from +-15V to +-6V.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...