{"id":26105,"date":"2018-08-22T14:09:34","date_gmt":"2018-08-22T19:09:34","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=26105"},"modified":"2018-08-22T14:41:37","modified_gmt":"2018-08-22T19:41:37","slug":"using-curl-to-manage-telit-radio-firmware-upgrade","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mtr-software\/mtr-api-reference\/rcell_api_appendix\/using-curl-to-manage-telit-radio-firmware-upgrade\/","title":{"rendered":"Using Curl to Manage Telit Radio Firmware Upgrade"},"content":{"rendered":"<p>Here are two examples of using curl to manage Telit radio firmware upgrade.<\/p>\n<p>One example provides information on the Telit update and the other initiates a telit radio firmware upgrade.<\/p>\n<p><strong>Getting available Telit radio firmware data<\/strong><\/p>\n<p>Example (post request, use curl):<\/p>\n<pre class=\"brush:xml\">curl -i -k -b \/tmp\/headers --http1.0 --header \"Content-Type: application\/json\" --request POST --data '{\"useDefault\":true,\"ftpServer\":\"ftp.multitech.com\/wireless\/Telit_FOTA\/ME910C1-NV\/firmwarecheck.json\",\"ftpUsername\":\"\",\"ftpPassword\":\"\"}' \"https:\/\/192.168.2.1\/api\/command\/telit_check_fota_updates?token=3D9EABB5B1FE4030EC61523523F55153\"\r\n\r\nHTTP\/1.0 200 OK\r\nAccess-Control-Allow-Origin: *\r\nSet-Cookie: token=3D9EABB5B1FE4030EC61523523F55153; Path=\/; Secure\r\nCache-Control: no-cache\r\nContent-type: application\/json\r\nContent-Length: 739\r\nConnection: close\r\nDate: Mon, 18 Jun 2018 15:13:32 GMT\r\nServer: rcell\r\n\r\n{\r\n   \"code\" : 200,\r\n   \"result\" : [\r\n      {\r\n      \"firmwareFile\" : \"30.00.002_30.00.002-B996_FOTA.bin\",\r\n      \"ftpFirmwareDir\" : \"wireless\/Telit_FOTA\/ME910C1-NV\",\r\n      \"ftpPassword\" : \"\",\r\n      \"ftpServer\" : \"ftp.multitech.com\",\r\n      \"ftpUsername\" : \"\",\r\n      \"targetFirmwareBuild\" : \"5\",\r\n      \"targetFirmwareVersion\" : \"30.00.002-B996_FOTA\"\r\n       },\r\n      {\r\n      \"firmwareFile\" : \"30.00.002_30.00.002-B996_FOTA.bin\",\r\n      \"ftpFirmwareDir\" : \"wireless\/Telit_FOTA\/ME910C1-NV\",\r\n      \"ftpPassword\" : \"\",\r\n      \"ftpServer\" : \"ftp.multitech.com\",\r\n      \"ftpUsername\" : \"\",\r\n      \"targetFirmwareBuild\" : \"5\",\r\n      \"targetFirmwareVersion\" : \"30.00.002-TEST\"\r\n      }\r\n   ],\r\n   \"status\" : \"success\"\r\n}<\/pre>\n<p><strong>Start Telit radio firmware upgrade<\/strong><\/p>\n<p>Example:<\/p>\n<p>Post request, use curl. json data is obtained from telit_check_fota_updates command request.<\/p>\n<pre class=\"brush:xml\">curl -i -k -b \/tmp\/headers --http1.0 --header \"Content-Type: application\/json\" --request POST --data '{\"firmwareFile\":\"30.00.002_30.00.002-B996_FOTA.bin\",\"ftpFirmwareDir\":\"wireless\/Telit_FOTA\/ME910C1-NV\",\"ftpPassword\":\"\",\"ftpServer\":\"ftp.multitech.com\",\"ftpUsername\":\"\",\"targetFirmwareBuild\":\"5\",\"targetFirmwareVersion\":\"30.00.002-TEST\"}' \"https:\/\/192.168.2.1\/api\/command\/telit_fota_upgrade?token=3D9EABB5B1FE4030EC61523523F55153\"\r\n\r\nHTTP\/1.0 200 OK\r\nAccess-Control-Allow-Origin: *\r\nSet-Cookie: token=3D9EABB5B1FE4030EC61523523F55153; Path=\/; Secure\r\nCache-Control: no-cache\r\nContent-type: application\/json\r\nContent-Length: 89\r\nConnection: close\r\nDate: Mon, 18 Jun 2018 15:46:44 GMT\r\nServer: rcell\r\n{\r\n  \"code\" : 200,   \r\n  \"result\" : \"Success: Init-fota started\",\r\n  \"status\" : \"success\"\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here are two examples of using curl to manage Telit radio firmware upgrade. One example provides information on the Telit update and the other initiates a telit radio firmware upgrade. Getting available Telit radio firmware data Example (post request, use curl): curl -i -k -b \/tmp\/headers &#8211;http1.0 &#8211;header &#8220;Content-Type: application\/json&#8221; &#8211;request POST &#8211;data &#8216;{&#8220;useDefault&#8221;:true,&#8221;ftpServer&#8221;:&#8221;ftp.multitech.com\/wireless\/Telit_FOTA\/ME910C1-NV\/firmwarecheck.json&#8221;,&#8221;ftpUsername&#8221;:&#8221;&#8221;,&#8221;ftpPassword&#8221;:&#8221;&#8221;}&#8217; &#8220;https:\/\/192.168.2.1\/api\/command\/telit_check_fota_updates?token=3D9EABB5B1FE4030EC61523523F55153&#8221; [&hellip;]<\/p>\n","protected":false},"author":1478,"featured_media":0,"parent":13423,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-26105","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/26105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1478"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=26105"}],"version-history":[{"count":5,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/26105\/revisions"}],"predecessor-version":[{"id":26107,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/26105\/revisions\/26107"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13423"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=26105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}