A wavelength division multiplexing (WDM) module for transmitting and/or
receiving multiple signals simultaneously includes an array of vertical
cavity surface emitting lasers (VCSELs) and/or photodetectors,
respectively. In the transmitter case, different VCSELs are operated at
different wavelengths that change depending on a value of a condition
such as temperature and/or one or more other parameters. Multiple VCSELs
are assigned to each channel of the WDM. The currently active VCSEL is
switched to a different VCSEL assigned to a same channel and preferably
having an operating wavelength that is closer to the signal wavelength at
the current measured or estimated temperature and/or other parameter
value. Multiple photodetectors are assigned to each channel of the WDM,
and currently active detector is switched to the second detector within
the same channel. A tuning layer and a resonant waveguide grating coupler
are preferably integrated into the resonant structure of the VCSEL array
and wavelength specific detector array.