Wireless communication between the printer and the cartridge, carriage or printhead