Pages: [1]   Go Down
Author Topic: Arduino & Nokia phone - not working  (Read 2587 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

Weeks ago, I started to try interfacing my Arduino Uno r3 with one of my nokia phones (6086 & 6136).
I have been through lot of links, blogs and even this forum.
Here is a short list:
http://arduino.cc/forum/index.php/topic,132920.0.html
http://1474orchard.ca/projects/?entry=entry110123-142726
http://arduino.cc/forum/index.php/topic,21490.0.html
http://arduino.cc/forum/index.php/topic,20775.0.html
http://www.insidegadgets.com/2013/01/12/how-to-use-nokia-f-bus-to-send-an-sms-message/

This leads me to try many methods. And finally none of them worked out.
All of those methods use FBus.

Here is an exhaustive list of what I tried:
- Nokia RX|TX connected to Arduino TX|RX directly, use of Serial.write and Serial.print, all baud rates tested : NOK
- Nokia RX|TX connected to Arduino pin 2 & 3, use of SoftwareSerial, all baud rates tested : NOK
- Nokia RX|TX connected to Arduino TX|RX directly, Arduino TX signal inverted using a transistor, use of Serial.write, all baud rates tested : NOK
- Nokia RX|TX connected to Arduino pin 2 & 3, use of SoftwareSerial, signal inverted option of SoftwareSerial, all baud rates tested : NOK
- And even trying to send AT command with RX|TX --> TX|RX wiring (why not !): NOK

The only thing that happened is getting a single 0 in the second method if I remeber well.
I learnt a lot, but to be honnest, I think I am going to burn those damn phones...

But if by any chance you have an idea (not a link, I think I already saw all of them), but maybe a past experience of yours, I will be grateful.

Thank you !

Loïc
Logged

Wonderful and easy Arduino tutos here : ThePolyscope.com
And also science new and various tech topics !

Offline Offline
Newbie
*
Karma: 0
Posts: 28
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi can you show your sketch for what you are doing. Pretty certain these
Phones use fbus
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure, here they are:

Code using hardware serial transmission:
Code:
byte msg[] = {
  0x1E, 0x00, 0x0C, 0xD1, 0x00, 0x07, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x60, 0x00, 0x72, 0xD5 };

void setup() {
  Serial.begin(115200);
  delay(1000);
}

void loop() {
  delay(7000);
  Serial.println("Start");
 
  // Initialise the F-bus
  for (int z = 0; z < 128; z++) {
    Serial.write(0x55);
   }
  delay(1000);

  // Send our command
  for (int x = 0; x < (sizeof(msg) / sizeof(byte)); x++) {
    Serial.write(msg[x]);
  }

  // Wait for a reply
  while (1) {
    delay(1000);
    while (Serial.available() > 0) {
      char c = Serial.read();
      Serial.print(c, HEX);
      Serial.print(" ");
    }
  }
}



Code using software serial transmission:
Code:
#include <SoftwareSerial.h>

#define rxPin 2
#define txPin 3

// set up a new serial port
SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin, true );

void setup()  {
  // define pin modes for tx, rx:
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
  // set the data rate for the SoftwareSerial port
  mySerial.begin(115200);
  // For user output messages
  Serial.begin(115200);
}

void loop() { 
  // Initialise the F-bus
  Serial.println("Initializing F-Bus.");
  for (int z = 0; z < 128; z++) {
    mySerial.write(0x55);
  }
  delay(1000);
 
  // Send our command
  Serial.println("Send request.");
  byte msg[] = {0x1E, 0x00, 0x0C, 0xD1, 0x00, 0x07, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x60, 0x00, 0x72, 0xD5}; 
  for (int x = 0; x < (sizeof(msg) / sizeof(byte)); x++) {
    mySerial.write(msg[x]);
  }

  // Read answer
  Serial.println("Read answer.");
  mySerial.listen(); 
  while (1) {
    delay(1000);
    while (mySerial.available()>0){
      Serial.print(mySerial.read(), HEX);     
      Serial.print(' ');     
    }
  }
 
}

All those were grabbed from previous links.
Logged

Wonderful and easy Arduino tutos here : ThePolyscope.com
And also science new and various tech topics !

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, same problem here, tried about 4 nokias (6100, 6210, 6021, 3410) with MEGA R3,
6100 and 6021 are supposed to work with AT commands, but nothing happens,
Arduino serial3 TX to Nokia RX connected with resistors voltage divider
Arduino TX - R 1K - Nokia RX - R 1K - R 1K - GND
I'm using nokia Pop-port cable pins 6, 7, 8
http://pinouts.ru/CellularPhones-Nokia/nokia_pop_pinout.shtml
when I short pin 6 and 7 on nokia plug (RX TX) I can get echo so I assume wiring is OK.
tried various sketches with F-BUS and AT commands as well but nothing happens.
Have you solved yours, Loic_B?

Can anybody clarify if the external Pop-Port pins 6, 7 described as FBUS RX/TX, and internal ones (usually under battery) are equal or completely different and which  ones should be used to communicate with Arduino.
« Last Edit: February 23, 2014, 10:35:14 am by Greg_OR » Logged

ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 12
Posts: 1601
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you sure that 1sec delay is fine?

dont you think that trying to read the reply form the RX after you initialise the Fbus would be worthy of knwoing  whats happening.
Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Pages: [1]   Go Up
Jump to: