[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4505: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4507: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4508: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4509: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
From Flames To Fork, Comes Freedom • View topic - SMS App (Extension from Web-based CRM Module-Telephony)

SMS App (Extension from Web-based CRM Module-Telephony)

All Case Experiences in Topic format. Easy reading mode for contextual understanding. Quickie snapshot and howtos Files are linked into http://compiere.red1.org/

SMS App (Extension from Web-based CRM Module-Telephony)

Postby zam » Mon Aug 14, 2006 6:53 pm

zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby red1 » Wed Aug 16, 2006 4:05 pm

red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby red1 » Tue Aug 22, 2006 2:21 am

red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby red1 » Wed Aug 23, 2006 10:34 am

red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby red1 » Fri Sep 01, 2006 10:06 pm

red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby red1 » Tue Sep 05, 2006 3:48 pm

red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby red1 » Wed Sep 06, 2006 3:38 pm

red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby red1 » Wed Sep 06, 2006 5:49 pm

Back to the Nokia story. It seems that it uses Information Modules or IMlets, which there is a sample called aplicom12sdk which u can download from the web. Just search for the name and u can see inside is an ExampleImlets (D:\red1org\projects\Ntegrator\aplicom12sdk\Java\Examples\ExampleIMlets). Put the jad and jar from there into the Nokia/bin folder and exec the emulator again using the jad as argument.

U can create a new Eclipse project on the src and i m not sureyet of how u can debug and run the emulator.
Note that u need the classes.zip in the classpath.

Now that we know how to run the IMlet, the Nokia 12 Concept Simulator User Guide now makes sense and excitement - see in it pages 26 and 27.
red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby red1 » Thu Sep 07, 2006 5:50 pm

Tested the SimpleRead. It worked .. can tell me what com port i have and listen to it.. waiting.

But when deployed into Tomcat package of main app, it returns null. Suresh helped by refering to http://www.jguru.com/faq/view.jsp?EID=1048895 where we place the comm.jar and win32com.dll in the java_home/jre/lib/ext ...

Now it worked as proven concept. Next is to put the SimpleWrite at convenient place within the Compiere processor that handles issuing of request notice and receipt of notice has to be another place where we place a notifier to check for incoming sms from device and spawn a check as to the contents of message. This follows hereby a protocol:

1. Check CLI of incoming sms.
2. If in request_updates<>user_id.phone,
3. Submit reply to request with message+wrap.
4. Message is translated from SMS Dictionary
i.e. 1 = "Will attend to it rite away"
2 = "Will attend after present task"
3 = "Cannot attend. Pls route"
Wrapper shall prefix the user name, and type of reply i.e. "Engineer A sent sms:Will attend..."

Carrying the SMS dream abit further, we can have ERP on Demand! or SMS-ERP!

For example, u send "SO-Joe" and system returns "Joe Block has 3 open Sales Orders. Key in which one u like - 1/2/3"
U then send, "2";
System: "2nd Orders 3 Hoes. Do u want to ship? Y-1/N-2)"
U say, "1";
System: "3 Hoes to ship to Joe. Warehouse notified" and system sends an sms to the Warehouse Manager's handphone :D
Last edited by red1 on Sat Sep 09, 2006 10:01 pm, edited 1 time in total.
red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby zam » Thu Sep 07, 2006 6:39 pm

zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby zam » Fri Sep 08, 2006 5:22 pm

zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby zam » Mon Sep 11, 2006 2:46 pm

zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby zam » Mon Sep 11, 2006 6:29 pm

zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby red1 » Tue Sep 12, 2006 4:32 pm

I have already CVSed my work into NTSB project of the above, where u can use UI to interact with the Simple javas.

Use the x.html and click on the Test Phone link which calls up the Pojo.java which calls the simple javas.

Seems u re bit stuck with Write here. Why not use the SimpleRead and see if it can read from the device? :D
red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby red1 » Tue Sep 12, 2006 5:43 pm

Zam,
What did u do different between the first and second debug? Your string looks the same.

Also, what is the full error stack that is thrown? After the not write to outputstream:java.io.IOException: write error. When u put a break just before the outputStream.write can u see the contents of serialPort? Use the watch feature in Eclipse. Maybe inside that, can tell u sumtin that wasnt present to proceed.
red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby zam » Wed Sep 13, 2006 11:20 am

zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby zam » Wed Sep 13, 2006 12:34 pm

As suggested by Encik Rahman, I try to send "AT" first before moving on to sending SMS. If program returns "OK", it confirms that there is connection between program and modem.

Previously I was not sure whether
- I failed to communicate with the COM port or
- I can communicate with COM port but AT+CMGS string is coded wrongly

Based on the read coding from the link , I managed to get a respond from modem when AT is sent out. So from here, I'll test on the AT+CMGS string. If sms is successfully being sent out, that means the string is correctly coded or else I'll have to search on how they encode those characters of CTRL+ Z or CR in java. I found various styles of how they encode the characters but not sure which one is correct.
zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby zam » Wed Sep 13, 2006 4:42 pm

Last edited by zam on Mon Sep 18, 2006 2:46 pm, edited 2 times in total.
zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby zam » Fri Sep 15, 2006 10:48 am

zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby zam » Fri Sep 15, 2006 11:55 am

zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby red1 » Fri Sep 15, 2006 7:42 pm

red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby zam » Mon Sep 18, 2006 11:02 am

zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby sureshquest » Mon Sep 18, 2006 2:55 pm

sureshquest
Regular
 
Posts: 69
Joined: Wed Sep 15, 2004 11:09 pm
Location: India

Postby zam » Mon Sep 18, 2006 3:53 pm

Last edited by zam on Mon Sep 18, 2006 5:24 pm, edited 1 time in total.
zam
 
Posts: 49
Joined: Mon Jul 17, 2006 9:30 am

Postby sureshquest » Mon Sep 18, 2006 4:04 pm

sureshquest
Regular
 
Posts: 69
Joined: Wed Sep 15, 2004 11:09 pm
Location: India

Next

Return to Compiere Case Workshop

Who is online

Users browsing this forum: No registered users and 1 guest

cron