基于Java的微控制器? [英] Java based Microcontrollers?

查看:32
本文介绍了基于Java的微控制器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究微控制器,想知道它们中的大多数是否基于 C/C++?我非常精通 Java,想问问你们是否有人知道我可以研究的具有成本效益的基于 Java 的微控制器.

I have been looking into micro-controllers and was wondering if the majority of them are C/C++ based? I am quite proficient in java and want to ask you guys if anyone knows of a good cost efficient, java-based micro-controller I could look into.

感谢所有答案!

推荐答案

Java(或 c#)等语言与 c 或 c++ 等低级语言之间的区别在于它们具有虚拟机.这有许多优点,例如使应用程序独立于平台.但这也意味着每个平台都必须有适合它的虚拟机.

The difference between a language like java (or c#) and a lower level language like c or c++ is the fact that they have a virtual machine. This has many advantages, like making the application platform-independent. But it also means that each platform has to have the vm for it.

现在,微控制器并不统一,而且在功率、内存和许多其他功能方面各不相同.因此,即使在可能的情况下,为他们采用 JVM(Java 的虚拟机)也并非易事.大多数时候这是不可能的——大多数 uc 的内存容量非常低(部分原因是它们便宜)——这使得在那里安装任何通用 JVM 都是不可能的,更不用说应用程序代码了.

Now, microcontrollers are not uniform and vary in power, memory, and many other features. So adopting the JVM (java's virtual machine) for them is not easy even when possible. Most of the time its just impossible - most of the uc have very low memory capacity (part of what makes them cheap) - this would make fitting any general-purpose JVM there impossible, not to mention also with the application code.

我知道一些用于微控制器的 java 部分实现.例如,有基于java的"sim卡(里面有一个非常小的控制器),但它们的java版本非常有限.

I am aware of some partial-implementations of java for microcontrollers. For example "java-based" sim cards (which have a very small controller inside) are there, but they have a very limited version of java.

所以基本上我认为编写嵌入式 Java"(特别是如果你是新手)的最佳选择是在微控制器上工作,这些微控制器基本上是一台功能齐全的小型计算机,运行适当的操作系统,已经有虚拟机.只需查看一个新的微型计算机"开源项目,例如 raspberry pi 或 beaglebone.两者的成本都是 arduino 的 2 倍左右,而且功能更强大.

So basically I think your best bet to write "embedded java" (especially if you're a novice) is to work on top of microcontrolers that are basically a small fully functioning computer, that runs a proper OS that already has a JVM. Just look into one of the new "micro computer" open source projects like raspberry pi or beaglebone. Both cost around 2x of an arduino and are much more powerful.

希望我有所帮助.

这篇关于基于Java的微控制器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆