News:

  • June 28, 2026, 04:31:54 AM

Login with username, password and session length

Author Topic: brx plc (email)  (Read 16929 times)

maciek

  • Sr. Member
  • ****
  • Posts: 95
brx plc (email)
« on: August 24, 2017, 09:54:58 PM »
still failing at sending e mail
Couldn't open TCP connection with specified device in EMAIL @00000188 (EMAIL at $Main@289)
« Last Edit: August 30, 2017, 09:51:06 AM by Greg »

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: brx plc (email)
« Reply #1 on: August 28, 2017, 03:14:04 PM »
Before email (SMTP protocol) can be sent, a TCP connection must be established with the email server. This error simply means that the IP address of your BRX cannot communicate with the IP address of the email server. Compare the IP settings (IP address, subnet mask, gateway address) with the IP address of your email server. Can they logically talk?
« Last Edit: August 30, 2017, 09:51:30 AM by Greg »
There are two types of people in the world; those that can extrapolate from incomplete data sets.

maciek

  • Sr. Member
  • ****
  • Posts: 95
Re: brx plc (email)
« Reply #2 on: August 29, 2017, 08:37:44 PM »
this is all i did set up my e mail smtp client
how do i establish that tcp connection
« Last Edit: August 30, 2017, 09:51:51 AM by Greg »

maciek

  • Sr. Member
  • ****
  • Posts: 95
Re: brx plc (email)
« Reply #3 on: August 29, 2017, 09:09:01 PM »
IP address, subnet mask, gateway address of my plc i set up so that i can connect to it with my pc and since i program the plc through the ethernet of my computer then i think that it is set up correctly
i sent you the picture of the email set up i dont know what else there is to do
and i need to add that i am a noob with brx and do more
« Last Edit: August 30, 2017, 09:52:02 AM by Greg »

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: brx plc (email)
« Reply #4 on: August 30, 2017, 09:36:26 AM »
When you attempt to do the EMAIL instruction (or whenever a PC (or phone for that matter) attempts to send/receive email, the first thing it does is establish a TCP connection. This is nothing that you do manually; it is something that is done automatically. But it is fundamentally the FIRST thing that needs to happen. If a TCP connection cannot be established, then the process does not even get to the email part. Thus, when I mentioned that a TCP connection is not being established, this is very fundamental and is merely indicative that the very basic connection is not happening. Bottom line is that it simply means, for whatever reason, your PLC cannot "see" the email server to even establish the fundamental connection. All this is basic TCP stuff and not unique to BRX or Do-more.

So, basically what this means for your particular scenario is your PLC cannot contact 173.194.198.27 (aspmx.l.google.com). What are the IP settings (IP address, subnet mask, gateway address) of your BRX? You can see these by going to the Dashboard and moving your mouse over the Ethernet port. You'll see something like the pic I have attached. Or you can use the menu and select PLC --> System Information, and click on the <Set Node and IP Configuration> button.
« Last Edit: August 30, 2017, 09:52:12 AM by Greg »
There are two types of people in the world; those that can extrapolate from incomplete data sets.

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
Re: brx plc (email)
« Reply #5 on: August 30, 2017, 11:16:59 AM »
Reading the text it sounds like maciek set the plc to the address to talk to his pc. His pc is not necessarily the mail server. At work our mail server is not the same ip as my desk top.

maciek

  • Sr. Member
  • ****
  • Posts: 95
Re: brx plc (email)
« Reply #6 on: August 30, 2017, 06:09:13 PM »
does the ether/net ip server have to be enabled
and my pc connects to the internet through wireless router if that has anything to do with that

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: brx plc (email)
« Reply #7 on: August 30, 2017, 08:41:04 PM »
Could you please post your code for the email?
Either screenshots or zip file would be fine. Otherwise it is a shot in the dark on what is going on.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

maciek

  • Sr. Member
  • ****
  • Posts: 95
Re: brx plc (email)
« Reply #8 on: August 30, 2017, 09:54:55 PM »
i feel like a moron but really want to be able email

MikeR

  • Full Member
  • ***
  • Posts: 24
Re: brx plc (email)
« Reply #9 on: August 30, 2017, 10:06:45 PM »
yes, please follow the above suggestions and post your code.

I'm not sure that this is a problem or the only problem but I've had some ISPs that block port 25. you might try SMTP port 587, 465, or 2525...
might not solve it, but couldn't hurt to try.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: brx plc (email)
« Reply #10 on: August 31, 2017, 08:36:31 AM »
Google rotates SMTP server IPs, so you have to do the IPLOOKUP immediately before sending, then update the device via DEVWRITE. Surely we have the details of how to do that in an FAQ...
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: brx plc (email)
« Reply #11 on: August 31, 2017, 09:14:44 AM »
Google rotates SMTP server IPs, so you have to do the IPLOOKUP immediately before sending, then update the device via DEVWRITE. Surely we have the details of how to do that in an FAQ...

DNSLOOKUP - Name to IP Address.

I recommend using 8.8.8.8 (Google's DNS) as the Primary DNS initially.  And if THAT fails, we know that the PLC does not have Internet access (network routing issue, either configuration or physical), which is where the desired SMTP Server exists.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: brx plc (email)
« Reply #12 on: August 31, 2017, 09:46:24 AM »
Google rotates SMTP server IPs, so you have to do the IPLOOKUP immediately before sending, then update the device via DEVWRITE. Surely we have the details of how to do that in an FAQ...

DNSLOOKUP - Name to IP Address.

I recommend using 8.8.8.8 (Google's DNS) as the Primary DNS initially.  And if THAT fails, we know that the PLC does not have Internet access (network routing issue, either configuration or physical), which is where the desired SMTP Server exists.

Dang...I never can remember the final instruction name. I usually have DmD open in front of me to check... :P
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO