background image

 

C o m m u n i c a t i o n s ,   I n c .

 

 

© 2006-2007 

PalmMicro Communications, Inc.

 

Room 0611, Bldg.B Tsinghua Tongfang Technology Plaza, 1 Wangzhuang Road, Beijing, CHINA

 

 

26

6 Create Music File 

Music file, including phone ringtone file and call hold music file, is a binary file and can be 

updated to a phone. Phone ringtone file is stored in page2-page4 and call hold file in 

page5-page7, each part is 192K(3

×

64K ). 

Tone is sampled at 8k points per second and compressed by 8-bit mu law with 1 Byte per 

sample point. We set 32768 Bytes (32K) as a section and use 32640Bytes of them; the 

last 128Bytes are not used. So, 4.08 seconds music can be stored in one section. The 

size of a music file is 196608Bytes (6

×

32768Bytes) and the music stored in it can plays 6

×

4.08=24.48

 

seconds

.

 

 

Warning

 

The size of music file must be 196608 Bytes. If not, errors will take place. 

 

Record Music 

Use CoolEdit to record music, here take example for Cool Edit Pro Version 2.1. 

 

Set recording control property: 

1. 

Click PC volume property

2. 

Point “property” on ” options” menu and click it; 

3. 

Select “record” in “adjust volume”; 

4. 

Select all volume control in “display volume control” and click “OK”; 

5. 

Select “wave output balance “ only and exit;   

 

Use CollEdit to record: 

1. Run 

CoolEdit.exe; 

2. 

Point “New” on “File” menu and click it; 

3. 

Select “8000” in “Sample Rate”, “Mono” in “Channels”, “8-bit” in “resolution” and 

click “OK”.; 

4.  Point “Show Transport Buttons” on “View” menu and select it. The following 

controllers display at the down-left corner: 

 

5. 

Open player ”Windows Media Player”; 

6. 

Point “Transport Buttons” and click the record button

7. 

Time for record ring tone is 24.48 seconds; 

8. 

Point “Save As…” on “File” menu and click it; 

9. Click 

“Options: 

Содержание AR1688

Страница 1: ...Communications Inc 2006 2007 PalmMicro Communications Inc Room 0611 Bldg B Tsinghua Tongfang Technology Plaza 1 Wangzhuang Road Beijing CHINA 1 AR1688 Based IP Phone Development Guide...

Страница 2: ...5 Tool Directory 5 AR1688 Program Structure 5 page0 page11 6 page12 page31 7 2 Program Compile 8 Compile Environment 8 Program File 8 Compile Operation 9 mk bat Batch File 9 clean bat Batch File 12 3...

Страница 3: ...grade Long Ring Tone 28 7 HTTP Auto Provisioning 29 Settings file and firmware file 29 Preparing settings file 29 Preparing firmware file 29 Set server address and port 29 Auto upgrade settings file a...

Страница 4: ...tories under SDCC Bin Directory The directory includes SDCC open source compiler binary files and our own special tools binary files We are using SDCC 2 7 0 steady version You can also download those...

Страница 5: ...e space including extended ISO 8859 1 fonts for 2x16 LCD a 4K ROM 8052 is enough cost about 0 5 USD 7 UART at 19200 bps 8 bit data 1 stop no parity check 8 Oscillator at 22 1184Mhz Src Directory Open...

Страница 6: ...rved for DSP data The Flash 2M memory space is divided into 32 pages of 64K each The 32 pages are divided into 2 parts page0 page11 and page12 page31 page0 page11 Each page is described as follows y p...

Страница 7: ...m each other by the configuration option system_page When configured as system_page 12 the phone will boot from section 1 and from section 1 and let the phone program update the software in section 2...

Страница 8: ...guage_OEM_version bin Example ar168x_sip_cn_oem_032000 bin hardware protocol language and oem correspond with parameters in mk command For more details see the chapter about mk command version denotes...

Страница 9: ...created y Http data files include Chinese English French Italian Brazil Spain Romania Russia and Turkey y Phone program file includes only one protocol According to protocol parameter value to select...

Страница 10: ...VER_AR168MS define VER_BT2008N define VER_FWV2800 y Protocol the protocol for the phone defined as CALL_XXXX in version h The value for this parameter in mk command is XXXX that must be lowercase In v...

Страница 11: ...e0 update file When protocol are other values mk compiles codes of phone main program and protocol parts and creates phone update program Examples Example 3 Compile ar168x phone using SIP protocol Eng...

Страница 12: ...using English and no OEM language parameter can skip C sdcc src mk ar168x none Enter After compiling phone upgrade program file ar168x_sip_us_032000 bin is created This mode is applicable in followin...

Страница 13: ...write to specified file y put Write the data into the phone Updating phone program ring tone and setting information are all writing operation and this parameter is needed y Source source binary file...

Страница 14: ...update phone settings Command syntax tftp i host put source Enter source is phone settings file and the filename must begin with settings_ namely settings_xxx dat How to make this file will be describ...

Страница 15: ...a and phonebook data may use designated batch file getopt bat and setopt bat getpb bat and setpb bat recommended For more details see section 4 HTTP Update Enter phone setting WEB page select update p...

Страница 16: ...gs txt settings dat Enter 4 Update the phone with settings dat Note Description of getopt bat and convert ext can be found in chapter 5 Phonebook Phonebook file is a binary file Steps of generating it...

Страница 17: ...escription of convert ext can be found in chapter 5 Call Hold Music File It is a binary file for updating call hold music Steps of generating it are 1 Record a pcm ring by referencing chapter 6 2 Use...

Страница 18: ...tSubnetMask IP_ALEN 255 255 255 0 const UCHAR _pDefaultRouterIp IP_ALEN 192 168 1 1 Check Date Information We check phone date information in Palmtool debug window Run palmtool exe and input phone IP...

Страница 19: ...eptable html format y i web2info Read parameters in the web page and convert it to a header file y h bin2h Convert a file to a c headfile y r ring2bin Convert pcm ring file to AR1688 acceptable binary...

Страница 20: ...b2web srcFile dstFile Enter SrcFile is a html file to be converted and dstFile is a specified output html file converted For example Example Convert the phone configuration text file C sdcc src settin...

Страница 21: ...h Command syntax convert h srcFile dstFile Enter or convert bin2h srcFile dstFile Enter SrcFile is a binary file to be converted and dstFile is a specified output c head file converted For example Ex...

Страница 22: ...n convert r stdring pcm ringtone dat Enter Or input C sdcc src bin convert ring2bin stdring pcm ringtone dat Enter After above operation binary file ringtone dat is created in C sdcc settings director...

Страница 23: ...file with this attribution With f force in the command line if an output file dstFile has existed in the directory the file will be overwritten Without f force in the command line if an output file d...

Страница 24: ...bat are used together and after running setopt bat options txt will be deleted automatically For example File options txt include 2 different section of settings and digitmap Phone configure listed un...

Страница 25: ...book txt as follows Phonebook txt includes phonebook data information total 100 items and only valid items displayed are in the file pb_name stands for the name property of the phonebook and pb_number...

Страница 26: ...lays 6 4 08 24 48 seconds Warning The size of music file must be 196608 Bytes If not errors will take place Record Music Use CoolEdit to record music here take example for Cool Edit Pro Version 2 1 Se...

Страница 27: ...file to D sdcc src and use tftp command to update the phone Tftp command and convert command have been described in previous chapter and updating ring tone process as follows Example 2 Update call hol...

Страница 28: ...260 GP1266 GP2266 is located in bank 8 9 10 11 3 When using TFTP to upgrade ring tone and hold music we will not check file length This is a back door for us to upgrade font because there is no specia...

Страница 29: ...flag for settings file mac_address 0x00 0x18 0x1f 0x01 0x00 0x3a provision_server 192 168 1 251 provision_port 8080 provision_ttl 60 prov_filename ar168x_iax2_cn_032000 bin for setting a file name for...

Страница 30: ...the one in the phone the phone will be updated with all the parameters in the file After setting parameters the phone will restart to make the parameter valid If prov_filename item in new parameters...

Страница 31: ...ake English pages as a template mkweb bat and mkweball bat There are two bat files in SDCC src res mkweb bat and mkweball bat that convert web page easily As follows mkweb bat Input format mkweb proto...

Страница 32: ...files with new files in the temporary directory Modify Language Standard WEB pages display English whose codes directory is SDCC src res us We translate English pages into French ab fr As following St...

Страница 33: ...ure htm temp_us failure htm bin convert w f us login htm temp_us login htm bin convert w f us phonebook_head htm temp_us phonebook_head htm bin convert w f us phonebook_tail htm temp_us phonebook_tail...

Страница 34: ...mpile the phone program with mk bat and choose French for example mk ar168f iax2 fr Step 8 Update the phone and French page is valid Note If you feel difficult for above operation you can do step 1 2...

Страница 35: ...iax2 htm and delete IAX2 Server Port IAX2 server port option part codes Codes in settings_iax2 htm are as follows tr td IAX2 server port td td INPUT name iax2_port size 5 maxlength 5 default 4569 td t...

Страница 36: ...cy and interval to SDCC src dtmf c search for RES_US in files if you need guide for changes See the section in Chapter 8 for more details Step3 Translate the English web pages in SDCC src res us into...

Страница 37: ...INA 37 SDCC src res ro inputmap h is Romanian example and SDCC src res ru inputmap h is Russian example Different inputmap h is included with RES_XX define in SDCC src menu c For users with less progr...

Страница 38: ...nd feel free to write to support palmmicro com cn for a copy if you do not have it 2 Also write to support palmmicro com cn saying that you need special firmware to change your MAC address Please prov...

Страница 39: ...parameters There are 3 cases 1 Syslog IP is set as 0 0 0 0 and the phone is not displayed in Manager 2 Syslog IP is set as 255 255 255 255 and the phone is displayed in Manager but manage tool IP is...

Страница 40: ...elected phone and output it to a txt file Select a phone in the phone list and click Get Phonebook controller read phone settings and display in phonebook txt Select one phone at each time Write phone...

Страница 41: ...za 1 Wangzhuang Road Beijing CHINA 41 the phone Syslog information only 4 With selecting a phone in the list debug window displays the phone message only Note y Click Start Debug controller and pop de...

Отзывы: