We might face a case of porting Java VM for the device, which is connected to Internet over a cellular modem. And i found two different ways in principle for the MCU-to-modem interface, 1) AT Commands ONLY mode and 2) PPP mode, in the URL below.
We have some customer projects that uses AT commands to connect our Net APIs directly to the Modem. From my knowledge, we don’t have any customer using PPP mode.
Theoreticaly you could Map any low level net stack to the JVM (you can have a look at the chapter Networking in the device developer guide).
To use the net pack from the java application, you need to map the Low level apis to your hardware. The mapping is done at the MCU level but you can send AT commands from here directly to the GSM module.
Thanks again for your additional feedback first of all, and do you think it would be OK if i understand like the below?
In case of porting MicroEJ Java VM with no TCP/IP stack in the MCU, like <Cortex-M4 + RTOS>, which connects to the network over a cellular modem by way of a serial connection using AT Commands;
“there would be NO big impact to the development lead time.”
Dear YH,
To clarify: The NET (network) library in a MicroEJ platform requires a native ( C code ) driver implementation. The NET library drivers could be either be:
a TCP/IP stack running on the MCU
or
a modem connected to the MCU (the MCU running the AT commands framework)
If you already have a working AT commands software in C code running and validated, it will help to write this driver and reduce the development time.