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

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

问题描述

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

感谢所有答案!

解决方案

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

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

我知道用于微控制器的Java的部分实现.例如,有基于Java的" SIM卡(内部有一个很小的控制器),但是它们的Java版本非常有限.

因此,基本上,我认为编写嵌入式Java"的最佳选择(特别是如果您是新手)是在微控制器上工作,该微控制器基本上是一台功能齐全的小型计算机,该计算机运行的是已经有操作系统的适当操作系统. JVM.只需查看一个新的微型计算机"开源项目,例如 raspberry pi或 解决方案

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.

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.

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.

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.

Hope I helped.

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

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