We apply the techniques provided by the recent works Gaiotto, Moore and
Neitzke, to derive the most general spectrum generating functions for coupled
2d-4d A1 theories of class S, in presence of surface and line
defects. As an application of the result, some well-known BPS spectra are
reproduced. Our results apply to a large class of coupled 2d-4d systems, the
corresponding spectrum generating functions can be easily derived from our
general expressions.Comment: 38 pages; v2: references added; v3: references added, added
introductory material in sections 1, 2.1, 2.2, 2.