摘要 |
<p>Embodiments of the present invention provide a charging method and apparatus for machine-to-machine communications. The method includes: receiving, by an M2M service capability layer, a resource access request, where the resource access request includes a destination identifier; determining, according to the resource access request, that current resource access needs to use an underlying network and the current resource access is a charging event; sending the resource access request to a main service capability layer according to the destination identifier; receiving a resource access response with respect to the resource access request, and determining charging data for the current resource access; and sending the charging data to a charging server. According to the charging method and apparatus provided by the embodiments of the present invention, the M2M service capability layer determines the charging data according to the resource access request sent by a request initiator, and sends the charging data to the charging server for charging the request initiator, thereby addressing a charging problem that arises when the request initiator uses the underlying network in a case in which the request initiator does not subscribe to the underlying network.</p> |