According to the docs: http://docs.appcelerator.com/cloud/latest/#!/api/PushNotifications-method-notify
channel : String/String[] required
Name of the channel. For multiple channels, either comma-separate the list of channels or use an array of strings.
The name of the push channel cannot start with a hash symbol ('#') or contain a comma (',').
However, I have a user subscribed to both "cats" and "dogs" channels, and am trying to push to both channels at once. I've tried several different syntaxes, including the most like the description of:
curl -b cookies.txt -c cookies.txt -F 'channel=dogs,cats' -F "to_ids=everyone" -F "payload=test dogs & cats" https://api.cloud.appcelerator.com/v1/push_notification/notify.json?key=XXX
400 Error - "Subscription not found"
Does anyone have this working & can share the correct syntax on it?
TIA
thank you for your question I have the same problem but with the notify_tokens method.
I am not sure it is the right procedure, but I opened question 29366000 that might interest you since it contains some more examples.
I hope someone would help us in solving the problem, in the meanwhile I do:
for channel in channels:
... POST to AppCelerator notify_tokens (or notify) channel by channel
this is not a great hassle for me today, but it could be in future when channels number will increase.
Related
When the number is dialed from any of the number to LTE module, I got automatic responses from that module for e.g.
[2018-07-02 15:43:30:997_R:] DSR:0 CTS:1 (RI:0) DCD:0
[2018-07-02 15:43:30:997_R:] DSR:0 CTS:1 (RI:1) DCD:0
[2018-07-02 15:43:31:012_R:] NO CARRIER .
These are autogenerated responses without firing AT commands to the module. So I
don't want these responses. Please suggest me any AT command to stop this.
These responses are called unsolicited result codes because they are triggered by events other than AT commands.
To learn more about the different types of responses read chapter 5.7.1 Responses in the ITU V.250 specification. V.250 is one of the most important AT command documents and you should really read all of chapter 5.
Some of the unsolicited result codes can be individually disabled, but some (e.g. NO CARRIER) cannot, so you must write your modem software to handle them. There is no way around.
I am currently working on a project that involves automating sending and receiving text messages using a RAZR v3.
Usually, when choosing the memory for the phone, there is "ME", "SM",or "MT" which stands for phone, sim, and both respectively. However when inserting a specific sim card, its different. When I do a AT+CPMS=?, I get
("MT","IM","OM","BM","DM"), ("OM","DM"),("IM")
I know what MT is, and BM is for broadcast messages. What does "OM" and "DM" stand for and what are their relations to the other memory types?
I used this site for basic memory knowledge:
http://www.developershome.com/sms/cpmsCommand.asp
and according to this site for motorola commands, it seems as if "OM" and "DM" are unknown as well(Do a ctrl+f with the keyword "CPMS"): http://gatling.ikk.sztaki.hu/~kissg/gsm/at+c.html#27.07me
I have already tried searching the internet but to no avail. If there is an article that illustrates in depth on what I am asking, I would appreciate it if you would please point me to that location, otherwise please help with the question!
Thank you!
Thanks to reddit user 1991_vg, "OM" and "DM" stand for Outgoing Messages and Draft Messages respectively. On a RAZR phone, they represent folders where messages are stored, and thus should be able to send messages from those folders. Here is the motorola at commands for anybody who has this problem: http://read.pudn.com/downloads139/doc/599044/AT_Commands_Ref.pdf
In addition, here is a nice document posted by reddit user "farnz" for the specifications of modems: http://www.3gpp.org/DynaReport/27007.htm http://www.3gpp.org/DynaReport/27005.htm
Im working on a program to send and recieve SMS using a GSM modem and my computer.
I have gotten sending and receiving to work - well sort of.
Once in a while my program is sent into a total chrash due to modem is mixing up information about Radio Signal Strength Indication and alike, while also serving my program with the hex code for the message.
My code can handle the hex code just fine. but I have seen the following line popup while im decoding a byte stream:
^RSSI: 2
So far I've seen it send out values between 1 and 10.
Is there an AT Command that can disable them? I have no need for them.
Or alternative: Is there a general syntax for them, so I can filter them out before decoding?
Im leaning towards a filter solution. But that would be more easy to implement if I knew whenever modem is sending out on the form: "^SOMETHING: xxx", then It would be nice to know if it is always followed up be a delimiter say for instance "\r".
You should try turning off periodic messages as using AT^CURC=0.
Information regarding the AT^CURC command:
AT^CURC? Current setting of periodic status messages
AT^CURC=? See what you possible values are
AT^CURC=0 turn off periodic status messages
The best way to tackle this scenario would be to replace that part of the response with an empty string because otherwise, it will be difficult to check even if the command sent to disable it is working or not.
This regex will match all those. You can replace them ideally by an empty string.
(\\n|\\r|\\r\\n)\\^.*(\\n|\\r|\\r\\n)
I have an assignment to implementation of communication between 2 PC terminals using Ethernet.
There is no big deal in establishing network between 2 nodes. but the the big deal is "8 bit data sent on one node is to be decoded on the other node & the same is to be displayed & if possible though a front end window."
the specs for the front end window on the receiving node is as follows , say for example 10110101 is sent from node 1 , the same is to be decoded & interpreted as below using a frontend GUI window , A-On
B-off
C-On
D-On
E-Off
F-On
G-Off
H-On
So please someone suggest me is any other application available to see the decoding process on terminal or what are the steps i need to intiate.
All your suggestions are appreciated,
Thanks in advance,
I guess your specific solution depends on if you are allowed to use existing libraries. Either way I would checkout networkComms.net, an open source network library written in C#.
You could achieve your basic goal if you modify the basic send example (11 lines of code) here. Instead of sending a random string, send your 8 bits, and on the receiving end, rather than just writing the string to the console do something cleverer:
if (recievedString == "10110101")
{
//Do this
}
else
{
//Do this instead
}
If you are not allowed to use existing libraries and have to write something from scatch perhaps networkComms.net could act as a good guide?
I want to use iperf to send some packets and receive the same at the client (which might have gone through different OSI layer processings). I want to check the packets sent are same as the received ones.
Can I use Wireshark to capture the streams?
Is there any way to compare them with the wireshark?
Or is there any other better way of doing this?
You can use Wireshark to perform the capture, select the packets of each stream and export to text files (one per stream):
File -> Export -> as "Plain Text" file:
- Check "Selected packet only"
- Check "Packet summary line"
- Check "Packet details: All expanded"
Then perform the diff with regular text tools as gnu diff, WinMerge or gvimdiff.
yes you'll be able to but this will be difficult as the goal of iPerf is to send a lot of packets, the capture will include a big flow of it.
strangely there is not a diff-like tool to compare 2 captures. Instead the doc[1] propose a workaround : to merge both and stats on their diffs.
NB :I wonder myself doing such a usefull tool,in addition this is in the Wireshark wishlit.
[1] source : http://www.wireshark.org/docs/wsug_html_chunked/ChStatCompareCaptureFiles.html