Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    RJ45, in combination with a LoPy

    Scheduled Pinned Locked Moved LoPy
    rj45 lopy uart
    17 Posts 5 Posters 4.9k Views 7 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      joena
      last edited by joena

      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

      papasmurphP 1 Reply Last reply Reply Quote 0
      • J Offline
        joena
        last edited by joena

        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

        robert-hhR 1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @joena
          last edited by

          @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.

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            joena @robert-hh
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • S Offline
              Shaun
              last edited by Shaun

              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-hhR L J 3 Replies Last reply Reply Quote 1
              • robert-hhR Offline
                robert-hh @Shaun
                last edited by

                @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?

                S 1 Reply Last reply Reply Quote 0
                • L Offline
                  livius @Shaun
                  last edited by livius

                  @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 :)

                  think about people first, then computers

                  1 Reply Last reply Reply Quote 1
                  • S Offline
                    Shaun @robert-hh
                    last edited by Shaun

                    @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

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      joena @Shaun
                      last edited by

                      @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 :-)

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        Shaun @joena
                        last edited by

                        @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.

                        J 2 Replies Last reply Reply Quote 0
                        • J Offline
                          joena @Shaun
                          last edited by

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

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            joena @Shaun
                            last edited by joena

                            @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

                            S 1 Reply Last reply Reply Quote 0
                            • J Offline
                              joena
                              last edited by

                              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)

                              1 Reply Last reply Reply Quote 0
                              • papasmurphP Offline
                                papasmurph @joena
                                last edited by

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

                                J 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  Shaun @joena
                                  last edited by

                                  @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/

                                  J 1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    joena @papasmurph
                                    last edited by

                                    @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

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      joena @Shaun
                                      last edited by

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

                                      1 Reply Last reply Reply Quote 0

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      • 1 / 1
                                      • First post
                                        Last post

                                      Pycom on Twitter

                                      Pycom