RJ45, in combination with a LoPy



  • Hi there, is it possible to use a RJ45 connector (hard wired) in combination with the Tx and Rx of a LoPy? I want to connect a device (a control unit, with a LAN port) to my LoPy unit. The LAN connection on the device is used to monitor and to control the device). Can this item be used with the LoPy in combination with a crossover cable?

    http://www.usriot.com/p/serial-uart-ethernet-module/

    alt text

    My main goal is to monitor and control AudioVisual equipment in a classroom. I already managed to use a ttl <> rs232 converter (15V) to monitor and control a projector, but that gives problem with the control unit (that is also hooked to the projector). So a better option (at least for me) is to control the control unit ;)

    Jeroen



  • @Shaun Thx so much Shaun, i will try this out. Will let you know how it goes. thx again, Jeroen



  • @papasmurph Hi grote smurf :) At work there is WiFi available, but it's managed by another (IT) department. If there is going to be a fixed 'wifi device' connected to their wireless network (read 100+ connections per building) their gonna give me issues with IP connections, security, etc. I know you can do add a separate VLAN for this, but I want it to work independently.

    Thanks for your answer though... Grts, Jeroen



  • @joena said in RJ45, in combination with a LoPy:

    Extron MLC 104 IP PLUS button/control panel

    Hi Joena.

    The module can be configured using the software download from the supplier;
    http://www.usriot.com/usr-m0-setup-software/

    The simplest configuration is using UDP mode.

    One can create a virtual serial link between 2 or more modules.
    or
    Create a virtual serial link between 1 or more modules and a PC running the virtual serial over Ethernet driver.
    http://www.usriot.com/usr-vcom-virtual-serial-software/

    I'm not familiar with the " Extron MLC 104 IP PLUS button/control panel", but it sounds as if you are not wanting to connect a USR module to a TTL serial port on the Extron, in which case the Extron will then need to be able to run a custom driver or application that you provide and load onto it, that will then communicate with the USR module.

    Example code can be found here;
    http://www.usriot.com/tcpip-demo-code/



  • @joena Is there at all WiFi at the location? Then LoPy can use WiFi and the AV equipment RJ45.



  • in addition, do you Shaun (or any others off-course ;)) know of a good video for any help in this matter (with this module)? On you-tube I saw a video in Spanish (but I'm looking for English or Dutch :P)



  • @Shaun hi Shaun, the TTL <> RJ45 module has arrived :) it even was the same version/model as yours :) so I was very glad (I didn't expect that ;)) I have a question...

    I found the manual quite challenging, perhaps it's my lack of understanding (technical) English, or perhaps the Chinese people think in too technical terms ;) But how did you set up the module?

    My situation is as follows,
    I have a LoPy,
    I have a USR-TCP232-T2 module
    I have a Extron MLC 104 IP PLUS button/control panel (for controlling the av equipment in a classroom)

    With my LoPy I want to sent TTL signals (Tx/Rx) to the USR, which converts them to RJ45 (IP: 192.168.254.254, Subnet: 255.255.0.0) which is connected to the Extron button/control panel.

    For the USR I can select a few things, but I guess I need TCP Server? Could you elaborate how you did your setup?
    My guess would be to first connect it via ethernet (patch) cable to local laptop and make the USR a TCP server, than use a cross cable to connect between the USR <> Extron button panel?

    I can also adjust IP addresses, but I guess I need the USR IP (to access the module) to remain the same and the target IP to be the IP of the Extron button/control panel?

    i Hope you can help me out with this? With regards, Jeroen



  • @Shaun thx shaun, Just bought the module, see how it goes :-) thx for the tip



  • @joena Yes, I have used the older model as well (larger can xtal), the newer module has the smaller smt xtal.
    They all can work as a simple Ethernet to UART (3V3 TTL) bridge the same way a USB to UART converter works.
    A computer must load the Ethernet virtual serial port driver.



  • @Shaun
    Hi shaun, thx for the tip, do you know if the USR-TCP232-T unit (https://www.elektor.com/ethernet-module-usr-tcp232-t) should also work out for my situation (in your experience)? This module is available in the Netherlands the other (your unit) is only available outside Europe, That means long p&p times :-(

    http://www.tcp232.net/download/USR-TCP232-T-EN.pdf

    It's on ttl level :-)



  • @robert-hh The converters can be configured live over Ethernet using configuration software that is downloaded from the suppliers website.
    http://www.usriot.com/p/serial-uart-ethernet-module/

    The modules even include a webserver with a configuration page that enables parameters to be changed



  • @Shaun
    Sorry for spam
    I see that you are using the same green connectors as me - i use it near to always as servo connector :)



  • @Shaun Good to hear. Does pre-configure mean: You connect them once with RX/TX and a suitable adapter to a PC or the like, make the settings and then you placed them into the target environment? Or do the units have a kind of initial configuration, which can be managed by the LAN port?



  • I have used these Ethernet to UART converters.
    They can be preconfigured so that no AT commands are necessary and they appear as a standard UART to the WiPy code.

    TX and RX are the only connections needed between the module and WiPy.
    You could connect the reset line as well, if you would like to be able to reset the module from within the WiPy code.

    0_1497022577644_20170609_171338.jpg



  • @robert-hh

    @robert-hh said in RJ45, in combination with a LoPy:

    @joena That should be possible. As far as I can read from the specs, the device behaves like a modem and implements the TCP/IP stack itself. You have to control it Via AT commands. Some work, but no rocket science.

    Thx robert :-) I will try it out



  • @joena That should be possible. As far as I can read from the specs, the device behaves like a modem and implements the TCP/IP stack itself. You have to control it Via AT commands. Some work, but no rocket science.



  • In addition:

    Is it possible use these connections in conjunction with the LoPy?

    3.3V-TTL UART : RXD, TXD, RTS, CTS, GND, VCC

    I have an Pycom Expansionboard (v2.1A), guess this is correct?

    RXD module > FTDI_TXD (G2) LoPy
    TXD module > FTDI_RXD (G1) LoPy
    RTS module > FTDI_RTS (G6) LoPy
    CTS module > FTDI_CTS (G7) LoPy

    GND module > GND (GND) LoPy
    VCC Module > VCC (3V3) LoPy

    alt text


Log in to reply
 

Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.