15749 views|4 replies

298

Posts

1

Resources
The OP
 

iTOP-iMX6 development board-Android-can test routine introduction [Copy link]

The can routine of the Android source code of the TOP-iMX6 development board is included in the Android source code, in the “ packages/apps/” directory, as shown in the figure below. This is the source code of the application interface. As shown in the figure below, the hardware abstraction layer of can is the "device/fsl/topeet_6dqbcan/" file.
(, downloads: 0)
The most important source code file is the "canHardware.c" in the figure above. Open the file for a simple analysis. As shown in the figure below, it is the initialization code interface.
As shown in the figure below, it is the initialization code interface.
(, downloads: 0)
As shown in the figure below, it can be found that it uses a command similar to "ifconfig can0 up" to enable and disable can. 404948 The remaining important jni interfaces are as follows. JNIEXPORT jint JNICALL Java_can_hardware_hardwareControl_canWrite This is the sending interface of CAN.
JNIEXPORT jobject JNICALL Java_can_hardware_hardwareControl_canRead
can's receiving interface.
JNIEXPORT void JNICALL Java_can_hardware_hardwareControl_closeCan
can's close interface. As can be seen from the above analysis, the jni interface has encapsulated the initialization, sending, receiving and closing of CAN. I only need toHiragino Sans GB, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif]You can call them in Android.
For specific calling methods, please refer to Chapter 10 of the User Manual and the parts related to jin.

This post is from Embedded System

Latest reply

Learned  Details Published on 2019-3-15 10:02
Personal signature更多开发板详情了解哦

1.https://arm-board.taobao.com
2.www.topeetboard.com
Q: 2551456065

71

Posts

0

Resources
2
 
Well, thanks for sharing!
This post is from Embedded System
 
Personal signatureFTP
 

935

Posts

1

Resources
3
 
This post is from Embedded System
 
Personal signature存储芯片/MCU/SRAM/PSRAM/DDR/FLASH/MRAM。web.www.sramsun.com  QQ3161422826 TEL:13751192923
 
 

9

Posts

0

Resources
4
 
Learned
This post is from Embedded System
 
 
 

298

Posts

1

Resources
5
 
(, downloads: 0)
This post is from Embedded System
 
Personal signature更多开发板详情了解哦

1.https://arm-board.taobao.com
2.www.topeetboard.com
Q: 2551456065
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list