+ All Categories
Home > Documents > U10 Streaming Media Application Note

U10 Streaming Media Application Note

Date post: 03-Feb-2022
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
18
U10 Streaming Media Application Note WCDMA Module Series Rev. U10_Streaming_Media_Application_Note_V1.0 Date: 2012-11-27 www.quectel.com
Transcript

U10 Streaming Media

Application Note

WCDMA Module Series

Rev. U10_Streaming_Media_Application_Note_V1.0

Date: 2012-11-27

www.quectel.com

WCDMA Module U10 Streaming Media Application Note

U10_Streaming_Media_Application_Note Confidential / Released 11 / 17

Example

AT+QLIVECFG=0,3 // Configure the video resolution as CIF

OK

AT+QLIVECFG=1,1 // Configure the video stream with audio

OK

AT+QLIVECFG=3,”123456789” // Configure U10 ID as “123456789”

OK

AT+QLIVECFG=4,1 // Configure saving the video stream to local path

OK

AT+QLIVECFG=5,”SD:\picture” // Configure the saving path as “SD:\picture”

OK

AT+QLIVECFG=6,10 // Configure the frame rate of video stream as 10 fps

OK

<value>:

0: Do not keep alive

1: Keep alive

If<type>=3 Configure ID of U10 module (12345 by default)

<value>:

Max length of ID is 32 bytes, if input is longer, then take the front 32 bytes

If<type>=4 Configure if saving the video stream to local path (do not save by default)

<value>:

0: Do not save

1: Save

If<type>=5 Configure the saving path of video stream ( UFS by default )

<value>:

“SD:\video” means saving the video stream to the path “SD:\video\<current_time>.mp4”

If<type>=6 Configure frame rate of video stream ( 0 by default, means using default system

value )

<value>:

U10 supports 1-30fps

If<type>=7 Configure the rotation of video stream

<value>:

0: No rotation

1: 90°rotation 2: 180°rotation 3: 270°rotation

Quectel

Confidential

WCDMA Module U10 Streaming Media Application Note

U10_Streaming_Media_Application_Note Confidential / Released 12 / 17

4 Preconditions for Normal Play of

Streaming Media

4.1. Make Sure U10 Module Works in 3G Network

1. Streaming Media function is designed for 3G network, please make sure the USIM card used by U10

is WCDMA 3G card and without arrears, otherwise, the communication of network may be abnormal,

then Streaming Media function cannot work.

2. Please use the AT command “AT+QRAT=1” to restrictedly set U10 working in 3G network, and

“AT+QRAT?” can be used to query which network the U10 module works in, please see U10 AT

commands for details.

3. If U10 module works in 2G network, although the TCP link can be established and registration can be

completed, the video stream cannot be transferred to the client in time, then mosaic may appear or

video break down.

4.2. Make Sure U10 Camera is Free

1. As the limitation of hardware resource on U10, camera can only be used by one application at a time,

or resource conflict will happen and errors may occur.

2. Make sure camera is not used by other applications when Streaming Media is playing, for example,

please check video call, video recording and capture. If camera is used by others, then “+LIVE:

Rtsp/module no camera resource” will return from U10 during Streaming Media playing. When this

happens, please close the other applications, and restart Streaming Media function again.

3. In order to reduce time for repeatedly starting Streaming Media, please close other applications when

U10 returns “+LIVE: Rtsp/server SETUP”, which is the message before playing.

4. The following chart describes how to release camera resource for first video recording then

Streaming Media. You can take it as a reference.

Quectel

Confidential

WCDMA Module U10 Streaming Media Application Note

U10_Streaming_Media_Application_Note Confidential / Released 13 / 17

MCU U10 Server Client

AT+QCAMON

configure

AT+QCAMAVI

playsetup

"+LIVE: Rtsp/server SETUP"

AT+QCAMSTOP

AT+QCAMOFF

play

transfer videotranser video

Video

recording

StreamingMedia

release camera resource

Figure 2: Stop Video Recording before Streaming Media

4.3. Make Sure Audio DSP is Free

1. U10 has only one audio DSP which is used for audio decoding and coding, if more than one

application use it at the same time, resource conflict will happen and errors may occur.

2. Make sure audio DSP is free before Streaming Media is playing, for example, please check video call,

voice call and audio playing. If other applications use audio DSP, Streaming Media playing will fail. If

Streaming Media playing fails because of no free audio DSP, please close other applications first,

and then restart to play Streaming Media function again.

3. In order to reduce time for repeatedly starting Streaming Media, please close other applications when

U10 returns “+LIVE: Rtsp/server SETUP”, which is the message before playing.

4. The following chart describes how to release audio DSP resource for first voice call then play

Streaming Media. Please take it as a reference.

Quectel

Confidential

WCDMA Module U10 Streaming Media Application Note

U10_Streaming_Media_Application_Note Confidential / Released 14 / 17

MCU U10 Server Client

playsetup

"+LIVE: Rtsp/server SETUP"

ATHplay

transer video

transfer video

Voice call

StreamingMedia release audio DSP

RING

ATA

Figure 3: Stop Call before Streaming Media

4.4. Make Sure to Close Streaming Media before Starting Other

Applications

1. If video recording will be started during Streaming Media playing, please use “AT+QLIVESTAT?” to

check the status of Streaming Media at first.

2. If current status is IDLE, please start video recording directly.

3. If current status is not IDLE, first, use “AT+QLIVESTOP” to close Streaming Media. After it is closed,

U10 will return “+QLIVESTOP: OK” or “+LIVE: Rtsp/server CLOSE”. When either of the two

messages is returned from U10, video recording can be started.

4. The following chart describes how to release camera resource for Streaming Media then video

recording.

Quectel

Confidential

WCDMA Module U10 Streaming Media Application Note

U10_Streaming_Media_Application_Note Confidential / Released 15 / 17

MCU U10 Server

video stream Streaming

MediaAT+QLIVESTOP

"+QLIVESTOP: OK"or"+LIVE: Rtsp/server CLOSE"

start video recording

Figure 4: Stop Streaming Media before Video Recording

Quectel

Confidential

WCDMA Module U10 Streaming Media Application Note

U10_Streaming_Media_Application_Note Confidential / Released 16 / 17

5 Frequently Asked Questions

5.1. What‟s the meaning of “+LIVE: Rtsp/server TEARDOWN”?

“+LIVE: Rtsp/server TEARDOWN” means the client player cannot receive video stream for a long time or

the client player stops playing. For the former, it needs to check if U10‟s network is abnormal; U10 is

working in 3G network? What about the signal? Or any network congestion?

5.2. What‟s the meaning of “+LIVE: Rtsp/server CLOSE”?

“+LIVE: Rtsp/server CLOSE” means the socket between U10 and the server has been closed, and

Streaming Media stopped transferring video stream. It may happen in two situations. One is the server

closes the TCP links because of some errors occur. The other is network abnormal. Please restart

Streaming Media to continue playing.

5.3. After “+LIVE: Rtsp/server SETUP”, but “+LIVE: Rtsp/server PLAY”

does not confirm it for a long time.

It is possible that the network is not very good. Please try to restart to the Streaming Media function.

5.4. After “AT+QLIVESTART=„IP‟, PORT”, “+QLIVESTART: OK” is

confirmed from U10, but U10 can not register the server by

“AT+QLIVEREG”, or “+LIVE: Rtsp/server CLOSE” is confirmed from

U10. „‟

These issues may be caused by dummy TCP link, please use “AT+QLIVESTART=„IP‟, PORT” to restart

the TCP link again.

Quectel

Confidential

WCDMA Module U10 Streaming Media Application Note

U10_Streaming_Media_Application_Note Confidential / Released 17 / 17

5.5. After “AT+QLIVESTART=„IP‟, PORT”, “+QLIVESTART: FAIL” is

confirmed from U10.

It is possible that the network is not very good. Please try to restart to the Streaming Media function.

Quectel

Confidential


Recommended