A computer-implemented method for communication between a peripheral device (330A, 330B, 330C, 330D) and a mobile application client on a mobile personal communication device, wherein the peripheral device (330A, 330B, 330C, 330D) is integrated in a common physical housing with the mobile personal communication device, wherein the mobile application client is implemented in a browser running on the mobile personal communication device, and wherein the mobile application client is implemented as javascript code in the browser, the method comprising: generating, using a mobile application client implemented on a mobile personal communication device, a command for receipt by an operating system of the mobile personal communication device, the command being socket based and conforming with a standard network communications protocol; forwarding the command from the operating system to an intermediate module located in the mobile personal communication device, wherein the intermediate module is configured for socket based communication according to the standard network communications protocol; wherein the intermediate module is a server embedded into a hardware platform of the mobile personal communication device for the mobile application client; wherein the command is addressed to an address assigned to the peripheral device (330A, 330B, 330C, 330D) of the mobile personal communication device; generating, using the intermediate module and after receiving the command, a command communication for receipt by the peripheral device (330A, 330B, 330C, 330D), the command communication being generated to conform to a protocol specific to the peripheral device (330A, 330B, 330C, 330D) and instructing the peripheral device (330A, 330B, 330C, 330D) to perform an operation corresponding to the command; performing, by the peripheral device (330A, 330B, 330C, 330D), the operation upon receiving the command communication; wherein the communication between the intermediate module and the peripheral device (330A, 330B, 330C, 330D) is done without involvement of the operating system. generating, using a mobile application client implemented on a mobile personal communication device, a command for receipt by an operating system of the mobile personal communication device, the command being socket based and conforming with a standard network communications protocol; forwarding the command from the operating system to an intermediate module located in the mobile personal communication device, wherein the intermediate module is configured for socket based communication according to the standard network communications protocol; wherein the intermediate module is a server embedded into a hardware platform of the mobile personal communication device for the mobile application client; wherein the command is addressed to an address assigned to the peripheral device (330A, 330B, 330C, 330D) of the mobile personal communication device; generating, using the intermediate module and after receiving the command, a command communication for receipt by the peripheral device (330A, 330B, 330C, 330D), the command communication being generated to conform to a protocol specific to the peripheral device (330A, 330B, 330C, 330D) and instructing the peripheral device (330A, 330B, 330C, 330D) to perform an operation corresponding to the command; performing, by the peripheral device (330A, 330B, 330C, 330D), the operation upon receiving the command communication; wherein the communication between the intermediate module and the peripheral device (330A, 330B, 330C, 330D) is done without involvement of the operating system.