]>
Commit | Line | Data |
---|---|---|
d9f0f1a7 UH |
1 | ------------------------------------------------------------------------------- |
2 | Panasonic PAN1321 Bluetooth module | |
3 | ------------------------------------------------------------------------------- | |
4 | ||
5 | This is an example capture of the serial (UART) init for the Panasonic | |
6 | PAN1321 Bluetooth module. | |
7 | ||
8 | The firmware sends the init commands at 115200 baud, with 8n1 settings. | |
9 | ||
10 | Details: | |
11 | https://www.panasonic.com/industrial/electronic-components/rf-modules/bluetooth/pan1311-1321.aspx | |
12 | https://www.panasonic.com/industrial/includes/pdf/Users_Manual_PAN1321_V22.xx_Rev3.1.pdf | |
13 | http://www.datasheets.org.uk/indexdl/Datasheet-098/DSA00161388.pdf | |
14 | ||
15 | ||
16 | Logic analyzer setup | |
17 | -------------------- | |
18 | ||
19 | The logic analyzer used for capturing is a ChronoVu LA8 at a sample rate | |
20 | of 500kHz. | |
21 | ||
22 | The logic analyzer probes were connected like this: | |
23 | ||
24 | Probe PAN1321 | |
25 | ------------------- | |
26 | 0 (green) TX | |
27 | 1 (orange) RX | |
d9f0f1a7 UH |
28 | |
29 | ||
30 | Successful initialization | |
31 | ------------------------- | |
32 | ||
33 | The sigrok command line used was: | |
34 | ||
35 | sigrok-cli -d 0:samplerate=500khz --samples 8388608 \ | |
36 | -p '1=TX,2=RX' -o panasonic_pan1321_init.sr | |
37 | ||
38 | The data sent (S) to the PAN1321 module and received from it (R) was: | |
39 | ||
40 | R: ROK\r\n | |
41 | S: AT+JSEC=1,1,2,04,7777\r\n | |
42 | R: OK\r\n | |
43 | S: AT+JDIS=3\r\n | |
44 | R: OK\r\n | |
45 | S: AT+JRLS=1101,11,Serial port,01,000000\r\n | |
46 | R: OK\r\n | |
47 | S: AT+JSLN=21,MyCoolBluetoothDevice\r\n | |
48 | R: OK\r\n | |
49 | S: AT+JAAC=1\r\n | |
50 | R: OK\r\n | |
51 | S: AT+JSCR\r\n | |
52 | R: OK\r\n | |
53 | ||
54 | ||
55 | Successful initialization, triggered | |
56 | ------------------------------------ | |
57 | ||
58 | The sigrok command line used was: | |
59 | ||
60 | sigrok-cli -d 0:samplerate=500khz --samples 8388608 \ | |
61 | -p '1=TX,2=RX' --wait-trigger --triggers 2=1 \ | |
62 | -o panasonic_pan1321_init_triggered.sr | |
63 | ||
64 | The data sent/received is the same as in the above example. The difference | |
65 | is that we triggered on the first high RX state, which might lead to | |
66 | some garbage for the first few decoded characters. This is file intended as | |
67 | a test-case for this situation. | |
68 | ||
69 | ||
70 | Invalid command, error code | |
71 | --------------------------- | |
72 | ||
73 | The sigrok command line used was: | |
74 | ||
75 | sigrok-cli -d 0:samplerate=500khz --samples 8388608 \ | |
76 | -p '1=TX,2=RX' -o panasonic_pan1321_error.sr | |
77 | ||
78 | R: ROK\r\n | |
79 | S: AT+JSEC=1,1,2,04,7777\r\n | |
80 | R: OK\r\n | |
81 | S: AT+JDIS=9\r\n | |
82 | R: ERR=-1\r\n | |
83 | ||
84 | As 9 is an invalid value for the "AT+JDIS=" command, the device returns | |
85 | an error code. | |
86 |