]>
Commit | Line | Data |
---|---|---|
c609719b WD |
1 | How to configure modem support in U-Boot : |
2 | ||
3 | 1. Define modem initialization strings: | |
4 | --------------------------------------- | |
5 | ||
6 | The modem initialization strings have following format: | |
7 | ||
8 | mdm_init1=<AT-command> | |
9 | mdm_init2=<AT-command> | |
10 | ... | |
11 | ||
12 | Turning off modem verbose responses with ATV0 or ATQ1 is not allowed; | |
13 | U-Boot analyzes only verbose (not numeric) result codes. Modem local | |
14 | command echo can be turned off (ATE0). | |
15 | ||
16 | 2. RTS/CTS hardware flow control: | |
17 | --------------------------------- | |
18 | ||
19 | You may wish to enable RTS/CTS hardware flow control, if the board's | |
20 | UART driver supports it (see CONFIG_HWFLOW compile-time flag in | |
21 | config/<board>.h). This is controlled by the 'mdm_flow_control' | |
22 | environment variable: | |
23 | ||
24 | 'mdm_flow_control=rts/cts' - to enable RTS/CTS flow control. | |
25 | 'mdm_flow_control=none ' - to disable. | |
26 | ||
27 | ||
28 | The following are the examples using a Rockwell OEM modem | |
29 | configuration: | |
30 | ||
31 | SAMSUNG # setenv mdm_init1 ATZ - reset the modem to | |
32 | the factory defaults. | |
33 | SAMSUNG # setenv mdm_init2 ATS0=1 - set modem into | |
34 | answer mode. | |
35 | SAMSUNG # setenv mdm_flow_control rts/cts - enable serial port | |
36 | flow control | |
37 | SAMSUNG # saveenv | |
38 | ||
39 | The example above initializes modem into answer mode to wait for the | |
40 | incoming call. RTS/CTS flow control is enabled for the serial port. | |
41 | (The RTS/CTS flow control is enabled by default on the modem). | |
42 | ||
43 | ||
44 | SAMSUNG # setenv mdm_init1 ATZ | |
45 | SAMSUNG # setenv mdm_init2 ATS39=0+IFC=0,0 - disable modem | |
46 | RTS/CTS flow control | |
47 | SAMSUNG # setenv mdm_init3 ATDT1643973 - dial out the number | |
48 | SAMSUNG # setenv mdm_flow_control none | |
49 | SAMSUNG # saveenv | |
50 | ||
51 | The example above initializes modem to dial-up connection on the | |
52 | number 1643973. Flow control is disabled. | |
53 | ||
54 | Note that flow control must be turned both off or both on for the | |
55 | board serial port and for the modem. | |
56 | ||
57 | ||
58 | If the connection was set up successfully, the U-Boot prompt appears | |
59 | on the terminal console. If not (U-Boot modem was configured for | |
60 | originating the call and connection was not established) - the board | |
61 | should be reset for another dial-up try. | |
62 | ||
63 | ||
64 | Note on the SMDK2400 board: | |
65 | --------------------------- | |
66 | ||
67 | Since the board serial ports does not have DTR signal wired, modem | |
68 | should be told to ignore port DTR setting prior to connection to the | |
69 | SMDK board, and this setting should be stored in modem NVRAM. For the | |
70 | Rockwell OEM modem this can to be done with the following command: | |
71 | ||
72 | AT&D0&W |