The gateway firmware inside X4 talks to module on serial UART line with baud rate of 115200 & in API mode. However, by default XBee modules are shipped with baud rate of 9600 with AT firmware. Therefore, requirement to change Baud rate and firmware to API mode does makes sense.