Go to advanced search

by ammaralroz
Tue Aug 01, 2017 11:17 am
Forum: Java
Topic: Sending command to printer using serial port
Replies: 2
Views: 2461

Re: Sending command to printer using serial port

Update
The code can accept this one

Code: Select all

                
                char[] F = new char[]{0x1B,'d',7};
                serial.write(F);
                
but it does not accept

Code: Select all

                char[] F = new char[]{0x1B,'d',feed};
                printer.write(F);
by ammaralroz
Tue Aug 01, 2017 10:48 am
Forum: Java
Topic: Sending command to printer using serial port
Replies: 2
Views: 2461

Sending command to printer using serial port

Dear All, I have a thermal printer. and I am re-writing the SDK . I am using pi4j library to send ESC/POS commands through the serial port. my problem is I do not know how to send integer to the printer since the serial port does not accept integer This is my function public void printAndFeed(String...
by ammaralroz
Thu May 25, 2017 4:38 am
Forum: Windows 10 for IoT
Topic: cant make 4 serial device objects in RasPi
Replies: 14
Views: 2587

Re: cant make 4 serial device objects in RasPi

I believe you should check the power first. Parallel Programming in the .NET Framework Many personal computers and workstations have two or four cores (that is, CPUs) that enable multiple threads to be executed simultaneously. https://www.youtube.com/results?search_query=c%23+task+parallel+library S...
by ammaralroz
Wed May 24, 2017 1:56 pm
Forum: Windows 10 for IoT
Topic: cant make 4 serial device objects in RasPi
Replies: 14
Views: 2587

Re: cant make 4 serial device objects in RasPi

hi
I am with "beta-tester"
but also your code may not be apple to accept 4 connections.
use parallel reading using thread or task to do the reading so it will not hang
by ammaralroz
Wed May 24, 2017 1:50 pm
Forum: Windows 10 for IoT
Topic: Windows 10 IoT Core Fails to Boot
Replies: 3
Views: 3367

Re: Windows 10 IoT Core Fails to Boot

Dear three main reasons for this problem. 1. No enough power supply. 2. bad SD card, use recommended ones from Microsoft: Samsung EVO 32GB Class 10 Micro SDHC Card SanDisk Ultra Micro SDHC, 16GB Card or any good class 10 SD card 3. corrupted windows installation. for mat and re install the windows
by ammaralroz
Wed May 24, 2017 1:43 pm
Forum: Windows 10 for IoT
Topic: Windows 10 iot boot error
Replies: 9
Views: 9232

Re: Windows 10 iot boot error

Thank you for your replay
Firstly, I am using "SanDisk Ultra Micro SDHC, 16GB Card " which is recommended by Microsoft
secondly, I didn't shutdown the raspberry pi at all, that is why i am confused.
by ammaralroz
Tue May 23, 2017 10:25 am
Forum: Windows 10 for IoT
Topic: Windows 10 iot boot error
Replies: 9
Views: 9232

Windows 10 iot boot error

Dear all, I have raspberry pi 3 and windows 10 iot core. 16GB class 10 memory card (recommended by microsoft) Power supply is 2.8A every time i install windows and testing my codes for 1 to 2 days, the windows boot suddenly corrupted, It happens a lot. you can see the error below. https://wpcf.neosm...

Go to advanced search