]>
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 | |
28 | GND GND | |
29 | ||
30 | ||
31 | Successful initialization | |
32 | ------------------------- | |
33 | ||
34 | The sigrok command line used was: | |
35 | ||
36 | sigrok-cli -d 0:samplerate=500khz --samples 8388608 \ | |
37 | -p '1=TX,2=RX' -o panasonic_pan1321_init.sr | |
38 | ||
39 | The data sent (S) to the PAN1321 module and received from it (R) was: | |
40 | ||
41 | R: ROK\r\n | |
42 | S: AT+JSEC=1,1,2,04,7777\r\n | |
43 | R: OK\r\n | |
44 | S: AT+JDIS=3\r\n | |
45 | R: OK\r\n | |
46 | S: AT+JRLS=1101,11,Serial port,01,000000\r\n | |
47 | R: OK\r\n | |
48 | S: AT+JSLN=21,MyCoolBluetoothDevice\r\n | |
49 | R: OK\r\n | |
50 | S: AT+JAAC=1\r\n | |
51 | R: OK\r\n | |
52 | S: AT+JSCR\r\n | |
53 | R: OK\r\n | |
54 | ||
55 | ||
56 | Successful initialization, triggered | |
57 | ------------------------------------ | |
58 | ||
59 | The sigrok command line used was: | |
60 | ||
61 | sigrok-cli -d 0:samplerate=500khz --samples 8388608 \ | |
62 | -p '1=TX,2=RX' --wait-trigger --triggers 2=1 \ | |
63 | -o panasonic_pan1321_init_triggered.sr | |
64 | ||
65 | The data sent/received is the same as in the above example. The difference | |
66 | is that we triggered on the first high RX state, which might lead to | |
67 | some garbage for the first few decoded characters. This is file intended as | |
68 | a test-case for this situation. | |
69 | ||
70 | ||
71 | Invalid command, error code | |
72 | --------------------------- | |
73 | ||
74 | The sigrok command line used was: | |
75 | ||
76 | sigrok-cli -d 0:samplerate=500khz --samples 8388608 \ | |
77 | -p '1=TX,2=RX' -o panasonic_pan1321_error.sr | |
78 | ||
79 | R: ROK\r\n | |
80 | S: AT+JSEC=1,1,2,04,7777\r\n | |
81 | R: OK\r\n | |
82 | S: AT+JDIS=9\r\n | |
83 | R: ERR=-1\r\n | |
84 | ||
85 | As 9 is an invalid value for the "AT+JDIS=" command, the device returns | |
86 | an error code. | |
87 |