View previous topic :: View next topic |
Author |
Message |
Neelima
Joined: 20 May 2009 Posts: 10
|
Posted: Tue Jun 30, 2009 6:58 am Post subject: SNPP Level 3 communication |
|
|
Hi,
Following is the snippet from the program that I am executing after connected to snpp.att.net.
XXXXXXXX is the phone number.
out.write("2WAY\r\n".getBytes());
//out.write("NOQUEUE\r\n".getBytes());
out.write("PAGER XXXXXXXXXX\r\n".getBytes());
out.write("ACKREAD 1\r\n".getBytes());
out.write("DATA Testing for multiple choices options\r\n".getBytes());
out.write("RTYPE MULTICHOICE\r\n".getBytes());
out.write("MCRESP 01 Choice1\r\n".getBytes());
out.write("MCRESP 02 Choice2\r\n".getBytes());
out.write("MCRESP 03 Choice3\r\n".getBytes());
out.write("MCRESP 04 Choice4\r\n".getBytes());
out.write("SEND\r\n".getBytes());
out.write("QUIT\r\n".getBytes());
The output for the above program is as follows.
220 SNPP Gateway Ready
850 Two-Way Unit Online
354 Enter mail, end with . on a line by itself
The program stops after the 354 returncode.
Is there anything missing in the execution of the level 3 commands?
Any help would be greatly appreciated.
Thanks in advance.
|
|
Back to top |
|
OzCom
Joined: 22 Oct 2003 Posts: 1121 Location: US
|
Posted: Tue Jun 30, 2009 8:45 am Post subject: |
|
|
Which Notepage, Inc. product are you using?_________________ Aaron D. Osgood
Streamline Communications, LLC
* Authorized Notepage, Inc. Development Partner and Re-seller
TEL: 207-518-8455
AOsgood@streamline-solutions.net
Creators of AutoPage Spillman CAD interface for PageGate |
|
Back to top |
|
Neelima
Joined: 20 May 2009 Posts: 10
|
Posted: Tue Jun 30, 2009 9:01 am Post subject: |
|
|
Not related to any notepage product.It is a general SNPP question.
|
|
Back to top |
|
OzCom
Joined: 22 Oct 2003 Posts: 1121 Location: US
|
|
Back to top |
|
Neelima
Joined: 20 May 2009 Posts: 10
|
Posted: Tue Jun 30, 2009 9:26 am Post subject: |
|
|
That's exactly what I am following to implement but getting stuck at the output I have pasted on the first thread..
Below is the set of commands I am using from the rfc.
After the DATA command it does not go forward so not sure where the problem could be...
4.1.3 A Typical Level Three (two-way) Transaction
Level three transactions are inherently single-unit oriented because
of the one-to-one issues surrounding responses. Each transaction
begins with the "2WAY" command and terminates with a "SEND" command.
Client Server
Open Connection -->
<-- 220 SNPP (V3) Gateway Ready
2WAY -->
<-- 250 Two-Way Mode Enabled
NOQUEUE -->
<-- 250 Msg will either be Sent or Rejected
PAGER SHIRLEY -->
<-- 850 Unit online; Don't call me Shirley!
ACKRead 1 -->
<-- 250 Read Acknowledgment Requested
DATA -->
<-- 354 Begin Input, End With '.'
Little Bo Binary has lost -->
her Sparcstation and doesn't -->
know where to find it. Have -->
you seen it recently? -->
<-- 250 DATA Accepted
RTYPE MULTICHOICE -->
<-- 250 Multichoice Responses Enabled
MCRESP 01 In the West Pasture -->
<-- 250 MCR Code Accepted
MCRESP 02 GoldiFLOCKs has it -->
<-- 250 MCR Code Accepted
MCRESP 03 Haven't a clue -->
<-- 250 MCR Code Accepted
MCRESP 04 Haven't a life -->
<-- 250 MCR Code Accepted
MCRESP 05 Oh, GO AWAY! -->
<-- 250 MCR Code Accepted
SEND -->
<-- 860 00321 1234 Message Delivered
QUIT -->
<-- 221 OK, Goodbye
|
|
Back to top |
|
OzCom
Joined: 22 Oct 2003 Posts: 1121 Location: US
|
Posted: Tue Jun 30, 2009 10:34 am Post subject: |
|
|
That is because you're using the 2way functionality - you are waiting for a reply before proceeding._________________ Aaron D. Osgood
Streamline Communications, LLC
* Authorized Notepage, Inc. Development Partner and Re-seller
TEL: 207-518-8455
AOsgood@streamline-solutions.net
Creators of AutoPage Spillman CAD interface for PageGate |
|
Back to top |
|
Neelima
Joined: 20 May 2009 Posts: 10
|
Posted: Tue Jun 30, 2009 1:27 pm Post subject: |
|
|
As per the RFC after we send DATA
DATA -->
<-- 354 Begin Input, End With '.'
Little Bo Binary has lost -->
her Sparcstation and doesn't -->
know where to find it. Have -->
you seen it recently? -->
<-- 250 DATA Accepted
So,in my case after the below step
out.write("DATA\r\n".getBytes());
out.write("Testing for multiple choices options.\r\n".getBytes());
I am waiting for 250 DATA accepted message and the snpp server is not responding is it?
Thanks
|
|
Back to top |
|
OzCom
Joined: 22 Oct 2003 Posts: 1121 Location: US
|
Posted: Tue Jun 30, 2009 2:33 pm Post subject: |
|
|
Basically - is the PHONE# of the device you're testing with actually subscribed to ATT's "Enterprise Paging"? ATT charges about $10 per phone per month for the SNPP access._________________ Aaron D. Osgood
Streamline Communications, LLC
* Authorized Notepage, Inc. Development Partner and Re-seller
TEL: 207-518-8455
AOsgood@streamline-solutions.net
Creators of AutoPage Spillman CAD interface for PageGate |
|
Back to top |
|
Neelima
Joined: 20 May 2009 Posts: 10
|
Posted: Tue Jun 30, 2009 2:40 pm Post subject: |
|
|
That may be the reason.I do not own the phone.I will have to check on that.
Since the Level 1 test was successful with that phone number so thought the Level 3 might work as well.May be for two way paging we need to opt for that extra service.
Thanks much.Appreciate your response.
|
|
Back to top |
|
SBurns
Joined: 05 Nov 2009 Posts: 1 Location: London, Ontario, Canada
|
Posted: Thu Nov 05, 2009 9:05 am Post subject: SNPP Level 3 Communications |
|
|
I believe your issue may be that you need to use the following format for the DATA option:
DATA<CR><LF>
Message line 1<CR><LF>
Message line 2<CR><LF>
.<CR><LF>
Note the "." character on a line by itself after the data lines you desire.
You are sending:
DATA Message Line<CR><LF>
Switch is probably responding with something like:
354 Begin Input; End with <CRLF>'.'<CRLF>
Waiting for your message lines and the final line with a period by itself.
For a short message you may use the "MESS" command in this format:
MESS Message line 1<CR><LF>
Scott Burns
Scott.Burns@SeQent.Com
_________________ S Burns
|
|
Back to top |
|
|