Re:TC65 SPI Exception

47 views
Skip to first unread message

German Fischman

unread,
Jan 31, 2015, 6:59:33 PM1/31/15
to java...@googlegroups.com
Hello!!

I am working with TC65.I need it to connect to a Maxim6950 via SPI in order to control 7 segment led.The PCB board --interface-- is under manufacturing. I am testing the code without
any external connection right now and I am receiving an SPI class Connection exception as you can see below.


                           - javax.microedition.io.Connec
tor.open(), bci=12
                   - javax.microedition.io.Connector.open(), bci=3
                                                                   - javax.micro
edition.io.Connector.open(), bci=2
                                   - midlet300.Midlet300$SPICommunicator.openSPI
(), bci=3
          - midlet300.Midlet300$PortListener.run(), bci=34
                                                          Uncaught exception: ja
va.lang.NullPointerException:   0
                                  - midlet300.Midlet300$SPICommunicator.send(),
bci=94
       - midlet300.Midlet300$SPICommunicator.sendCommand(), bci=2
                                                                  - midlet300.Mi
dlet300$SPICommunicator.setup(), bci=3
                                       - midlet300.Midlet300$PortListener.run(),
 bci=39



This nullpointer exception seems to come from
spiConn = (SpiConnection) Connector.open("spi:0;baudrate=100;clockMode=0");

Is it possible to receive a nullpointer like this because I am testing it without an SPI device?



Best Regards,

German Fischman

Ondrej Janovsky

unread,
Feb 1, 2015, 3:35:46 PM2/1/15
to javacint

Hello,

I will try it tomorrow on my tc65ix and ehs5.

Regards Ondrej.

Dne 1. 2. 2015 0:59 "German Fischman" <german....@gmail.com> napsal(a):
--
javacint group - http://www.javacint.com/
---
You received this message because you are subscribed to the Google Groups "Cinterion Java enabled chips support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javacint+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

GermanF

unread,
Feb 1, 2015, 9:28:30 PM2/1/15
to java...@googlegroups.com
Hi Ondrej.Glad to see your reply!

I am totally lost. If SPI protocol does not need an acknowledge like I2C why I am receiving a ConnectionNotFoundException?
I am testing the code without any external connection.If I use AT Command there isn't any problem at all.

Regards,
German Fischman

open spi
javax.microedition.io.ConnectionNotFoundException

                                                  - javax.microedition.io.Connec
tor.open(), bci=12
                   - javax.microedition.io.Connector.open(), bci=3
                                                                   - javax.micro
edition.io.Connector.open(), bci=2
                                   - fox.Fox$SPICommunicator.openSPI(), bci=11
                                                                               -
 fox.Fox$PortListener.run(), bci=34
 
 
 
 sending data SPI CHANNEL
Uncaught exception: java.lang.NullPointerException:   0
                                                        - fox.Fox$SPICommunicato
r.send(), bci=102
                  - fox.Fox$SPICommunicator.sendCommand(), bci=2
                                                                 - fox.Fox$SPICo
mmunicator.displayNumber(), bci=25
                                   - fox.Fox$PortListener.run(), bci=75


Running SetUp
sending data SPI CHANNEL
Uncaught exception: java.lang.NullPointerException:   0
                                                        - fox.Fox$SPICommunicato
r.send(), bci=102
                  - fox.Fox$SPICommunicator.sendCommand(), bci=2
                                                                 - fox.Fox$SPICo
mmunicator.setup(), bci=11
                           - fox.Fox$PortListener.run(), bci=39

eppie

unread,
Feb 2, 2015, 5:48:51 AM2/2/15
to java...@googlegroups.com
Please try with uppercase. SPI: instead of spi:. I have seen something simular with the COM/com ports.
Reply all
Reply to author
Forward
0 new messages