Can't get receive messages from CAN shield with car OBD
![userHead](https://dfimg.dfrobot.com/dfPortrait2.png)
Hi there,
I've been trying to get my arduino to connected to my Miata MX5 OBD2 via the CAN bus shield and supplied cable.
However, whatever using the example scripts to receive , I only get the first message that the shield has initialised.
https://wiki.dfrobot.com/CAN-BUS_Shield_V2__SKU__DFR0370_#target_6
i.e. DFROBOT's CAN BUS Shield init ok!
I am told that the speed of the CAN is 500kbps , so this is as in the example.
Just what needs editting to at least see all the messages on the CAN bus to check things are even working.
Any help would be greatly appreciated.
M.
Sorry to reply you for so long.
We have found the reason for your problem. After the Arduino ide version is updated, the write function is no longer supported to write data in the serial port.
The following modifications are required:
![](https://dfimg.dfrobot.com/nobody/makelog/696b1c44dbff4d352a6b8a192389def3.png)
After modification, you can normally receive the data sent by CAN in the serial port. And we will update the Wiki in time.
Thank you for your support to our company.
![userHeadPic](https://dfimg.dfrobot.com/62fba4cb025a892c98c6da64/makelog/ee56c850c3ab064883d06db441ab3a40_50x50.png)
Hi there, can anyone tell me how to check the replies to this message as I can't see them even though it mentions there are two replies?
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)
I think you can check the definition of MX-5 OBD.
Usually, OBD is defined as this
![](https://dfimg.dfrobot.com/nobody/makelog/1b05f3f389e30aa9afb4c26c2e3366c4.png)
this is DFRobot CAN shield circuit diagram, It uses the DB9 port.
A DB9 to OBD cable is required. There are two cable sequences in the market.
https://www.dfrobot.com.cn/images/upload/File/DFR0370/20160406125424bsw8e2.pdf
![](https://dfimg.dfrobot.com/nobody/makelog/711c95fd519a05cc511848af7d04ce02.png)
Type A
![](https://dfimg.dfrobot.com/nobody/makelog/7d5bdb399d56fddbef3e71a3da47b36d.png)
Type B
![](https://dfimg.dfrobot.com/nobody/makelog/6ec53c93c68df3db3b8cf5d7694de33d.png)
this is DFRobot cable , it is type B
https://www.dfrobot.com/product-1309.html
P1 DB9 Female P2 OBD II male 1 —— 5 2 —— 4 3 —— 6 4 —— 7 5 —— 14 6 —— 10 7 —— 2 8 —— 15 9 —— 16
I don't know what the wire sequence of MX-5 is and what cable should be used.
What kind of cable do you use?
![p.name](https://dfimg.dfrobot.com/data/DFR0370/6W4A4602.jpg)