通过http.request下载MP3文件后,再播放MP3文件就会导致系统重启,请问是什么原因?

----------代码

require "utils"

require "pm"

require"audio"

module(..., package.seeall)

require"mqtt"

require"http"

function cbFnc(result,prompt,head,body) 

log.info('result', result)

log.info('prompt', prompt)

log.info('head', head)

log.info('body', body)

audio.play(0,"FILE","/ldata/1.mp3",7)

end

http.request("GET","http://img.xxx.cn/1.mp3?id=1",nil,nil,nil,90000,cbFnc,"/ldata/1.mp3")

----------代码

以下是日志

[2019-04-10 20:03:58.371]: [I]-[ril.proatc]

[2019-04-10 20:03:58.375]: [I]-[ril.proatc]7, CONNECT OK

[2019-04-10 20:03:58.378]: [I]-[ril.sendat]AT+CIPSEND=7,70

[2019-04-10 20:03:58.380]: [I]-[ril.proatc]

[2019-04-10 20:03:58.382]: [I]-[ril.proatc]> 

[2019-04-10 20:03:58.384]: [I]-[ril.procatc.send]first 200 bytesGET /1.mp3?id=1 HTTP/1.1

[2019-04-10 20:03:58.385]: Host: img.xxx.cn

[2019-04-10 20:03:58.385]: Connection: short

[2019-04-10 20:03:59.800]: [I]-[ril.proatc]

[2019-04-10 20:03:59.802]: [I]-[ril.proatc]7, SEND OK

[2019-04-10 20:03:59.823]: [I]-[ril.proatc]

[2019-04-10 20:03:59.827]: [I]-[ril.proatc]+RECEIVE,7,1400:

[2019-04-10 20:03:59.830]: [I]-[ril.proatc]HTTP/1.1 200 OK

[2019-04-10 20:03:59.832]: [I]-[ril.proatc]Server: Tengine

[2019-04-10 20:03:59.836]: [I]-[ril.proatc]Content-Type: audio/mp3

[2019-04-10 20:03:59.839]: [I]-[ril.proatc]Content-Length: 9864

[2019-04-10 20:03:59.842]: [I]-[ril.proatc]Connection: keep-alive

[2019-04-10 20:03:59.845]: [I]-[ril.proatc]Date: Wed, 10 Apr 2019 12:03:36 GMT

[2019-04-10 20:03:59.847]: [I]-[ril.proatc]x-oss-request-id: 5CADDB987860A5F94A05CA42

[2019-04-10 20:03:59.848]: [I]-[ril.proatc]Accept-Ranges: bytes

[2019-04-10 20:03:59.850]: [I]-[ril.proatc]ETag: "260F276F96DA8B6BB8B8EB390C455BD6"

[2019-04-10 20:03:59.851]: [I]-[ril.proatc]Last-Modified: Wed, 10 Apr 2019 11:58:47 GMT

[2019-04-10 20:03:59.853]: [I]-[ril.proatc]x-oss-object-type: Normal

[2019-04-10 20:03:59.854]: [I]-[ril.proatc]x-oss-hash-crc64ecma: 3091161357988895554

[2019-04-10 20:03:59.855]: [I]-[ril.proatc]x-oss-storage-class: Standard

[2019-04-10 20:03:59.857]: [I]-[ril.proatc]Content-MD5: Jg8nb5bai2u4uOs5DEVb1g==

[2019-04-10 20:03:59.858]: [I]-[ril.proatc]x-oss-server-time: 9

[2019-04-10 20:03:59.860]: [I]-[ril.proatc]Via: cache12.l2cm12[2,30

[2019-04-10 20:03:59.861]: [I]-[ril.proatc]4-0,H], cache14.l2cm12[3,0], kunlun5.cn1250[0,200-0,H], kunlun5.cn1250[3,0]

[2019-04-10 20:03:59.863]: [I]-[ril.proatc]Ali-Swift-Global-Savetime: 1554897705

[2019-04-10 20:03:59.865]: [I]-[ril.proatc]Age: 25

[2019-04-10 20:03:59.865]: [I]-[ril.proatc]X-Cache: HIT TCP_MEM_HIT dirn:-2:-2

[2019-04-10 20:03:59.889]: [I]-[ril.proatc]X-Swift-SaveTime: Wed, 10 Apr 2019 12:03:36 GMT

[2019-04-10 20:03:59.891]: [I]-[ril.proatc]X-Swift-CacheTime: 28

[2019-04-10 20:03:59.897]: [I]-[ril.proatc]Timing-Allow-Origin: *

[2019-04-10 20:03:59.902]: [I]-[ril.proatc]EagleId: 7012ca9915548978410768949e

[2019-04-10 20:03:59.911]: [I]-[ril.proatc]

[2019-04-10 20:03:59.917]: [I]-[ril.proatc]

[2019-04-10 20:03:59.926]: [I]-[ril.proatc]  碯-瞾咋'

[2019-04-10 20:03:59.932]: 楹鷁kD

[2019-04-10 20:03:59.944]: [I]-[ril.proatc]棤鈒强Y"J!鶨

[2019-04-10 20:03:59.948]: [I]-[ril.proatc]

[2019-04-10 20:03:59.954]: lualibc_fopen_ext /ldata/1.mp3 a+ 20a 1 2

[2019-04-10 20:04:00.199]: [I]-[ril.proatc]

[2019-04-10 20:04:00.221]: [I]-[ril.proatc]+RECEIVE,7,1400:

[2019-04-10 20:04:00.234]: [I]-[ril.proatc]偑,i

[2019-04-10 20:04:00.249]: [I]-[ril.proatc]滚

[2019-04-10 20:04:00.260]: [I]-[ril.proatc]9覨鶙

[2019-04-10 20:04:00.266]: [I]-[ril.proatc]

[2019-04-10 20:04:00.277]: 饌

[2019-04-10 20:04:00.281]: [I]-[ril.proatc]磪Q

[2019-04-10 20:04:00.287]: [I]-[ril.proatc]R

[2019-04-10 20:04:00.295]: 3

[2019-04-10 20:04:00.303]: 

[2019-04-10 20:04:00.311]: [I]-[ril.proatc]趝鶷鯨

[2019-04-10 20:04:00.317]: [I]-[ril.proatc]鷮

[2019-04-10 20:04:00.325]: 氧C

[2019-04-10 20:04:00.332]: [I]-[ril.proatc]鳌F

[2019-04-10 20:04:00.344]: lualibc_fopen_ext /ldata/1.mp3 a+ 20a 1 2

[2019-04-10 20:04:00.568]: [I]-[ril.proatc]

[2019-04-10 20:04:00.578]: [I]-[ril.proatc]+RECEIVE,7,1400:

[2019-04-10 20:04:00.587]: [I]-[ril.proatc]貣

[2019-04-10 20:04:00.593]: [I]-[ril.proatc]" 

[2019-04-10 20:04:00.599]: [I]-[ril.proatc]C輷"n)

[2019-04-10 20:04:00.611]: Y涂MLw緪贻_@N

[2019-04-10 20:04:00.614]: [I]-[ril.proatc]Yxr歯藱  `睛A

[2019-04-10 20:04:00.621]: [I]-[ril.proatc]yr

[2019-04-10 20:04:00.628]: [I]-[ril.proatc]

[2019-04-10 20:04:00.633]: [I]-[ril.proatc]15>詽礉漢穇

[2019-04-10 20:04:00.641]: [I]-[ril.proatc]Xf賆iU裨谐J]

[2019-04-10 20:04:00.647]: [I]-[ril.proatc]犿rV/

[2019-04-10 20:04:00.652]: [I]-[ril.proatc]A

[2019-04-10 20:04:00.660]: [I]-[ril.proatc]俙5

[2019-04-10 20:04:00.667]: [I]-[ril.proatc]P曄  趗^銺J铵"腊2Vzf@8}畔('

[2019-04-10 20:04:00.675]: 8

[2019-04-10 20:04:00.680]: [I]-[ril.proatc]D$亏U2

[2019-04-10 20:04:00.687]: lualibc_fopen_ext /ldata/1.mp3 a+ 20a 1 2

[2019-04-10 20:04:00.911]: [I]-[ril.proatc]

[2019-04-10 20:04:00.916]: [I]-[ril.proatc]SMS READY

[2019-04-10 20:04:00.925]: [I]-[ril.defurc]SMS READY

[2019-04-10 20:04:00.955]: [I]-[ril.proatc]

[2019-04-10 20:04:00.973]: [I]-[ril.proatc]+RECEIVE,7,1400:

[2019-04-10 20:04:00.983]: [I]-[ril.proatc]zH

[2019-04-10 20:04:00.992]: [I]-[ril.proatc]攋.

[2019-04-10 20:04:00.998]: 锭

[2019-04-10 20:04:01.010]: [I]-[ril.proatc]敋

[2019-04-10 20:04:01.014]: [I]-[ril.proatc]ˉP,

[2019-04-10 20:04:01.022]: 

[2019-04-10 20:04:01.029]: [I]-[ril.proatc]8

[2019-04-10 20:04:01.036]: [I]-[ril.proatc]

[2019-04-10 20:04:01.044]:

[2019-04-10 20:04:01.052]: [I]-[ril.proatc]

[2019-04-10 20:04:01.060]: [I]-[ril.proatc]b

[2019-04-10 20:04:01.067]: )

[2019-04-10 20:04:01.073]: [I]-[ril.proatc]辮

[2019-04-10 20:04:01.079]: [I]-[ril.proatc]

[2019-04-10 20:04:01.085]: lualibc_fopen_ext /ldata/1.mp3 a+ 20a 1 2

[2019-04-10 20:04:01.467]: [I]-[ril.proatc]

[2019-04-10 20:04:01.479]: [I]-[ril.proatc]+RECEIVE,7,1400:

[2019-04-10 20:04:01.485]: [I]-[ril.proatc]4h

[2019-04-10 20:04:01.494]: [I]-[ril.proatc][

[2019-04-10 20:04:01.501]: [I]-[ril.proatc]E骡m鸀{

[2019-04-10 20:04:01.516]: [I]-[ril.proatc]厸K圮

[2019-04-10 20:04:01.527]: [I]-[ril.proatc]

[2019-04-10 20:04:01.529]: [I]-[ril.proatc]T谰{钐袪f自

[2019-04-10 20:04:01.536]: 铪

[2019-04-10 20:04:01.543]: lualibc_fopen_ext /ldata/1.mp3 a+ 20a 1 2

[2019-04-10 20:04:01.798]: [I]-[ril.proatc]

[2019-04-10 20:04:01.808]: [I]-[ril.proatc]+RECEIVE,7,1400:

[2019-04-10 20:04:01.817]: [I]-[ril.proatc]ˉ/

[2019-04-10 20:04:01.826]: [I]-[ril.proatc]

[2019-04-10 20:04:01.833]: 楬

[2019-04-10 20:04:01.840]: [I]-[ril.proatc]\n/".墅1r

[2019-04-10 20:04:01.847]: [I]-[ril.proatc]郶

[2019-04-10 20:04:01.853]: [I]-[ril.proatc]

[2019-04-10 20:04:01.861]: [I]-[ril.proatc]豵9

[2019-04-10 20:04:01.869]: [I]-[ril.proatc]2

[2019-04-10 20:04:01.878]: [I]-[ril.proatc]/*

[2019-04-10 20:04:01.884]: [I]-[ril.proatc]

[2019-04-10 20:04:01.891]: [I]-[ril.proatc]"

[2019-04-10 20:04:01.899]: [I]-[ril.proatc]7

[2019-04-10 20:04:01.911]: 螆 

[2019-04-10 20:04:01.914]: [I]-[ril.proatc]楚

[2019-04-10 20:04:01.920]: lualibc_fopen_ext /ldata/1.mp3 a+ 20a 1 2

[2019-04-10 20:04:02.250]: [I]-[ril.proatc]

[2019-04-10 20:04:02.255]: [I]-[ril.proatc]+RECEIVE,7,1400:

[2019-04-10 20:04:02.263]: [I]-[ril.proatc]泥

[2019-04-10 20:04:02.274]: [I]-[ril.proatc]

[2019-04-10 20:04:02.280]: [I]-[ril.proatc]

[2019-04-10 20:04:02.284]: [I]-[ril.proatc]繸

[2019-04-10 20:04:02.293]: [I]-[ril.proatc]⒂汳GA4|l6褆&F璻

[2019-04-10 20:04:02.299]: [I]-[ril.proatc]>%x]闂Q

[2019-04-10 20:04:02.310]: [I]-[ril.proatc],

[2019-04-10 20:04:02.312]: x祁F0

[2019-04-10 20:04:02.554]: [I]-[ril.proatc]

[2019-04-10 20:04:02.558]: [I]-[ril.proatc]+RECEIVE,7,843:

[2019-04-10 20:04:02.567]: [I]-[ril.proatc]UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.99.5UUUUUUUUU

[2019-04-10 20:04:02.574]: [I]-[ril.proatc]

[2019-04-10 20:04:02.583]: lualibc_fopen_ext /ldata/1.mp3 a+ 20a 1 2

[2019-04-10 20:04:02.591]: [I]-[result]true

[2019-04-10 20:04:02.599]: [I]-[prompt]200

[2019-04-10 20:04:02.603]: [I]-[head]table: 0x821ee000

[2019-04-10 20:04:02.613]: [I]-[body]/ldata/1.mp3

[2019-04-10 20:04:02.617]: audio.updatenil0FILE/ldata/1.mp37nilnil0

[2019-04-10 20:04:02.624]: [I]-[audio.taskAudio begin]0FILE/ldata/1.mp37nilnil0

[2019-04-10 20:04:02.630]: lualibc_fopen_ext /ldata/1.mp3 rb 0 1 2

[2019-04-10 20:04:02.637]: l_audio_play_file format 1start  platform_audio_play

[2019-04-10 20:04:02.691]: [I]-[ril.sendat]AT+CIPCLOSE=7,0

[2019-04-10 20:04:02.712]: [I]-[ril.proatc]

[2019-04-10 20:04:02.715]: [I]-[ril.proatc]7, CLOSE OK

[2019-04-10 20:04:05.021]: (0xffffffff)模块硬件上电中,正在启动。。。

[2019-04-10 20:04:05.159]: (0x00000057)模块软件开机中。。。


请先 登录 后评论

1 个回答

李炜镪

时间太长无反馈,关闭问题

请先 登录 后评论
  • 0 关注
  • 0 收藏,2764 浏览
  • hello-xyz 提出于 2019-04-10 20:09

相似问题