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