Author Topic: E-mail from T100MD888+  (Read 12603 times)

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
E-mail from T100MD888+
« on: April 13, 2008, 12:16:25 PM »
The modem is connected to the PLC via port1 RS-232 and I have no problem getting the modem to dial and establish a connection, but not successful logon to the ISP. The sample program does not provide for a username, but that should not be an issue, once I am able to determine the protocol and log on successfully using a terminal program. The PC that can be connected to the PLC for programming has ability to dialup or DSL, but I would rather not have the PC and DSL powered up while on vacation.

I have a PLC that would like to login in to my ISP and send an E-mail if there is an alarm condition, like high water level of a sump pump. The PLC can be programmed and communicates via RS-232 to a dialup modem on a land line. With the PLC or a terminal software (Realterm) have no problem dialing, connecting and getting the ISP login message ending with "..User name:<sp>", but unable to get verified as a user, even though the username and password are correct. Long conversation with ISP (Windstream, used to be Alltel) India tech support didn't help, they know nothing of the login protocol and format.

Using a RS-232 Spy software (Free Serial Port Monitor) I am able to catch the Windows XP Dialer conversation which is able to logon successfully reliably. Several runs of logging on seems to indicated that the conversation is consistent with exactly the same strings of characters each time, ruling out noise. The following is the conversation after the "..User name:<sp>" and through my username and password being sent out. I have changed my username and password to protect the innocent. The password follows the 07h after the username (E-mail address).

|Port opened by process "svchost.exe" (PID: 1408)|

|*Request: 4/12/2008 10:04:27 AM.56364 (+0.2813 seconds)*|

| ||7E FF 7D 23 C0 21 7D 21 7D 20 7D 20 7D 37 7D 22   ~?}#?!}!} } }7}"|
| ||7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 4F 6C   }&} } } } }%}&Ol|
| ||5C C2 7D 27 7D 22 7D 28 7D 22 7D 2D 7D 23 7D 26   \?}'}"}(}"}-}#}&|
| ||78 7A 7E                                          xz~             |

|*Answer: 4/12/2008 10:04:27 AM.75164 (+0.1875 seconds)*|

| ||7E FF 7D 23 C0 21 7D 21 F1 7D 20 7D 38 7D 22 7D   ~?}#?!}!?} }8}"}|
| ||26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D   &} }*} } }#}$?#}|
| ||25 7D 26 3D 66 A9 2C 7D 27 7D 22 7D 28 7D 22 7F   %}&=f?,}'}"}(}"|
| ||56 7E 7E FF 7D 23 C0 21 7D 24 7D 20 7D 20 7D 27   V~~?}#?!}$} } }'|
| ||7D 2D 7D 23 7D 26 AD 36 7E                        }-}#}&?6~       |

|*Request: 4/12/2008 10:04:27 AM.86064 (+0.0313 seconds)*|

| ||7E FF 7D 23 C0 21 7D 22 F1 7D 20 7D 38 7D 22 7D   ~?}#?!}"?} }8}"}|
| ||26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D   &} }*} } }#}$?#}|
| ||25 7D 26 3D 66 A9 2C 7D 27 7D 22 7D 28 7D 22 B3   %}&=f?,}'}"}(}"?|
| ||BB 7E 7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34   ?~~?}#?!}!}!} }4|
| ||7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26   }"}&} } } } }%}&|
| ||4F 6C 5C C2 7D 27 7D 22 7D 28 7D 22 7D 39 FC 7E   Ol\?}'}"}(}"}9?~|

|*Answer: 4/12/2008 10:04:28 AM.06364 (+0.1563 seconds)*|

| ||7E FF 03 C0 21 02 01 00 14 02 06 00 00 00 00 05   ~?.?!...........|
| ||06 4F 6C 5C C2 07 02 08 02 F2 95 7E               .Ol\?....?&#149;~    |

|*Request: 4/12/2008 10:04:28 AM.12664 (+0.0313 seconds)*|

| ||7E C0 21 0C 02 00 12 4F 6C 5C C2 4D 53 52 41 53   ~?!....Ol\?MSRAS|
| ||56 35 2E 31 30 F1 17 7E 7E C0 21 0C 03 00 17 4F   V5.10?.~~?!....O|
| ||6C 5C C2 4D 53 52 41 53 2D 30 2D 44 36 39 35 2D   l\?MSRAS-0-D695-|
| ||4C 54 47 4F 7E 7E C0 23 01 01 00 1D 10 58 58 58   LTGO~~?#.....XXX|
| ||58 58 58 58 58 58 58 58 58 2E 58 58 58 07 58 58   XX@alltel.net.XX|
| ||58 58 58 58 58 01 12 7E                           XXXXX..~        |

|*Answer: 4/12/2008 10:04:28 AM.43864 (+0.2500 seconds)*|

| ||7E FF 03 C0 23 02 01 00 05 00 8B 3B 7E            ~?.?#.....&#139;;~   -----------------------------

1:Can someone explain what's happening with the conversation between the request and sending the user name?
2: Looks like some kind of encryption or protocol like TCP/IP or? Sending what info?
3: I would rather not program the PLC for all this garbage, is there a work around?
|


support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:E-mail from T100MD888+
« Reply #1 on: April 14, 2008, 10:05:04 AM »
To login to the ISP directly via dial up modem you would need to handle the PPP or SLIP protocols. These are not part of the PLC's built-in function and therefore it is not easy to get the PLC to dial up the ISP and make an internet connection.

If you have a PC running TLServer and attached to a modem than the PLC can connect to the PC via the modem and the TLServer can connect to the internet through the PC's own internet connection and provide the web services for the PLC.

One alternative is to connect the PLC to an XServer and the XServer can connect to a router that has capability to dial up a regular telephone modem to connect to the ISP. In that case the router would be the one handle the PPP or SLIP protocol and handle the username/password login to the ISP.  I know in the past they do sell routers that can perform that function but I am not sure if the router sold today still have the RS232 serial port for modem connection or better still, have built-in telephone modem.

A quick search on Google yielded the following:

http://reviews.cnet.com/routers/actiontec-dual-pc-modem/4505-3319_7-30539108.html

Maybe that will work out for you.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
Re:E-mail from T100MD888+
« Reply #2 on: April 14, 2008, 01:24:36 PM »
As I noted on my other message on the E-mail server address, I now have working E-mailing through the Trilogi Server on a PC, and DSL that is connected and logged in prior. I would prefer not to have powered up the PC and DSL on a regular basis. The other methods suggested are at least a similar amount of hardware to keep powered up and additional costs. For the somewhat rare that there will be need to send a message as a result of an alarm condition, I was really anticipating only a modem needed, and that power could be controlled by the PLC to be on only when a message was to be sent.

Stop me here if I am wrong. It seems that in the current day situation, about the only way to send and E-mail either dialup or broadband is to logon to the network that uses something more than a basic logon, and PPP, SLIP, or some other protocol is required that the PLC is not capable of. Then dialup E-mail is not available and the examples should be changed.  :(

Longer term, I would prefer a dialer with text to voice synthesis, but that looks like a lot of development time that I don't have at the moment.