MDM:A notice does not reach a iPhone.

A notice does not reach a terminal.
Please let me know.
Hello. Thank you.
iPhone 4S iOS 5.1
I wrote the following ruby script.
And it performed from the MDM server.
However, a notice does not reach an iPhone terminal.
Please let me know.
A setup by ."mobileconfig" was completed and the topic and the device token have been PUT to the MDM server.
It checked that the right information was also acquirable,
It is confirmed that renewal of a message or a badge is made to an iPhone terminal in APNs.
Only APNs of MDM does not reach an iPhone terminal.
I would like to solve this problem.
If you please, please help me.
#!/usr/bin/ruby -Ku
require 'openssl'
require 'socket'
print("start"<<"\n");
    (msg = []) << "dd0b64b77ebcac2092d6fe644d4db04e39d577c0228cf2187d8f87966aff8234"
    device  = msg.pack("H*")
    socket = TCPSocket.new('gateway.sandbox.push.apple.com',2195)
#    socket = TCPSocket.new('gateway.push.apple.com',2195)
    context = OpenSSL::SSL::SSLContext.new('SSLv3')
    context.cert = OpenSSL::X509::Certificate.new(File.read('nj_dev_apns-dev.pem'))
    context.key  = OpenSSL::PKey::RSA.new(File.read('nj_dev_apns-dev-key-noenc.pem'))
    ssl = OpenSSL::SSL::SSLSocket.new(socket, context)
    ssl.connect
    payload = <<-EOS
#  "mdm":"{<PushMagic>}"
    {"mdm":"7C68976X-E70D-485Q-8CA7-7AC48F2F5F4A"}
EOS
    (message = []) << ['0'].pack('H') << [32].pack('n') << device << [payload.size].pack('n') << payload
    ssl.write(message.join(''))
    ssl.close
    socket.close
print("OK!"<<"\n");

Update:
If I go to network in the dashboard it DOES see the airport but will not let me connect. I keep getting "connection failed." I know I have the right password ect. but no idea why it will not let me join.
Do I need to get the paperclip out and reset the airport???

Similar Messages

  • Got an (unlocked) iphone 4s from US and tried activating in India but it throws an error saying 'unable to activate bcos the activation server cannot be reached' ..I tried connecting to itunes through my laptop but it does not detect my iphone..pls help

    Got an (unlocked) iphone 4s from US and tried activating in India but it throws an error saying 'unable to activate bcos the activation server cannot be reached' ..I tried connecting to itunes through my laptop but it does not detect my iphone..pls help

    mithaani wrote:
    Got an (unlocked) iphone 4s from US
    As kb1951 states, unless this phone was purchased directly from Apple, it is not officially unlocked. In the US, only Apple sells officially unlocked iPhones. The message you got generally means your phone was hacked to unlock it...jailbroken...Apple's servers have detected such & are preventing your phone from activating...there's nothing wrong with the activation servers.
    You'll need a sim card from the carrier your phone is locked to in order to activate it. If you don't know what carrier, you'll have to call AppleCare in the US to determine this info. Be aware, US carriers will not authorize official unlocking unless you are a customer that used the phone on their network. Thus, there is most likely no way for you to get this phone officially unlocked.
    Good luck.

  • 24" LCD has Super short mini-display cable that does not reach

    I was setting up a 24" display (on an LCD arm) and i noticed the mini display cable is very, very short. It does not reach to the Mac Pro under the desk. I guess the 24" displays were made for laptops and did not expect that the cables would need to reach under a desk.
    I couldn't find a Mini-display to Mini-display extender. Does anyone know of one?
    Anyone considering two 24" monitors might want to review their own setup, to see if it works with the exceptionally short mini display video cables on the 24" display.
    Message was edited by: Charles Barone

    Charles, did you ever find a solution for this problem? I am ready to get a new Mac Pro and 24" display, but a 3 foot (1 meter?) cable is about two feet too short. I don't want to have the MP box sitting between my feet so it can be within 3' of the connector at the back of the display. I talked with someone at the on-line apple store today and he checked with an engineer and looked at the cable that comes with the display, and it was indeed only ~3' long. Since this type of monitor connection (the mini display port) is supposedly going to become the new "standard", I would hope that companies (e.g., Belkin, etc) will have high quality but longer cables available. I assume that the cable you have has the same mini display port plug on each end, and no adaptors are necessary?
    If anyone has a solution to this short cable dilemma, please chime in!
    Thanks

  • My voice does not reach, but talking on the phone

    My phone is changed to 2 times the new phone. My voice does not reach, but talking on the phone. sometimes locks up my phone. throws and is reset when the white screen. Turkey also could not be repaired. I wonder what I have a problem? . I can not use my phone for 3 months.
    thanks

    Hi,
    troubles
    My voice is not heard by telephone, during a conversation
    phone locks up constantly. starts again and the screen stays white
    was given two times a new device by device service,
    but the problem continues
    After making icloud can restore?
    ios version =5.0.1 iphone 4
    Thanks

  • Itunes 11.1.4 does not recognise my iPhone 4S

    Hi I'm new here I appreciate any help. I upgrated my iTunes to 11.1.4 and now it does not recognize my Iphone 4S. I have Macbook Pro. Any help please?
    Thanks

    Hello there, nikaa_87.
    The following Knowledge Base article provides some pointers for when your iPhone is not recognized by iTunes:
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/ts1591
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Syncing iphone and it froze, now it does not know my iphone.

    I was syncing my iphone and it froze.  I had to disconnect and now it does not know my iphone.  What do I do now?

    What doesn't know your iPhone?
    Allan

  • Hi; I updated my iTunes to the latest version (11.1.4.62), but it does not detect my iPhone 4s any more.

    Hi,
    I updated my iTunes to version 11.1.4.62, but it does not detect my iPhone 4s any more. I have tried the following ways but still did not work:
    Rebooted the computer
    Rebooted the iPhone
    plugged and unplugged the USB cable multiple times and to various USB ports
    Uninstalled and installed the i-Tunes
    Signed out the iTunes and signed in again
    my USB cable and ports are all ok
    my ios version on iPhone is : 7.4.4
    my laptop os is windows 8.1 and my processor is: Intel Core i7-3610QM @ 2.30 GHz
    I appreciate your help.

    I find this on another post and tried it.  It WORKED.  I had to modify to fit my situation but give it a try.  Good luck.
    Go to Windows 8.1 Control Panel.
    Go to Hardware and Sound; Devices and Printers; Device Manager; Portable Devices (look for Apple IPad)
    Right-click, then select properties on the menu list.
    Under the "Driver" tab menu, confirm the update driver button is not greyed out.  If the update driver button is grey and unselectable, you need to select and click "Change Settings" button located near the lower left corner.
    Now you can click the "Driver" tab menu near the top, so you can see the "Update Driver" button.
    Select "Update Driver".
    Select and click "Browse my computer for driver software".
    For Windows 8.1 64 bit, it should be located in the folder: C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers. 
    Click Next, and let the driver re-install.
    iTunes  11.1.4.62 should open automatically if your iphone is connected already.

  • Windows 8.1 does not recognize my iphone.

    windows 8.1 does not recognize my iphone.

    Hi kathyt8952 ,
    Would you please share us more details of the issue ?
    Have you checked the driver issue from the device manager ?Have you tried to connect the device from another USB port to have a check ?
    We can take the following steps to have a check .
    1.Open "run" from the start menu, and run "services.msc".
    2.Search "Apple Mobile Device".
    3.On "status" column right click and then click on "Properties"
    4.In the "general" tab find the "startup type" drop-down arrow menu and make sure "automatic" is selected.
    5.Also in the general tab check the "service status". If it does not say "started" then click the start button.
    6.At the bottom of the properties window click "apply".
    If the issue persists, we can refer to the following link to have a troubleshoot :
    iPhone, iPad, or iPod not recognized in iTunes for Windows
    https://support.apple.com/en-us/HT204095
    We may also need to ask for help from the Apple Forum .They may have some good advices for you .
    NOTE: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites.
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Vista does not recognize my iPhone / Not charging

    Two problems:
    1. Extemely slow charging:
    - I've had my iPhone plugged in to the wall all night. The battery meter only shows 20% power.
    - When charging from my computer or the mains, the charge icon does not appear.
    - I've tried charging off my laptop, desktop and the mains.
    - I've tried using the cradle and just the usb cable by itself.
    2. Widows does not recognize my iPhone:
    - I have Vista 32bit
    - I have tried multiple USB ports, all of which work with other devices
    - I have uninstalled and reinstalled iTunes about 10 times now
    - I have restarted iPhone and my PC many times now
    When I start the machine, this is the sequence of events:
    1. I get a message saying:
    "Windows needs to install driver software for you Unknown Device"
    2. I get a message saying:
    "Installing device driver software"
    3. I get a message saying:
    "Windows couldn't find driver software for your device"
    - I click on "check for a solution"
    4. Then it tells me:
    "Windows Vista does not support midiport device"
    PLEASE HELP ME BEFORE I GO COMPLETELY CRAZY!!!
    Message was edited by: alc02j

    The failure to charge sounds like a defective cable. Check this first.
    If you are running 64 bit Vista it will not work with the iPhone.
    If you are running 32 bit Vista make sure you have the latest version of iTunes (7.5). The reboot the phone - hold the HOME and SLEEP buttons until an Apple logo appears (about 8 seconds).
    Here's a tech note on resolving this type of problem:
    http://docs.info.apple.com/article.html?artnum=305716

  • I had to replace my Iphone 5c with a new one.  Now, my windows 7 pc does not recognize my iphone.  Reinstalled itunes.  Apple mobile device is running.  I did whatever I could find on the internet still no luck.  Any suggestions?  Thnx

    I had to replace my Iphone 5c with a new one.  Now, my windows 7 pc does not recognize my iphone.  Reinstalled itunes.  Apple mobile device is running.  I did whatever I could find on the internet still no luck.  Any suggestions?  Thnx

    You have done everything verbatim included with this link?
    http://support.apple.com/kb/ts1538

  • My iTunes does not recognize my iPhone 4...plz help..!!

    Hello Folks,
    My iTunes (version 10.5.1.42) does not recognize my iPhone 4. I have tried all the below steps but nothing seems to work.
    iTunes un-installed and installed again.
    iPhone restarted
    Virus protection disabled
    Tried diffirent USB connection on my laptop
    The same iPhone seems to be working prefectly fine on my friend's laptop. Please help..!!!

    iOS: Device not recognized in iTunes for Windows
    iOS: Device not recognized in iTunes for Mac OS X

  • Itunes does not recognize my iphone 4.  I am running Windows XP with IE.  Any suggestions would help.  Thanks.

    Itunes does not recognize my Iphone 4. I did a restore on my phone about four months ago..  Does anyone have any suggestions as to what I can try?

    try deleting these preference files
    •C:\Documents and Settings\Your Username Here\Application Data\Apple Computer\iTunes
    •C:\Documents and Settings\Your Username Here\Local Settings\Application Data\Apple Computer\iTunes
    •C:\Documents and Settings\All Users\Application Data\Apple Computer\iTunes\SC Info

  • My iphone4s does not turn on,when I connect to power ,it shows the message "connect to itunes" but when I connect to iTunes,my pc does not detect my phone,so iTunes does not detect my iPhone.

    My iphone4s does not turn on,when I connect to power ,it shows the message "connect to itunes" but when I connect to iTunes,my pc does not detect my phone,so iTunes does not detect my iPhone.

    Are you running the most recent version of iTunes for Windows on your PC?  You may be running an older version that is incompatible with the 4s.
    Hope this helps

  • Itunes on windows 8.1 does not recognise my iphone/nano or ipad. I have reinstalled a few times and nothing has worked?

    I have updated my laptop to windows 8.1. My laptop now does not recognise my iphone, nano or ipad? I have uninstaled and reinstalled. I can downlaod pictures off my iphone but not connect to itunes?
    Please help

    iOS: Device not recognized in iTunes for Windows

  • I have recently purchased a used iPhone 4, when i plugged it into my pc a skull came up instead of the apple icon.  My pc does not recognise the iPhone, I have tried everything that I can think of.  Has anybody any ideas on how I can fix this?

    I have recently purchased a used iPhone 4, when I pulg it into my pc a skull icon appears instead of the apple.  The pc also does not recognise the iPhone.  The phone was originally purchased in March of this year, so it is under 12 months old.  Has anybody encountered this problem and or know how I can fix the phone? Thanks

    You have apparently purchased a jailbroken phone.  You can try to get it into recovery mode, then restore as new, but no guarantee it will work.
    http://support.apple.com/kb/ht1808

Maybe you are looking for

  • Problem when printing from the browser

    The report is displayed in the browser properly. We are using rwcgi to view the reports in the browser. But when printed using the print option of the browser, the page setup is taken from the browser's page setup. How do we set the browser's page se

  • Globalchips to Acme Communication Error

    Hi Ramesh, I am doing the X12 tutorial between Acme and Globalchips. 850 from Acme goes fine, but when GlobalChips tries to send 997 it gets the following error. Please help. Shamik AIP-50079 Transport error: [IPT_HttpSendError] HTTP encounters send

  • BEx WAD - Input validation

    Hi All, I'm using BEx WAD to call a query that allows me to see cost center information according to user authorizations thru the Portal. However, if I type an invalid entry then the application returns everything, including nodes that the user is no

  • JSP - ImageLoader from Database (BalusC code)

    ImageServlet Firstly @ BalusC amazing code thanx I have been playing with the ImageServlet and Wow. It works perfectly Here is my problem: I want to load the image from my SQL Server 2000 database but when I load the image it doesn't display and no e

  • What tools do you really use to manage network settings?

    I have been having all sorts of frustrations setting up DNS, and in the end I found that many of the problems were due to bugs or flakiness in the Server Admin tools. Throughout the course of reading these discussions, I eventually found the solution