I know how to send SMS messages through a GSM modem, but I am trying to send a message to a specific port, e.g. 5000. I don't have any idea how to do this; please help me.
Time to break out good old GSM 03.40! You need a TP-User-Data field, Information Element Identifier 0x04 and/or 0x05, depending on which port you want to use. How to do that in your particular API which you have not told us anything about is up to you.
Related
I am trying to extract or determine features like pay load, sequence
number, hop count, hop addresses, time to live in a packet using Wireshark. I got ttl value, source and destination addresses, but I am not able to find the payload, hop count, hop address etc.
Is there any way I can read these values from wireshark file using a java program, and display them in a Java frame?
If by "hop addresses" you mean that you want the network or MAC addresses of each router through which a packet traveled when going from the source to the destination, neither Wireshark nor any other packet analyzer on the planet can, in the general case, determine that, because that information isn't recorded in the packet!
There is an IPv4 "record route" option that, if added to the packet when it is sent, will cause routers to add their address to the route when they transmit the packet; however, there's no simple switch to turn that on - the program sending the packets would have to be modified to request that, if the operating system on which it's running supports doing so.
so I have been following this tutorial: http://www.rabbitmq.com/tutorials/tutorial-six-java.html, but I cant get it to work with a direct exchange.
Can someone help me out please by modifying the code so that it works with a direct exchange.
My objective: the user can chose which machine to send to, When they choose i want to bind to that machine and just send it to that machine. But it doesn't seem to be working when i change the queue declare to exchange declare. Any help would be greatly appriciated!!!
Thanks
In RabbitMQ you publish messages to exchanges, so the code you are seeing in the tutorial: channel.basicPublish("", "rpc_queue", props, message.getBytes());, means: send a message to the exchange "", using routing key "rpc_queue". That's the default or anon exchange discussed in tutorial one.
So if you want to send a message to a direct exchange, just change the empty exchange name for your exchange name.
Now, why do you want to do it that way? Why can't you instead of declaring an "rpc_queue", you declare a queue per machine, and address them by their names, in basicPublish?
In my application, I have a DatagramSocket. I want to set the socket so that it will receive DatagramPackets from any IP-Address, and not have to specify one. Would this be possible at all?
I have a list of EndPoints I want to send data to at some point, and expect the messages sent to me to come from these addresses, but I don't want to iterate through this list and individually receive packets.
Is there any way I can achieve this? I've done some extensive searches, but I can't seem to find a suitable answer...
That is the default behavior of sockets, you shouldn't have to worry about being limited to any particular IP address. Don't connect() the socket, just call receive().
I have a group that needs to send out announcements and current events via phone text message. I want to have a central phone number that when it receives a text message, it rebroadcasts that message to a growing list of subscribers. I'm hoping to use a Google Voice number to avoid buying an actual phone number.
Any ideas? I've thought about some type of Java/HTMLunit that continually parses the GVoice html inbox, but I just have that computer-gut feeling that there is a more intuitive way. I haven't been able to find a GVoice API, as I imagine that would be the trick.
Thanks
I've used a different approach. There's a number of E-mail to SMS services out there. So you send an e-mail (using standard JavaMail) to a specific address that is then associated with mobile phone numbers. I use TextMagic, but there are also other similar services out there. They also have API support, if thats what you'd prefer.
I'm using Logica SMPP api for sending sms. I'm able to send plain english messages with default data coding as "0"
Now if I want to send sms in other language such as hindi or chinese, what are the different values I should set..
Should I create a UDH for the same ?
wht data coding should I use?
wht esm class should I set ?
should I send the data as unicode?
Any suggestions on this will be very useful.
Looking through the API, I'd guess that ShortMessage.setEncoding() is the relevant method here.