Research in Motion (RIM) has been given a fine of $147.2m after losing a patent battle in court.

The BlackBerry smartphone maker infringed on a remote management system for wireless devices held by Mformation Technologies, a US court ruled. RIM has been ordered to pay $8 per BlackBerry connected to its enterprise software server, according to Reuters.

BlackBerry 9320 smartphone

Mformation filed the lawsuit back in 2008 over the system which allows devices to be upgraded, passwords changed and wiped remotely. The court-ordered fine only accounts for US sales, not future or foreign damages.

A spokesperson for RIM said the company has pending legal motions that could overturn the verdict. The firm said that Mformation's claims are invalid because the process was already being used when it filed its patent application.

It is a big hit for the Canadian company if it fails to overturn the decision. Sales of its BlackBerry smartphones have slumped over the last couple of years as well as its share price. Furthermore, its BlackBerry 10 operating system, which it hopes will close the gap to the iPhone and Android device is delayed until next year.

Follow Chris Martin and @PCAdvisor on Twitter.