1 # CHIP Example IM Application Tutorial
5 The CHIP IM example application shows you how to implement a CHIP application
6 program using IM protocols.
8 CHIP Protocols are, essentially, implementations of specific protocols over the
9 CHIP transport. Furthermore, when two CHIP nodes are exchanging messages of a
10 particular CHIP protocol, they do so over a construct called a CHIP Exchange
11 which is a description of a CHIP-based conversation over a CHIP protocol. A CHIP
12 Exchange is characterised by the ExchangeContext object, and every CHIP node
13 must create an ExchangeContext object before initiating a CHIP conversation.
15 After constructing a CHIP ExchangeContext, CHIP messages are sent and received
16 using the ChipMessageLayer class which sends the CHIP message over a chosen
17 transport (TCP, UDP, or CRMP).
19 ## Example Applications Walk Through
21 As part of this example, we have a ChipImInitiator program that acts as the
22 client and sends echo requests to a ChipImResponder program that receives
23 InvokeCommandRequests and sends back InvokeCommandResponse messages.
25 ### Test a device over IP
27 To start the Server in echo mode, run the built executable.
31 To start the Client in echo mode, run the built executable and pass it the IP
32 address of the server to talk to.
34 $ ./chip-im-initiator <Server's IPv4 address>
36 If valid values are supplied, it will begin to periodically send messages to the
37 server address provided for three times.