README.Modem 2.4 KB

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