claudenir c. andrade

73
www Claudenir C. Andrade Integration and R&D Manager Urmet Daruma MVP Microsoft Preface written by Fernando M. Machima Innovation and retail manager - TOTVS

Upload: vanthu

Post on 14-Feb-2017

225 views

Category:

Documents


1 download

TRANSCRIPT

www

Claudenir C AndradeIntegration and RampD Manager Urmet Daruma

MVP Microsoft

Preface written by Fernando M MachimaInnovation and retail manager - TOTVS

About the autorClaudenir C Andrade is a graduate of the Academy of Information Systems of Madrid in Systems Analysis he has worked with business automation for 17 years was responsible for the approval and adoption of Brazilian ECFrsquos in countries like Ecuador and Venezuela

he manages the development team at Daruma Automaccedilatildeo is the author of the first business automation book in Brazil ndash ldquoAutomaccedilatildeo Comercial com VBNet e Crdquo [Commercial Automation with VBNet and C] He has been the MVP at Microsoft for 13 years in a row cHe created the XML model for business automation specified the first SCU command protocol for fiscal printers in Brazil studied MBA of innovative projects (wwwbiinternacionalcombr) with extension study at Jiao Tong University in Shanghai China and Entrepreneurship at Babson University USA He is currently taking an Undergraduate Course Specialized in Marketing non-technical area at FGV

Contact e-mail ndash claudenirandradehotmailcom claudenirdarumacombr twitter ndash wwwtwittercomclaudenirandrad wwwtwittercomdarumadeveloper

Review Carolyne de AndradeIllustration Mariana Gimenes - marianagimenesoutlookcom

3

www

By Fernando M Machima Retail Innovation Manager ndash TOTVS

Speaking of the challenges of innovation in the Brazilian retail is already in itself a challenge Mainly due to the various factors that directly and indirectly influence the dynamism and competitiveness of this segment In todayrsquos knowledge society consumers are increasingly informed and demanding on quality service and fair price of products and services they buy tight margins require creativity and high ability to execute to increase the profitability of the business the diversity of the product mix demand greater control and efficiency in the processes operating and administrative costs need to be optimized for the retailer to be more competitive frequent changes and diversity in national legislation (PAF-ECF SAT CF-e NFC-e) increase the complexity this fiscal scenario And speaking of human capital talent shortages and high turnover are major obstacles to be faced daily

In this context innovation has a key role to break paradigms to change the traditional way of selling and guide certain actions meet these challenges It must be used in full benefit of the consumer to provide greater convenience and facilities throughout the buying process in other words the implementation of an innovation whether a process or technology it makes sense when it results in practice in increased satisfaction and customer loyalty

PREFACE

4

www

and increased retailer sales

The Information Technology (IT) presents itself as a strategic tool to achieve this goal and offers many opportunities to provide a better shopping experience that manages the enchantment and provide a more personalized service Access to retail through multiple channels (examples physical store e-commerce social commerce) expands the possibilities to reach the consumer and gives you the autonomy to decide which channel you want to interact Mobility provides convenience and availability to research compare decide and buy in an easy and intuitive way The tools of CRM (Customer Relationship Management) supported by facial recognition and motion in the store enable customers to identify profile and meet their consumption habits aiming to strengthen the relationship and increase brand loyalty The communication power of social media in the era of information sharing both positive and negative start to gradually increase its influence in the buying decision of consumers The RFID (Radio-Frequency IDentification) technology streamlines processes such as inventory control sales at the POS product traceability and allows greater interactivity in the store These are some of the innovations that are being used in retail seeking not only to meet the needs and desires of its customers but above all they want to surprise

Another project that is breaking paradigms and providing a reinvention of the service model in the segment is the NFC-e

5

www

(Electronic Invoice of sale to the end consumer) which consists of the electronic tax documents issue of the final consumer and direct submission to the Secretariat of State Treasury (SEFAZ) Among the main benefits we have greater flexibility in opening stores and POS (points of sale) but his most significant positive impact is the possibility of using mobility solutions in the store environment further expanding the opportunities to improve the buying experience consumer In a joint venture with Daruma we learn share and evolve knowledge together participated in the pilot an impressive network of building material in Mato Grosso (MT) and issued the first NFC-and the Midwest of the country

I consider this an innovative project in that it gives greater autonomy and flexibility to the retailer to define a new shape and improve service to their customers without the mandatory execution of some legal process for example printing the tax receipt by an ECF equipment

In light of these changes the traditional retail previously formed only by physical stores and defining the rules in the market is having to reinvent itself to maintain and evolve to give more focus and attention to his client who is now eager for news With the support of IT it is necessary to cause entertainment across customer contact having a model of differentiated services that allow the enchanted and desire to relate constantly branded consumer and always be available to provide convenience and shopping experience striking Innovate in retail is a cycle that

6

www

must be renewed frequently as consumer needs change and fast

I would like to wish you a great read because I am sure that you will add knowledge in the segment which is increasingly dynamic and challenging for all of us Finally I thank Claudenir longtime partner for this unique opportunity to develop the preface to his e-book which I accepted and wrote with great satisfaction

Fernando M Machima

By Fernando M Machima Retail Innovation Manager - TOTVS

7

www

VOL I

CommerCial automation with windows embedded and nFC-e eleCtroniCs Consumer invoiCe

Contents oF volumes X Chapters

vol1 Cap1 Change in sCenery aFter 15 years where we are aFFeCted mdash 8

vol1 Cap2 strategy due to the Changes and the unCertain sCenario mdash 2 1

vol1 Cap3 brushing bits think arChiteCture plan beFore all mdash 3 3

vol1 Cap4 what does all this have to do with windows embedded stay tuned mdash 6 9

NFC-E UNLOCKED

8

www

Itrsquos amazing the mixture of feelings back to writing my second book in the ldquoPaper e-Bookrdquo format after 13 years of writing the first book1 This raises mixed feelings in this new scenario of changes in Sales Automation Break away from a paradigm of 17 years of work is not easy there were 7 early years of my career with commercial automation leading the development and integration with developers restructuring strategy of partnering with developers and now yet are 10 years in Urmet Daruma2 also in charge of RampD and integration with market and developers Itrsquos what I love doing and am passionate about with the result seen in the eyes of market positioning and growth of both companies Itrsquos a story sometimes inglorious struggles and other struggles worthwhilehellip but all the stories and struggles ECF - Issuer Tax Coupon - always present with stands today Then write about the NFC and that radically changes some concepts is a necessary nostalgic and full of anxiety work Always with the left side of the brain ldquopoppingrdquo of new ideas and how we can really start brushing bits for the sake of technology for technology and not

1 ldquoAutomaccedilatildeo Comercial com VBNet e C Emissor de Cupom Fiscalrdquo Claudenir Campos Andrade ndash Satildeo Paulo Editora Eacuterica 2001 ndash ISBN 85-7194-778-3 ndash wwweditoraericacombr

2ensp AenspshortenspandenspaccurateenspNarrationenspofensptheensptrajectoryenspinenspbothenspcompaniesenspwasenspfeaturedenspinenspCRNenspmagazineenspCRNensphttpissuucomcrn_brasildocscrn_305 pagesensp56enspandensp57ensp(shortensplinkensphttpsdrvms15untN3)

Change in sCenery after 15 years Where We are affeCted

VOL1 Chap1

9

www

with so much emphasis on obligation

The previous statement may appear disruptive or perhaps retrograde to for some depending on the viewpoint But in none of the points of view do we support the fiscal leniency or that with the entry of NFC-e fiscal controls are not necessary I think the opposite With the entrance of the NFC-e information on credit card purchases will continue to be reported to the tax authorities that may cross sales data But with a competitive advantage the sale can be online For each sale on a Credit Card the NFC-e issued in the cloud over the Internet is informed online this procedure alone already brings an important fiscal control for the economy for compliance with established fiscal rules This allows the business automation system to not worry about this fact but rather with the technology applied reinvented in business automation Here we talk about INNOVATION where we really are beneficially affected by NFC-e

I had the privilege of attending an MBA in Innovative Project Management where one of the modules lasted 19 days in China3 (Shanghai or Xangai) at the Jiao Tong University and other 12 days at Babson University in Boston I do not need to mention that the ldquonorthrdquo of this MBA was always innovation I learned that to innovate techniques exist which crossed with its framework of knowledge stimulated by day to day life and contacts make the

3ensp PhotosenspfromenspthisensppassageenspthroughenspChinaenspcanenspbeenspseenensphereensphttp1drvms1fA8kKR http1drvms1fA8mT6

10

www

innovation process easier4 However contrary to what I thought and in favor of what I learned then I heard the phrase that best defines what is innovation innovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an invention

This sentence is all working need to hear in Commercial Automation Af-ter all if we look back in 2007 to now how many inventions that turned into products and became innovation Ta-blets NFC the era of Mobile Payment Ultrabooks NUCrsquos (Next Computers Units) the mass use and use of QRCO-DE the advancement on law others just myth - As for example the myth that you cannot use a printer other than Fiscal Serial RS232 port - Myth derived from the time of matrix printer Or the use of tablet and mobility in commercial automation which allows the current printer and the printer 09009 also Simply for the total liberation that an adjustment in the PAF rules In fact we were the first and only manufacturer to todayrsquos date in April2014 to have native support in Android tablet and mobile and Windows 8 tablet and mobile for use in the current fiscal printer and 0909

4ensp Hereenspaenspveryenspinterestingenspinfographicenspthatenspexplainsensphowenspthisenspframeworkenspofenspknowledgeenspsupportsensptheenspinnovationenspprocessensphttp1drvmsNkYJBD

ldquoinnovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an inventionrdquo

11

www

printer This is an undisputed fact Enter wwwyoutubecomda-rumadeveloper and see the courses on how to use Android with Non-Fiscal and Fiscal Printer cable WiFi or Bluetooth all using native Android classes for operation or native Windows 8 classes

Today the model of technological innovation is locked by a template associated to tax obligations required to sell a commercial automation system With this so much of the work within the software houses to fulfill tax obligations Itrsquos as if the developer and his Software company were a software accounting House with tax purposes when in fact it continues with the obligation to comply with tax rules required by the government but without it (the developer and his company) removing the spark of innovation This is not possible today An example A fully Cloud Computing POS so that the end customer has a slimmer hardware dedicated no maintenance on the end This innovation conflicts with the requirement of your application issuing off-line invoice ie ldquoout-of-Browserrdquo

I have on my resume 79 PAF lectures in four years and more than 50005 developers present In conjunction with the Technical Supervisor Deynison and Analysis Coordinator in PAF-ECF Alexandre Sibalszky both from POLIMIG did a double run around the country to the DNAutomation forums besides

5ensp AenspLogenspofenspallensplecturesenspwithenspphotosenspcanenspbeenspfoundensphereensp http1drvmsNjuj2Bensp andenspspecificenspactionsenspaboutensptheenspPAFensphereensp httpenspwwwdarumacombrddcmktddcmkt_017_13html

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

About the autorClaudenir C Andrade is a graduate of the Academy of Information Systems of Madrid in Systems Analysis he has worked with business automation for 17 years was responsible for the approval and adoption of Brazilian ECFrsquos in countries like Ecuador and Venezuela

he manages the development team at Daruma Automaccedilatildeo is the author of the first business automation book in Brazil ndash ldquoAutomaccedilatildeo Comercial com VBNet e Crdquo [Commercial Automation with VBNet and C] He has been the MVP at Microsoft for 13 years in a row cHe created the XML model for business automation specified the first SCU command protocol for fiscal printers in Brazil studied MBA of innovative projects (wwwbiinternacionalcombr) with extension study at Jiao Tong University in Shanghai China and Entrepreneurship at Babson University USA He is currently taking an Undergraduate Course Specialized in Marketing non-technical area at FGV

Contact e-mail ndash claudenirandradehotmailcom claudenirdarumacombr twitter ndash wwwtwittercomclaudenirandrad wwwtwittercomdarumadeveloper

Review Carolyne de AndradeIllustration Mariana Gimenes - marianagimenesoutlookcom

3

www

By Fernando M Machima Retail Innovation Manager ndash TOTVS

Speaking of the challenges of innovation in the Brazilian retail is already in itself a challenge Mainly due to the various factors that directly and indirectly influence the dynamism and competitiveness of this segment In todayrsquos knowledge society consumers are increasingly informed and demanding on quality service and fair price of products and services they buy tight margins require creativity and high ability to execute to increase the profitability of the business the diversity of the product mix demand greater control and efficiency in the processes operating and administrative costs need to be optimized for the retailer to be more competitive frequent changes and diversity in national legislation (PAF-ECF SAT CF-e NFC-e) increase the complexity this fiscal scenario And speaking of human capital talent shortages and high turnover are major obstacles to be faced daily

In this context innovation has a key role to break paradigms to change the traditional way of selling and guide certain actions meet these challenges It must be used in full benefit of the consumer to provide greater convenience and facilities throughout the buying process in other words the implementation of an innovation whether a process or technology it makes sense when it results in practice in increased satisfaction and customer loyalty

PREFACE

4

www

and increased retailer sales

The Information Technology (IT) presents itself as a strategic tool to achieve this goal and offers many opportunities to provide a better shopping experience that manages the enchantment and provide a more personalized service Access to retail through multiple channels (examples physical store e-commerce social commerce) expands the possibilities to reach the consumer and gives you the autonomy to decide which channel you want to interact Mobility provides convenience and availability to research compare decide and buy in an easy and intuitive way The tools of CRM (Customer Relationship Management) supported by facial recognition and motion in the store enable customers to identify profile and meet their consumption habits aiming to strengthen the relationship and increase brand loyalty The communication power of social media in the era of information sharing both positive and negative start to gradually increase its influence in the buying decision of consumers The RFID (Radio-Frequency IDentification) technology streamlines processes such as inventory control sales at the POS product traceability and allows greater interactivity in the store These are some of the innovations that are being used in retail seeking not only to meet the needs and desires of its customers but above all they want to surprise

Another project that is breaking paradigms and providing a reinvention of the service model in the segment is the NFC-e

5

www

(Electronic Invoice of sale to the end consumer) which consists of the electronic tax documents issue of the final consumer and direct submission to the Secretariat of State Treasury (SEFAZ) Among the main benefits we have greater flexibility in opening stores and POS (points of sale) but his most significant positive impact is the possibility of using mobility solutions in the store environment further expanding the opportunities to improve the buying experience consumer In a joint venture with Daruma we learn share and evolve knowledge together participated in the pilot an impressive network of building material in Mato Grosso (MT) and issued the first NFC-and the Midwest of the country

I consider this an innovative project in that it gives greater autonomy and flexibility to the retailer to define a new shape and improve service to their customers without the mandatory execution of some legal process for example printing the tax receipt by an ECF equipment

In light of these changes the traditional retail previously formed only by physical stores and defining the rules in the market is having to reinvent itself to maintain and evolve to give more focus and attention to his client who is now eager for news With the support of IT it is necessary to cause entertainment across customer contact having a model of differentiated services that allow the enchanted and desire to relate constantly branded consumer and always be available to provide convenience and shopping experience striking Innovate in retail is a cycle that

6

www

must be renewed frequently as consumer needs change and fast

I would like to wish you a great read because I am sure that you will add knowledge in the segment which is increasingly dynamic and challenging for all of us Finally I thank Claudenir longtime partner for this unique opportunity to develop the preface to his e-book which I accepted and wrote with great satisfaction

Fernando M Machima

By Fernando M Machima Retail Innovation Manager - TOTVS

7

www

VOL I

CommerCial automation with windows embedded and nFC-e eleCtroniCs Consumer invoiCe

Contents oF volumes X Chapters

vol1 Cap1 Change in sCenery aFter 15 years where we are aFFeCted mdash 8

vol1 Cap2 strategy due to the Changes and the unCertain sCenario mdash 2 1

vol1 Cap3 brushing bits think arChiteCture plan beFore all mdash 3 3

vol1 Cap4 what does all this have to do with windows embedded stay tuned mdash 6 9

NFC-E UNLOCKED

8

www

Itrsquos amazing the mixture of feelings back to writing my second book in the ldquoPaper e-Bookrdquo format after 13 years of writing the first book1 This raises mixed feelings in this new scenario of changes in Sales Automation Break away from a paradigm of 17 years of work is not easy there were 7 early years of my career with commercial automation leading the development and integration with developers restructuring strategy of partnering with developers and now yet are 10 years in Urmet Daruma2 also in charge of RampD and integration with market and developers Itrsquos what I love doing and am passionate about with the result seen in the eyes of market positioning and growth of both companies Itrsquos a story sometimes inglorious struggles and other struggles worthwhilehellip but all the stories and struggles ECF - Issuer Tax Coupon - always present with stands today Then write about the NFC and that radically changes some concepts is a necessary nostalgic and full of anxiety work Always with the left side of the brain ldquopoppingrdquo of new ideas and how we can really start brushing bits for the sake of technology for technology and not

1 ldquoAutomaccedilatildeo Comercial com VBNet e C Emissor de Cupom Fiscalrdquo Claudenir Campos Andrade ndash Satildeo Paulo Editora Eacuterica 2001 ndash ISBN 85-7194-778-3 ndash wwweditoraericacombr

2ensp AenspshortenspandenspaccurateenspNarrationenspofensptheensptrajectoryenspinenspbothenspcompaniesenspwasenspfeaturedenspinenspCRNenspmagazineenspCRNensphttpissuucomcrn_brasildocscrn_305 pagesensp56enspandensp57ensp(shortensplinkensphttpsdrvms15untN3)

Change in sCenery after 15 years Where We are affeCted

VOL1 Chap1

9

www

with so much emphasis on obligation

The previous statement may appear disruptive or perhaps retrograde to for some depending on the viewpoint But in none of the points of view do we support the fiscal leniency or that with the entry of NFC-e fiscal controls are not necessary I think the opposite With the entrance of the NFC-e information on credit card purchases will continue to be reported to the tax authorities that may cross sales data But with a competitive advantage the sale can be online For each sale on a Credit Card the NFC-e issued in the cloud over the Internet is informed online this procedure alone already brings an important fiscal control for the economy for compliance with established fiscal rules This allows the business automation system to not worry about this fact but rather with the technology applied reinvented in business automation Here we talk about INNOVATION where we really are beneficially affected by NFC-e

I had the privilege of attending an MBA in Innovative Project Management where one of the modules lasted 19 days in China3 (Shanghai or Xangai) at the Jiao Tong University and other 12 days at Babson University in Boston I do not need to mention that the ldquonorthrdquo of this MBA was always innovation I learned that to innovate techniques exist which crossed with its framework of knowledge stimulated by day to day life and contacts make the

3ensp PhotosenspfromenspthisensppassageenspthroughenspChinaenspcanenspbeenspseenensphereensphttp1drvms1fA8kKR http1drvms1fA8mT6

10

www

innovation process easier4 However contrary to what I thought and in favor of what I learned then I heard the phrase that best defines what is innovation innovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an invention

This sentence is all working need to hear in Commercial Automation Af-ter all if we look back in 2007 to now how many inventions that turned into products and became innovation Ta-blets NFC the era of Mobile Payment Ultrabooks NUCrsquos (Next Computers Units) the mass use and use of QRCO-DE the advancement on law others just myth - As for example the myth that you cannot use a printer other than Fiscal Serial RS232 port - Myth derived from the time of matrix printer Or the use of tablet and mobility in commercial automation which allows the current printer and the printer 09009 also Simply for the total liberation that an adjustment in the PAF rules In fact we were the first and only manufacturer to todayrsquos date in April2014 to have native support in Android tablet and mobile and Windows 8 tablet and mobile for use in the current fiscal printer and 0909

4ensp Hereenspaenspveryenspinterestingenspinfographicenspthatenspexplainsensphowenspthisenspframeworkenspofenspknowledgeenspsupportsensptheenspinnovationenspprocessensphttp1drvmsNkYJBD

ldquoinnovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an inventionrdquo

11

www

printer This is an undisputed fact Enter wwwyoutubecomda-rumadeveloper and see the courses on how to use Android with Non-Fiscal and Fiscal Printer cable WiFi or Bluetooth all using native Android classes for operation or native Windows 8 classes

Today the model of technological innovation is locked by a template associated to tax obligations required to sell a commercial automation system With this so much of the work within the software houses to fulfill tax obligations Itrsquos as if the developer and his Software company were a software accounting House with tax purposes when in fact it continues with the obligation to comply with tax rules required by the government but without it (the developer and his company) removing the spark of innovation This is not possible today An example A fully Cloud Computing POS so that the end customer has a slimmer hardware dedicated no maintenance on the end This innovation conflicts with the requirement of your application issuing off-line invoice ie ldquoout-of-Browserrdquo

I have on my resume 79 PAF lectures in four years and more than 50005 developers present In conjunction with the Technical Supervisor Deynison and Analysis Coordinator in PAF-ECF Alexandre Sibalszky both from POLIMIG did a double run around the country to the DNAutomation forums besides

5ensp AenspLogenspofenspallensplecturesenspwithenspphotosenspcanenspbeenspfoundensphereensp http1drvmsNjuj2Bensp andenspspecificenspactionsenspaboutensptheenspPAFensphereensp httpenspwwwdarumacombrddcmktddcmkt_017_13html

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

3

www

By Fernando M Machima Retail Innovation Manager ndash TOTVS

Speaking of the challenges of innovation in the Brazilian retail is already in itself a challenge Mainly due to the various factors that directly and indirectly influence the dynamism and competitiveness of this segment In todayrsquos knowledge society consumers are increasingly informed and demanding on quality service and fair price of products and services they buy tight margins require creativity and high ability to execute to increase the profitability of the business the diversity of the product mix demand greater control and efficiency in the processes operating and administrative costs need to be optimized for the retailer to be more competitive frequent changes and diversity in national legislation (PAF-ECF SAT CF-e NFC-e) increase the complexity this fiscal scenario And speaking of human capital talent shortages and high turnover are major obstacles to be faced daily

In this context innovation has a key role to break paradigms to change the traditional way of selling and guide certain actions meet these challenges It must be used in full benefit of the consumer to provide greater convenience and facilities throughout the buying process in other words the implementation of an innovation whether a process or technology it makes sense when it results in practice in increased satisfaction and customer loyalty

PREFACE

4

www

and increased retailer sales

The Information Technology (IT) presents itself as a strategic tool to achieve this goal and offers many opportunities to provide a better shopping experience that manages the enchantment and provide a more personalized service Access to retail through multiple channels (examples physical store e-commerce social commerce) expands the possibilities to reach the consumer and gives you the autonomy to decide which channel you want to interact Mobility provides convenience and availability to research compare decide and buy in an easy and intuitive way The tools of CRM (Customer Relationship Management) supported by facial recognition and motion in the store enable customers to identify profile and meet their consumption habits aiming to strengthen the relationship and increase brand loyalty The communication power of social media in the era of information sharing both positive and negative start to gradually increase its influence in the buying decision of consumers The RFID (Radio-Frequency IDentification) technology streamlines processes such as inventory control sales at the POS product traceability and allows greater interactivity in the store These are some of the innovations that are being used in retail seeking not only to meet the needs and desires of its customers but above all they want to surprise

Another project that is breaking paradigms and providing a reinvention of the service model in the segment is the NFC-e

5

www

(Electronic Invoice of sale to the end consumer) which consists of the electronic tax documents issue of the final consumer and direct submission to the Secretariat of State Treasury (SEFAZ) Among the main benefits we have greater flexibility in opening stores and POS (points of sale) but his most significant positive impact is the possibility of using mobility solutions in the store environment further expanding the opportunities to improve the buying experience consumer In a joint venture with Daruma we learn share and evolve knowledge together participated in the pilot an impressive network of building material in Mato Grosso (MT) and issued the first NFC-and the Midwest of the country

I consider this an innovative project in that it gives greater autonomy and flexibility to the retailer to define a new shape and improve service to their customers without the mandatory execution of some legal process for example printing the tax receipt by an ECF equipment

In light of these changes the traditional retail previously formed only by physical stores and defining the rules in the market is having to reinvent itself to maintain and evolve to give more focus and attention to his client who is now eager for news With the support of IT it is necessary to cause entertainment across customer contact having a model of differentiated services that allow the enchanted and desire to relate constantly branded consumer and always be available to provide convenience and shopping experience striking Innovate in retail is a cycle that

6

www

must be renewed frequently as consumer needs change and fast

I would like to wish you a great read because I am sure that you will add knowledge in the segment which is increasingly dynamic and challenging for all of us Finally I thank Claudenir longtime partner for this unique opportunity to develop the preface to his e-book which I accepted and wrote with great satisfaction

Fernando M Machima

By Fernando M Machima Retail Innovation Manager - TOTVS

7

www

VOL I

CommerCial automation with windows embedded and nFC-e eleCtroniCs Consumer invoiCe

Contents oF volumes X Chapters

vol1 Cap1 Change in sCenery aFter 15 years where we are aFFeCted mdash 8

vol1 Cap2 strategy due to the Changes and the unCertain sCenario mdash 2 1

vol1 Cap3 brushing bits think arChiteCture plan beFore all mdash 3 3

vol1 Cap4 what does all this have to do with windows embedded stay tuned mdash 6 9

NFC-E UNLOCKED

8

www

Itrsquos amazing the mixture of feelings back to writing my second book in the ldquoPaper e-Bookrdquo format after 13 years of writing the first book1 This raises mixed feelings in this new scenario of changes in Sales Automation Break away from a paradigm of 17 years of work is not easy there were 7 early years of my career with commercial automation leading the development and integration with developers restructuring strategy of partnering with developers and now yet are 10 years in Urmet Daruma2 also in charge of RampD and integration with market and developers Itrsquos what I love doing and am passionate about with the result seen in the eyes of market positioning and growth of both companies Itrsquos a story sometimes inglorious struggles and other struggles worthwhilehellip but all the stories and struggles ECF - Issuer Tax Coupon - always present with stands today Then write about the NFC and that radically changes some concepts is a necessary nostalgic and full of anxiety work Always with the left side of the brain ldquopoppingrdquo of new ideas and how we can really start brushing bits for the sake of technology for technology and not

1 ldquoAutomaccedilatildeo Comercial com VBNet e C Emissor de Cupom Fiscalrdquo Claudenir Campos Andrade ndash Satildeo Paulo Editora Eacuterica 2001 ndash ISBN 85-7194-778-3 ndash wwweditoraericacombr

2ensp AenspshortenspandenspaccurateenspNarrationenspofensptheensptrajectoryenspinenspbothenspcompaniesenspwasenspfeaturedenspinenspCRNenspmagazineenspCRNensphttpissuucomcrn_brasildocscrn_305 pagesensp56enspandensp57ensp(shortensplinkensphttpsdrvms15untN3)

Change in sCenery after 15 years Where We are affeCted

VOL1 Chap1

9

www

with so much emphasis on obligation

The previous statement may appear disruptive or perhaps retrograde to for some depending on the viewpoint But in none of the points of view do we support the fiscal leniency or that with the entry of NFC-e fiscal controls are not necessary I think the opposite With the entrance of the NFC-e information on credit card purchases will continue to be reported to the tax authorities that may cross sales data But with a competitive advantage the sale can be online For each sale on a Credit Card the NFC-e issued in the cloud over the Internet is informed online this procedure alone already brings an important fiscal control for the economy for compliance with established fiscal rules This allows the business automation system to not worry about this fact but rather with the technology applied reinvented in business automation Here we talk about INNOVATION where we really are beneficially affected by NFC-e

I had the privilege of attending an MBA in Innovative Project Management where one of the modules lasted 19 days in China3 (Shanghai or Xangai) at the Jiao Tong University and other 12 days at Babson University in Boston I do not need to mention that the ldquonorthrdquo of this MBA was always innovation I learned that to innovate techniques exist which crossed with its framework of knowledge stimulated by day to day life and contacts make the

3ensp PhotosenspfromenspthisensppassageenspthroughenspChinaenspcanenspbeenspseenensphereensphttp1drvms1fA8kKR http1drvms1fA8mT6

10

www

innovation process easier4 However contrary to what I thought and in favor of what I learned then I heard the phrase that best defines what is innovation innovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an invention

This sentence is all working need to hear in Commercial Automation Af-ter all if we look back in 2007 to now how many inventions that turned into products and became innovation Ta-blets NFC the era of Mobile Payment Ultrabooks NUCrsquos (Next Computers Units) the mass use and use of QRCO-DE the advancement on law others just myth - As for example the myth that you cannot use a printer other than Fiscal Serial RS232 port - Myth derived from the time of matrix printer Or the use of tablet and mobility in commercial automation which allows the current printer and the printer 09009 also Simply for the total liberation that an adjustment in the PAF rules In fact we were the first and only manufacturer to todayrsquos date in April2014 to have native support in Android tablet and mobile and Windows 8 tablet and mobile for use in the current fiscal printer and 0909

4ensp Hereenspaenspveryenspinterestingenspinfographicenspthatenspexplainsensphowenspthisenspframeworkenspofenspknowledgeenspsupportsensptheenspinnovationenspprocessensphttp1drvmsNkYJBD

ldquoinnovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an inventionrdquo

11

www

printer This is an undisputed fact Enter wwwyoutubecomda-rumadeveloper and see the courses on how to use Android with Non-Fiscal and Fiscal Printer cable WiFi or Bluetooth all using native Android classes for operation or native Windows 8 classes

Today the model of technological innovation is locked by a template associated to tax obligations required to sell a commercial automation system With this so much of the work within the software houses to fulfill tax obligations Itrsquos as if the developer and his Software company were a software accounting House with tax purposes when in fact it continues with the obligation to comply with tax rules required by the government but without it (the developer and his company) removing the spark of innovation This is not possible today An example A fully Cloud Computing POS so that the end customer has a slimmer hardware dedicated no maintenance on the end This innovation conflicts with the requirement of your application issuing off-line invoice ie ldquoout-of-Browserrdquo

I have on my resume 79 PAF lectures in four years and more than 50005 developers present In conjunction with the Technical Supervisor Deynison and Analysis Coordinator in PAF-ECF Alexandre Sibalszky both from POLIMIG did a double run around the country to the DNAutomation forums besides

5ensp AenspLogenspofenspallensplecturesenspwithenspphotosenspcanenspbeenspfoundensphereensp http1drvmsNjuj2Bensp andenspspecificenspactionsenspaboutensptheenspPAFensphereensp httpenspwwwdarumacombrddcmktddcmkt_017_13html

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

4

www

and increased retailer sales

The Information Technology (IT) presents itself as a strategic tool to achieve this goal and offers many opportunities to provide a better shopping experience that manages the enchantment and provide a more personalized service Access to retail through multiple channels (examples physical store e-commerce social commerce) expands the possibilities to reach the consumer and gives you the autonomy to decide which channel you want to interact Mobility provides convenience and availability to research compare decide and buy in an easy and intuitive way The tools of CRM (Customer Relationship Management) supported by facial recognition and motion in the store enable customers to identify profile and meet their consumption habits aiming to strengthen the relationship and increase brand loyalty The communication power of social media in the era of information sharing both positive and negative start to gradually increase its influence in the buying decision of consumers The RFID (Radio-Frequency IDentification) technology streamlines processes such as inventory control sales at the POS product traceability and allows greater interactivity in the store These are some of the innovations that are being used in retail seeking not only to meet the needs and desires of its customers but above all they want to surprise

Another project that is breaking paradigms and providing a reinvention of the service model in the segment is the NFC-e

5

www

(Electronic Invoice of sale to the end consumer) which consists of the electronic tax documents issue of the final consumer and direct submission to the Secretariat of State Treasury (SEFAZ) Among the main benefits we have greater flexibility in opening stores and POS (points of sale) but his most significant positive impact is the possibility of using mobility solutions in the store environment further expanding the opportunities to improve the buying experience consumer In a joint venture with Daruma we learn share and evolve knowledge together participated in the pilot an impressive network of building material in Mato Grosso (MT) and issued the first NFC-and the Midwest of the country

I consider this an innovative project in that it gives greater autonomy and flexibility to the retailer to define a new shape and improve service to their customers without the mandatory execution of some legal process for example printing the tax receipt by an ECF equipment

In light of these changes the traditional retail previously formed only by physical stores and defining the rules in the market is having to reinvent itself to maintain and evolve to give more focus and attention to his client who is now eager for news With the support of IT it is necessary to cause entertainment across customer contact having a model of differentiated services that allow the enchanted and desire to relate constantly branded consumer and always be available to provide convenience and shopping experience striking Innovate in retail is a cycle that

6

www

must be renewed frequently as consumer needs change and fast

I would like to wish you a great read because I am sure that you will add knowledge in the segment which is increasingly dynamic and challenging for all of us Finally I thank Claudenir longtime partner for this unique opportunity to develop the preface to his e-book which I accepted and wrote with great satisfaction

Fernando M Machima

By Fernando M Machima Retail Innovation Manager - TOTVS

7

www

VOL I

CommerCial automation with windows embedded and nFC-e eleCtroniCs Consumer invoiCe

Contents oF volumes X Chapters

vol1 Cap1 Change in sCenery aFter 15 years where we are aFFeCted mdash 8

vol1 Cap2 strategy due to the Changes and the unCertain sCenario mdash 2 1

vol1 Cap3 brushing bits think arChiteCture plan beFore all mdash 3 3

vol1 Cap4 what does all this have to do with windows embedded stay tuned mdash 6 9

NFC-E UNLOCKED

8

www

Itrsquos amazing the mixture of feelings back to writing my second book in the ldquoPaper e-Bookrdquo format after 13 years of writing the first book1 This raises mixed feelings in this new scenario of changes in Sales Automation Break away from a paradigm of 17 years of work is not easy there were 7 early years of my career with commercial automation leading the development and integration with developers restructuring strategy of partnering with developers and now yet are 10 years in Urmet Daruma2 also in charge of RampD and integration with market and developers Itrsquos what I love doing and am passionate about with the result seen in the eyes of market positioning and growth of both companies Itrsquos a story sometimes inglorious struggles and other struggles worthwhilehellip but all the stories and struggles ECF - Issuer Tax Coupon - always present with stands today Then write about the NFC and that radically changes some concepts is a necessary nostalgic and full of anxiety work Always with the left side of the brain ldquopoppingrdquo of new ideas and how we can really start brushing bits for the sake of technology for technology and not

1 ldquoAutomaccedilatildeo Comercial com VBNet e C Emissor de Cupom Fiscalrdquo Claudenir Campos Andrade ndash Satildeo Paulo Editora Eacuterica 2001 ndash ISBN 85-7194-778-3 ndash wwweditoraericacombr

2ensp AenspshortenspandenspaccurateenspNarrationenspofensptheensptrajectoryenspinenspbothenspcompaniesenspwasenspfeaturedenspinenspCRNenspmagazineenspCRNensphttpissuucomcrn_brasildocscrn_305 pagesensp56enspandensp57ensp(shortensplinkensphttpsdrvms15untN3)

Change in sCenery after 15 years Where We are affeCted

VOL1 Chap1

9

www

with so much emphasis on obligation

The previous statement may appear disruptive or perhaps retrograde to for some depending on the viewpoint But in none of the points of view do we support the fiscal leniency or that with the entry of NFC-e fiscal controls are not necessary I think the opposite With the entrance of the NFC-e information on credit card purchases will continue to be reported to the tax authorities that may cross sales data But with a competitive advantage the sale can be online For each sale on a Credit Card the NFC-e issued in the cloud over the Internet is informed online this procedure alone already brings an important fiscal control for the economy for compliance with established fiscal rules This allows the business automation system to not worry about this fact but rather with the technology applied reinvented in business automation Here we talk about INNOVATION where we really are beneficially affected by NFC-e

I had the privilege of attending an MBA in Innovative Project Management where one of the modules lasted 19 days in China3 (Shanghai or Xangai) at the Jiao Tong University and other 12 days at Babson University in Boston I do not need to mention that the ldquonorthrdquo of this MBA was always innovation I learned that to innovate techniques exist which crossed with its framework of knowledge stimulated by day to day life and contacts make the

3ensp PhotosenspfromenspthisensppassageenspthroughenspChinaenspcanenspbeenspseenensphereensphttp1drvms1fA8kKR http1drvms1fA8mT6

10

www

innovation process easier4 However contrary to what I thought and in favor of what I learned then I heard the phrase that best defines what is innovation innovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an invention

This sentence is all working need to hear in Commercial Automation Af-ter all if we look back in 2007 to now how many inventions that turned into products and became innovation Ta-blets NFC the era of Mobile Payment Ultrabooks NUCrsquos (Next Computers Units) the mass use and use of QRCO-DE the advancement on law others just myth - As for example the myth that you cannot use a printer other than Fiscal Serial RS232 port - Myth derived from the time of matrix printer Or the use of tablet and mobility in commercial automation which allows the current printer and the printer 09009 also Simply for the total liberation that an adjustment in the PAF rules In fact we were the first and only manufacturer to todayrsquos date in April2014 to have native support in Android tablet and mobile and Windows 8 tablet and mobile for use in the current fiscal printer and 0909

4ensp Hereenspaenspveryenspinterestingenspinfographicenspthatenspexplainsensphowenspthisenspframeworkenspofenspknowledgeenspsupportsensptheenspinnovationenspprocessensphttp1drvmsNkYJBD

ldquoinnovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an inventionrdquo

11

www

printer This is an undisputed fact Enter wwwyoutubecomda-rumadeveloper and see the courses on how to use Android with Non-Fiscal and Fiscal Printer cable WiFi or Bluetooth all using native Android classes for operation or native Windows 8 classes

Today the model of technological innovation is locked by a template associated to tax obligations required to sell a commercial automation system With this so much of the work within the software houses to fulfill tax obligations Itrsquos as if the developer and his Software company were a software accounting House with tax purposes when in fact it continues with the obligation to comply with tax rules required by the government but without it (the developer and his company) removing the spark of innovation This is not possible today An example A fully Cloud Computing POS so that the end customer has a slimmer hardware dedicated no maintenance on the end This innovation conflicts with the requirement of your application issuing off-line invoice ie ldquoout-of-Browserrdquo

I have on my resume 79 PAF lectures in four years and more than 50005 developers present In conjunction with the Technical Supervisor Deynison and Analysis Coordinator in PAF-ECF Alexandre Sibalszky both from POLIMIG did a double run around the country to the DNAutomation forums besides

5ensp AenspLogenspofenspallensplecturesenspwithenspphotosenspcanenspbeenspfoundensphereensp http1drvmsNjuj2Bensp andenspspecificenspactionsenspaboutensptheenspPAFensphereensp httpenspwwwdarumacombrddcmktddcmkt_017_13html

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

5

www

(Electronic Invoice of sale to the end consumer) which consists of the electronic tax documents issue of the final consumer and direct submission to the Secretariat of State Treasury (SEFAZ) Among the main benefits we have greater flexibility in opening stores and POS (points of sale) but his most significant positive impact is the possibility of using mobility solutions in the store environment further expanding the opportunities to improve the buying experience consumer In a joint venture with Daruma we learn share and evolve knowledge together participated in the pilot an impressive network of building material in Mato Grosso (MT) and issued the first NFC-and the Midwest of the country

I consider this an innovative project in that it gives greater autonomy and flexibility to the retailer to define a new shape and improve service to their customers without the mandatory execution of some legal process for example printing the tax receipt by an ECF equipment

In light of these changes the traditional retail previously formed only by physical stores and defining the rules in the market is having to reinvent itself to maintain and evolve to give more focus and attention to his client who is now eager for news With the support of IT it is necessary to cause entertainment across customer contact having a model of differentiated services that allow the enchanted and desire to relate constantly branded consumer and always be available to provide convenience and shopping experience striking Innovate in retail is a cycle that

6

www

must be renewed frequently as consumer needs change and fast

I would like to wish you a great read because I am sure that you will add knowledge in the segment which is increasingly dynamic and challenging for all of us Finally I thank Claudenir longtime partner for this unique opportunity to develop the preface to his e-book which I accepted and wrote with great satisfaction

Fernando M Machima

By Fernando M Machima Retail Innovation Manager - TOTVS

7

www

VOL I

CommerCial automation with windows embedded and nFC-e eleCtroniCs Consumer invoiCe

Contents oF volumes X Chapters

vol1 Cap1 Change in sCenery aFter 15 years where we are aFFeCted mdash 8

vol1 Cap2 strategy due to the Changes and the unCertain sCenario mdash 2 1

vol1 Cap3 brushing bits think arChiteCture plan beFore all mdash 3 3

vol1 Cap4 what does all this have to do with windows embedded stay tuned mdash 6 9

NFC-E UNLOCKED

8

www

Itrsquos amazing the mixture of feelings back to writing my second book in the ldquoPaper e-Bookrdquo format after 13 years of writing the first book1 This raises mixed feelings in this new scenario of changes in Sales Automation Break away from a paradigm of 17 years of work is not easy there were 7 early years of my career with commercial automation leading the development and integration with developers restructuring strategy of partnering with developers and now yet are 10 years in Urmet Daruma2 also in charge of RampD and integration with market and developers Itrsquos what I love doing and am passionate about with the result seen in the eyes of market positioning and growth of both companies Itrsquos a story sometimes inglorious struggles and other struggles worthwhilehellip but all the stories and struggles ECF - Issuer Tax Coupon - always present with stands today Then write about the NFC and that radically changes some concepts is a necessary nostalgic and full of anxiety work Always with the left side of the brain ldquopoppingrdquo of new ideas and how we can really start brushing bits for the sake of technology for technology and not

1 ldquoAutomaccedilatildeo Comercial com VBNet e C Emissor de Cupom Fiscalrdquo Claudenir Campos Andrade ndash Satildeo Paulo Editora Eacuterica 2001 ndash ISBN 85-7194-778-3 ndash wwweditoraericacombr

2ensp AenspshortenspandenspaccurateenspNarrationenspofensptheensptrajectoryenspinenspbothenspcompaniesenspwasenspfeaturedenspinenspCRNenspmagazineenspCRNensphttpissuucomcrn_brasildocscrn_305 pagesensp56enspandensp57ensp(shortensplinkensphttpsdrvms15untN3)

Change in sCenery after 15 years Where We are affeCted

VOL1 Chap1

9

www

with so much emphasis on obligation

The previous statement may appear disruptive or perhaps retrograde to for some depending on the viewpoint But in none of the points of view do we support the fiscal leniency or that with the entry of NFC-e fiscal controls are not necessary I think the opposite With the entrance of the NFC-e information on credit card purchases will continue to be reported to the tax authorities that may cross sales data But with a competitive advantage the sale can be online For each sale on a Credit Card the NFC-e issued in the cloud over the Internet is informed online this procedure alone already brings an important fiscal control for the economy for compliance with established fiscal rules This allows the business automation system to not worry about this fact but rather with the technology applied reinvented in business automation Here we talk about INNOVATION where we really are beneficially affected by NFC-e

I had the privilege of attending an MBA in Innovative Project Management where one of the modules lasted 19 days in China3 (Shanghai or Xangai) at the Jiao Tong University and other 12 days at Babson University in Boston I do not need to mention that the ldquonorthrdquo of this MBA was always innovation I learned that to innovate techniques exist which crossed with its framework of knowledge stimulated by day to day life and contacts make the

3ensp PhotosenspfromenspthisensppassageenspthroughenspChinaenspcanenspbeenspseenensphereensphttp1drvms1fA8kKR http1drvms1fA8mT6

10

www

innovation process easier4 However contrary to what I thought and in favor of what I learned then I heard the phrase that best defines what is innovation innovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an invention

This sentence is all working need to hear in Commercial Automation Af-ter all if we look back in 2007 to now how many inventions that turned into products and became innovation Ta-blets NFC the era of Mobile Payment Ultrabooks NUCrsquos (Next Computers Units) the mass use and use of QRCO-DE the advancement on law others just myth - As for example the myth that you cannot use a printer other than Fiscal Serial RS232 port - Myth derived from the time of matrix printer Or the use of tablet and mobility in commercial automation which allows the current printer and the printer 09009 also Simply for the total liberation that an adjustment in the PAF rules In fact we were the first and only manufacturer to todayrsquos date in April2014 to have native support in Android tablet and mobile and Windows 8 tablet and mobile for use in the current fiscal printer and 0909

4ensp Hereenspaenspveryenspinterestingenspinfographicenspthatenspexplainsensphowenspthisenspframeworkenspofenspknowledgeenspsupportsensptheenspinnovationenspprocessensphttp1drvmsNkYJBD

ldquoinnovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an inventionrdquo

11

www

printer This is an undisputed fact Enter wwwyoutubecomda-rumadeveloper and see the courses on how to use Android with Non-Fiscal and Fiscal Printer cable WiFi or Bluetooth all using native Android classes for operation or native Windows 8 classes

Today the model of technological innovation is locked by a template associated to tax obligations required to sell a commercial automation system With this so much of the work within the software houses to fulfill tax obligations Itrsquos as if the developer and his Software company were a software accounting House with tax purposes when in fact it continues with the obligation to comply with tax rules required by the government but without it (the developer and his company) removing the spark of innovation This is not possible today An example A fully Cloud Computing POS so that the end customer has a slimmer hardware dedicated no maintenance on the end This innovation conflicts with the requirement of your application issuing off-line invoice ie ldquoout-of-Browserrdquo

I have on my resume 79 PAF lectures in four years and more than 50005 developers present In conjunction with the Technical Supervisor Deynison and Analysis Coordinator in PAF-ECF Alexandre Sibalszky both from POLIMIG did a double run around the country to the DNAutomation forums besides

5ensp AenspLogenspofenspallensplecturesenspwithenspphotosenspcanenspbeenspfoundensphereensp http1drvmsNjuj2Bensp andenspspecificenspactionsenspaboutensptheenspPAFensphereensp httpenspwwwdarumacombrddcmktddcmkt_017_13html

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

6

www

must be renewed frequently as consumer needs change and fast

I would like to wish you a great read because I am sure that you will add knowledge in the segment which is increasingly dynamic and challenging for all of us Finally I thank Claudenir longtime partner for this unique opportunity to develop the preface to his e-book which I accepted and wrote with great satisfaction

Fernando M Machima

By Fernando M Machima Retail Innovation Manager - TOTVS

7

www

VOL I

CommerCial automation with windows embedded and nFC-e eleCtroniCs Consumer invoiCe

Contents oF volumes X Chapters

vol1 Cap1 Change in sCenery aFter 15 years where we are aFFeCted mdash 8

vol1 Cap2 strategy due to the Changes and the unCertain sCenario mdash 2 1

vol1 Cap3 brushing bits think arChiteCture plan beFore all mdash 3 3

vol1 Cap4 what does all this have to do with windows embedded stay tuned mdash 6 9

NFC-E UNLOCKED

8

www

Itrsquos amazing the mixture of feelings back to writing my second book in the ldquoPaper e-Bookrdquo format after 13 years of writing the first book1 This raises mixed feelings in this new scenario of changes in Sales Automation Break away from a paradigm of 17 years of work is not easy there were 7 early years of my career with commercial automation leading the development and integration with developers restructuring strategy of partnering with developers and now yet are 10 years in Urmet Daruma2 also in charge of RampD and integration with market and developers Itrsquos what I love doing and am passionate about with the result seen in the eyes of market positioning and growth of both companies Itrsquos a story sometimes inglorious struggles and other struggles worthwhilehellip but all the stories and struggles ECF - Issuer Tax Coupon - always present with stands today Then write about the NFC and that radically changes some concepts is a necessary nostalgic and full of anxiety work Always with the left side of the brain ldquopoppingrdquo of new ideas and how we can really start brushing bits for the sake of technology for technology and not

1 ldquoAutomaccedilatildeo Comercial com VBNet e C Emissor de Cupom Fiscalrdquo Claudenir Campos Andrade ndash Satildeo Paulo Editora Eacuterica 2001 ndash ISBN 85-7194-778-3 ndash wwweditoraericacombr

2ensp AenspshortenspandenspaccurateenspNarrationenspofensptheensptrajectoryenspinenspbothenspcompaniesenspwasenspfeaturedenspinenspCRNenspmagazineenspCRNensphttpissuucomcrn_brasildocscrn_305 pagesensp56enspandensp57ensp(shortensplinkensphttpsdrvms15untN3)

Change in sCenery after 15 years Where We are affeCted

VOL1 Chap1

9

www

with so much emphasis on obligation

The previous statement may appear disruptive or perhaps retrograde to for some depending on the viewpoint But in none of the points of view do we support the fiscal leniency or that with the entry of NFC-e fiscal controls are not necessary I think the opposite With the entrance of the NFC-e information on credit card purchases will continue to be reported to the tax authorities that may cross sales data But with a competitive advantage the sale can be online For each sale on a Credit Card the NFC-e issued in the cloud over the Internet is informed online this procedure alone already brings an important fiscal control for the economy for compliance with established fiscal rules This allows the business automation system to not worry about this fact but rather with the technology applied reinvented in business automation Here we talk about INNOVATION where we really are beneficially affected by NFC-e

I had the privilege of attending an MBA in Innovative Project Management where one of the modules lasted 19 days in China3 (Shanghai or Xangai) at the Jiao Tong University and other 12 days at Babson University in Boston I do not need to mention that the ldquonorthrdquo of this MBA was always innovation I learned that to innovate techniques exist which crossed with its framework of knowledge stimulated by day to day life and contacts make the

3ensp PhotosenspfromenspthisensppassageenspthroughenspChinaenspcanenspbeenspseenensphereensphttp1drvms1fA8kKR http1drvms1fA8mT6

10

www

innovation process easier4 However contrary to what I thought and in favor of what I learned then I heard the phrase that best defines what is innovation innovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an invention

This sentence is all working need to hear in Commercial Automation Af-ter all if we look back in 2007 to now how many inventions that turned into products and became innovation Ta-blets NFC the era of Mobile Payment Ultrabooks NUCrsquos (Next Computers Units) the mass use and use of QRCO-DE the advancement on law others just myth - As for example the myth that you cannot use a printer other than Fiscal Serial RS232 port - Myth derived from the time of matrix printer Or the use of tablet and mobility in commercial automation which allows the current printer and the printer 09009 also Simply for the total liberation that an adjustment in the PAF rules In fact we were the first and only manufacturer to todayrsquos date in April2014 to have native support in Android tablet and mobile and Windows 8 tablet and mobile for use in the current fiscal printer and 0909

4ensp Hereenspaenspveryenspinterestingenspinfographicenspthatenspexplainsensphowenspthisenspframeworkenspofenspknowledgeenspsupportsensptheenspinnovationenspprocessensphttp1drvmsNkYJBD

ldquoinnovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an inventionrdquo

11

www

printer This is an undisputed fact Enter wwwyoutubecomda-rumadeveloper and see the courses on how to use Android with Non-Fiscal and Fiscal Printer cable WiFi or Bluetooth all using native Android classes for operation or native Windows 8 classes

Today the model of technological innovation is locked by a template associated to tax obligations required to sell a commercial automation system With this so much of the work within the software houses to fulfill tax obligations Itrsquos as if the developer and his Software company were a software accounting House with tax purposes when in fact it continues with the obligation to comply with tax rules required by the government but without it (the developer and his company) removing the spark of innovation This is not possible today An example A fully Cloud Computing POS so that the end customer has a slimmer hardware dedicated no maintenance on the end This innovation conflicts with the requirement of your application issuing off-line invoice ie ldquoout-of-Browserrdquo

I have on my resume 79 PAF lectures in four years and more than 50005 developers present In conjunction with the Technical Supervisor Deynison and Analysis Coordinator in PAF-ECF Alexandre Sibalszky both from POLIMIG did a double run around the country to the DNAutomation forums besides

5ensp AenspLogenspofenspallensplecturesenspwithenspphotosenspcanenspbeenspfoundensphereensp http1drvmsNjuj2Bensp andenspspecificenspactionsenspaboutensptheenspPAFensphereensp httpenspwwwdarumacombrddcmktddcmkt_017_13html

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

7

www

VOL I

CommerCial automation with windows embedded and nFC-e eleCtroniCs Consumer invoiCe

Contents oF volumes X Chapters

vol1 Cap1 Change in sCenery aFter 15 years where we are aFFeCted mdash 8

vol1 Cap2 strategy due to the Changes and the unCertain sCenario mdash 2 1

vol1 Cap3 brushing bits think arChiteCture plan beFore all mdash 3 3

vol1 Cap4 what does all this have to do with windows embedded stay tuned mdash 6 9

NFC-E UNLOCKED

8

www

Itrsquos amazing the mixture of feelings back to writing my second book in the ldquoPaper e-Bookrdquo format after 13 years of writing the first book1 This raises mixed feelings in this new scenario of changes in Sales Automation Break away from a paradigm of 17 years of work is not easy there were 7 early years of my career with commercial automation leading the development and integration with developers restructuring strategy of partnering with developers and now yet are 10 years in Urmet Daruma2 also in charge of RampD and integration with market and developers Itrsquos what I love doing and am passionate about with the result seen in the eyes of market positioning and growth of both companies Itrsquos a story sometimes inglorious struggles and other struggles worthwhilehellip but all the stories and struggles ECF - Issuer Tax Coupon - always present with stands today Then write about the NFC and that radically changes some concepts is a necessary nostalgic and full of anxiety work Always with the left side of the brain ldquopoppingrdquo of new ideas and how we can really start brushing bits for the sake of technology for technology and not

1 ldquoAutomaccedilatildeo Comercial com VBNet e C Emissor de Cupom Fiscalrdquo Claudenir Campos Andrade ndash Satildeo Paulo Editora Eacuterica 2001 ndash ISBN 85-7194-778-3 ndash wwweditoraericacombr

2ensp AenspshortenspandenspaccurateenspNarrationenspofensptheensptrajectoryenspinenspbothenspcompaniesenspwasenspfeaturedenspinenspCRNenspmagazineenspCRNensphttpissuucomcrn_brasildocscrn_305 pagesensp56enspandensp57ensp(shortensplinkensphttpsdrvms15untN3)

Change in sCenery after 15 years Where We are affeCted

VOL1 Chap1

9

www

with so much emphasis on obligation

The previous statement may appear disruptive or perhaps retrograde to for some depending on the viewpoint But in none of the points of view do we support the fiscal leniency or that with the entry of NFC-e fiscal controls are not necessary I think the opposite With the entrance of the NFC-e information on credit card purchases will continue to be reported to the tax authorities that may cross sales data But with a competitive advantage the sale can be online For each sale on a Credit Card the NFC-e issued in the cloud over the Internet is informed online this procedure alone already brings an important fiscal control for the economy for compliance with established fiscal rules This allows the business automation system to not worry about this fact but rather with the technology applied reinvented in business automation Here we talk about INNOVATION where we really are beneficially affected by NFC-e

I had the privilege of attending an MBA in Innovative Project Management where one of the modules lasted 19 days in China3 (Shanghai or Xangai) at the Jiao Tong University and other 12 days at Babson University in Boston I do not need to mention that the ldquonorthrdquo of this MBA was always innovation I learned that to innovate techniques exist which crossed with its framework of knowledge stimulated by day to day life and contacts make the

3ensp PhotosenspfromenspthisensppassageenspthroughenspChinaenspcanenspbeenspseenensphereensphttp1drvms1fA8kKR http1drvms1fA8mT6

10

www

innovation process easier4 However contrary to what I thought and in favor of what I learned then I heard the phrase that best defines what is innovation innovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an invention

This sentence is all working need to hear in Commercial Automation Af-ter all if we look back in 2007 to now how many inventions that turned into products and became innovation Ta-blets NFC the era of Mobile Payment Ultrabooks NUCrsquos (Next Computers Units) the mass use and use of QRCO-DE the advancement on law others just myth - As for example the myth that you cannot use a printer other than Fiscal Serial RS232 port - Myth derived from the time of matrix printer Or the use of tablet and mobility in commercial automation which allows the current printer and the printer 09009 also Simply for the total liberation that an adjustment in the PAF rules In fact we were the first and only manufacturer to todayrsquos date in April2014 to have native support in Android tablet and mobile and Windows 8 tablet and mobile for use in the current fiscal printer and 0909

4ensp Hereenspaenspveryenspinterestingenspinfographicenspthatenspexplainsensphowenspthisenspframeworkenspofenspknowledgeenspsupportsensptheenspinnovationenspprocessensphttp1drvmsNkYJBD

ldquoinnovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an inventionrdquo

11

www

printer This is an undisputed fact Enter wwwyoutubecomda-rumadeveloper and see the courses on how to use Android with Non-Fiscal and Fiscal Printer cable WiFi or Bluetooth all using native Android classes for operation or native Windows 8 classes

Today the model of technological innovation is locked by a template associated to tax obligations required to sell a commercial automation system With this so much of the work within the software houses to fulfill tax obligations Itrsquos as if the developer and his Software company were a software accounting House with tax purposes when in fact it continues with the obligation to comply with tax rules required by the government but without it (the developer and his company) removing the spark of innovation This is not possible today An example A fully Cloud Computing POS so that the end customer has a slimmer hardware dedicated no maintenance on the end This innovation conflicts with the requirement of your application issuing off-line invoice ie ldquoout-of-Browserrdquo

I have on my resume 79 PAF lectures in four years and more than 50005 developers present In conjunction with the Technical Supervisor Deynison and Analysis Coordinator in PAF-ECF Alexandre Sibalszky both from POLIMIG did a double run around the country to the DNAutomation forums besides

5ensp AenspLogenspofenspallensplecturesenspwithenspphotosenspcanenspbeenspfoundensphereensp http1drvmsNjuj2Bensp andenspspecificenspactionsenspaboutensptheenspPAFensphereensp httpenspwwwdarumacombrddcmktddcmkt_017_13html

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

8

www

Itrsquos amazing the mixture of feelings back to writing my second book in the ldquoPaper e-Bookrdquo format after 13 years of writing the first book1 This raises mixed feelings in this new scenario of changes in Sales Automation Break away from a paradigm of 17 years of work is not easy there were 7 early years of my career with commercial automation leading the development and integration with developers restructuring strategy of partnering with developers and now yet are 10 years in Urmet Daruma2 also in charge of RampD and integration with market and developers Itrsquos what I love doing and am passionate about with the result seen in the eyes of market positioning and growth of both companies Itrsquos a story sometimes inglorious struggles and other struggles worthwhilehellip but all the stories and struggles ECF - Issuer Tax Coupon - always present with stands today Then write about the NFC and that radically changes some concepts is a necessary nostalgic and full of anxiety work Always with the left side of the brain ldquopoppingrdquo of new ideas and how we can really start brushing bits for the sake of technology for technology and not

1 ldquoAutomaccedilatildeo Comercial com VBNet e C Emissor de Cupom Fiscalrdquo Claudenir Campos Andrade ndash Satildeo Paulo Editora Eacuterica 2001 ndash ISBN 85-7194-778-3 ndash wwweditoraericacombr

2ensp AenspshortenspandenspaccurateenspNarrationenspofensptheensptrajectoryenspinenspbothenspcompaniesenspwasenspfeaturedenspinenspCRNenspmagazineenspCRNensphttpissuucomcrn_brasildocscrn_305 pagesensp56enspandensp57ensp(shortensplinkensphttpsdrvms15untN3)

Change in sCenery after 15 years Where We are affeCted

VOL1 Chap1

9

www

with so much emphasis on obligation

The previous statement may appear disruptive or perhaps retrograde to for some depending on the viewpoint But in none of the points of view do we support the fiscal leniency or that with the entry of NFC-e fiscal controls are not necessary I think the opposite With the entrance of the NFC-e information on credit card purchases will continue to be reported to the tax authorities that may cross sales data But with a competitive advantage the sale can be online For each sale on a Credit Card the NFC-e issued in the cloud over the Internet is informed online this procedure alone already brings an important fiscal control for the economy for compliance with established fiscal rules This allows the business automation system to not worry about this fact but rather with the technology applied reinvented in business automation Here we talk about INNOVATION where we really are beneficially affected by NFC-e

I had the privilege of attending an MBA in Innovative Project Management where one of the modules lasted 19 days in China3 (Shanghai or Xangai) at the Jiao Tong University and other 12 days at Babson University in Boston I do not need to mention that the ldquonorthrdquo of this MBA was always innovation I learned that to innovate techniques exist which crossed with its framework of knowledge stimulated by day to day life and contacts make the

3ensp PhotosenspfromenspthisensppassageenspthroughenspChinaenspcanenspbeenspseenensphereensphttp1drvms1fA8kKR http1drvms1fA8mT6

10

www

innovation process easier4 However contrary to what I thought and in favor of what I learned then I heard the phrase that best defines what is innovation innovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an invention

This sentence is all working need to hear in Commercial Automation Af-ter all if we look back in 2007 to now how many inventions that turned into products and became innovation Ta-blets NFC the era of Mobile Payment Ultrabooks NUCrsquos (Next Computers Units) the mass use and use of QRCO-DE the advancement on law others just myth - As for example the myth that you cannot use a printer other than Fiscal Serial RS232 port - Myth derived from the time of matrix printer Or the use of tablet and mobility in commercial automation which allows the current printer and the printer 09009 also Simply for the total liberation that an adjustment in the PAF rules In fact we were the first and only manufacturer to todayrsquos date in April2014 to have native support in Android tablet and mobile and Windows 8 tablet and mobile for use in the current fiscal printer and 0909

4ensp Hereenspaenspveryenspinterestingenspinfographicenspthatenspexplainsensphowenspthisenspframeworkenspofenspknowledgeenspsupportsensptheenspinnovationenspprocessensphttp1drvmsNkYJBD

ldquoinnovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an inventionrdquo

11

www

printer This is an undisputed fact Enter wwwyoutubecomda-rumadeveloper and see the courses on how to use Android with Non-Fiscal and Fiscal Printer cable WiFi or Bluetooth all using native Android classes for operation or native Windows 8 classes

Today the model of technological innovation is locked by a template associated to tax obligations required to sell a commercial automation system With this so much of the work within the software houses to fulfill tax obligations Itrsquos as if the developer and his Software company were a software accounting House with tax purposes when in fact it continues with the obligation to comply with tax rules required by the government but without it (the developer and his company) removing the spark of innovation This is not possible today An example A fully Cloud Computing POS so that the end customer has a slimmer hardware dedicated no maintenance on the end This innovation conflicts with the requirement of your application issuing off-line invoice ie ldquoout-of-Browserrdquo

I have on my resume 79 PAF lectures in four years and more than 50005 developers present In conjunction with the Technical Supervisor Deynison and Analysis Coordinator in PAF-ECF Alexandre Sibalszky both from POLIMIG did a double run around the country to the DNAutomation forums besides

5ensp AenspLogenspofenspallensplecturesenspwithenspphotosenspcanenspbeenspfoundensphereensp http1drvmsNjuj2Bensp andenspspecificenspactionsenspaboutensptheenspPAFensphereensp httpenspwwwdarumacombrddcmktddcmkt_017_13html

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

9

www

with so much emphasis on obligation

The previous statement may appear disruptive or perhaps retrograde to for some depending on the viewpoint But in none of the points of view do we support the fiscal leniency or that with the entry of NFC-e fiscal controls are not necessary I think the opposite With the entrance of the NFC-e information on credit card purchases will continue to be reported to the tax authorities that may cross sales data But with a competitive advantage the sale can be online For each sale on a Credit Card the NFC-e issued in the cloud over the Internet is informed online this procedure alone already brings an important fiscal control for the economy for compliance with established fiscal rules This allows the business automation system to not worry about this fact but rather with the technology applied reinvented in business automation Here we talk about INNOVATION where we really are beneficially affected by NFC-e

I had the privilege of attending an MBA in Innovative Project Management where one of the modules lasted 19 days in China3 (Shanghai or Xangai) at the Jiao Tong University and other 12 days at Babson University in Boston I do not need to mention that the ldquonorthrdquo of this MBA was always innovation I learned that to innovate techniques exist which crossed with its framework of knowledge stimulated by day to day life and contacts make the

3ensp PhotosenspfromenspthisensppassageenspthroughenspChinaenspcanenspbeenspseenensphereensphttp1drvms1fA8kKR http1drvms1fA8mT6

10

www

innovation process easier4 However contrary to what I thought and in favor of what I learned then I heard the phrase that best defines what is innovation innovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an invention

This sentence is all working need to hear in Commercial Automation Af-ter all if we look back in 2007 to now how many inventions that turned into products and became innovation Ta-blets NFC the era of Mobile Payment Ultrabooks NUCrsquos (Next Computers Units) the mass use and use of QRCO-DE the advancement on law others just myth - As for example the myth that you cannot use a printer other than Fiscal Serial RS232 port - Myth derived from the time of matrix printer Or the use of tablet and mobility in commercial automation which allows the current printer and the printer 09009 also Simply for the total liberation that an adjustment in the PAF rules In fact we were the first and only manufacturer to todayrsquos date in April2014 to have native support in Android tablet and mobile and Windows 8 tablet and mobile for use in the current fiscal printer and 0909

4ensp Hereenspaenspveryenspinterestingenspinfographicenspthatenspexplainsensphowenspthisenspframeworkenspofenspknowledgeenspsupportsensptheenspinnovationenspprocessensphttp1drvmsNkYJBD

ldquoinnovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an inventionrdquo

11

www

printer This is an undisputed fact Enter wwwyoutubecomda-rumadeveloper and see the courses on how to use Android with Non-Fiscal and Fiscal Printer cable WiFi or Bluetooth all using native Android classes for operation or native Windows 8 classes

Today the model of technological innovation is locked by a template associated to tax obligations required to sell a commercial automation system With this so much of the work within the software houses to fulfill tax obligations Itrsquos as if the developer and his Software company were a software accounting House with tax purposes when in fact it continues with the obligation to comply with tax rules required by the government but without it (the developer and his company) removing the spark of innovation This is not possible today An example A fully Cloud Computing POS so that the end customer has a slimmer hardware dedicated no maintenance on the end This innovation conflicts with the requirement of your application issuing off-line invoice ie ldquoout-of-Browserrdquo

I have on my resume 79 PAF lectures in four years and more than 50005 developers present In conjunction with the Technical Supervisor Deynison and Analysis Coordinator in PAF-ECF Alexandre Sibalszky both from POLIMIG did a double run around the country to the DNAutomation forums besides

5ensp AenspLogenspofenspallensplecturesenspwithenspphotosenspcanenspbeenspfoundensphereensp http1drvmsNjuj2Bensp andenspspecificenspactionsenspaboutensptheenspPAFensphereensp httpenspwwwdarumacombrddcmktddcmkt_017_13html

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

10

www

innovation process easier4 However contrary to what I thought and in favor of what I learned then I heard the phrase that best defines what is innovation innovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an invention

This sentence is all working need to hear in Commercial Automation Af-ter all if we look back in 2007 to now how many inventions that turned into products and became innovation Ta-blets NFC the era of Mobile Payment Ultrabooks NUCrsquos (Next Computers Units) the mass use and use of QRCO-DE the advancement on law others just myth - As for example the myth that you cannot use a printer other than Fiscal Serial RS232 port - Myth derived from the time of matrix printer Or the use of tablet and mobility in commercial automation which allows the current printer and the printer 09009 also Simply for the total liberation that an adjustment in the PAF rules In fact we were the first and only manufacturer to todayrsquos date in April2014 to have native support in Android tablet and mobile and Windows 8 tablet and mobile for use in the current fiscal printer and 0909

4ensp Hereenspaenspveryenspinterestingenspinfographicenspthatenspexplainsensphowenspthisenspframeworkenspofenspknowledgeenspsupportsensptheenspinnovationenspprocessensphttp1drvmsNkYJBD

ldquoinnovation ndash is the invention used in the market It is the invention put into practice and acquired in your market If this happens it is only and solely an inventionrdquo

11

www

printer This is an undisputed fact Enter wwwyoutubecomda-rumadeveloper and see the courses on how to use Android with Non-Fiscal and Fiscal Printer cable WiFi or Bluetooth all using native Android classes for operation or native Windows 8 classes

Today the model of technological innovation is locked by a template associated to tax obligations required to sell a commercial automation system With this so much of the work within the software houses to fulfill tax obligations Itrsquos as if the developer and his Software company were a software accounting House with tax purposes when in fact it continues with the obligation to comply with tax rules required by the government but without it (the developer and his company) removing the spark of innovation This is not possible today An example A fully Cloud Computing POS so that the end customer has a slimmer hardware dedicated no maintenance on the end This innovation conflicts with the requirement of your application issuing off-line invoice ie ldquoout-of-Browserrdquo

I have on my resume 79 PAF lectures in four years and more than 50005 developers present In conjunction with the Technical Supervisor Deynison and Analysis Coordinator in PAF-ECF Alexandre Sibalszky both from POLIMIG did a double run around the country to the DNAutomation forums besides

5ensp AenspLogenspofenspallensplecturesenspwithenspphotosenspcanenspbeenspfoundensphereensp http1drvmsNjuj2Bensp andenspspecificenspactionsenspaboutensptheenspPAFensphereensp httpenspwwwdarumacombrddcmktddcmkt_017_13html

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

11

www

printer This is an undisputed fact Enter wwwyoutubecomda-rumadeveloper and see the courses on how to use Android with Non-Fiscal and Fiscal Printer cable WiFi or Bluetooth all using native Android classes for operation or native Windows 8 classes

Today the model of technological innovation is locked by a template associated to tax obligations required to sell a commercial automation system With this so much of the work within the software houses to fulfill tax obligations Itrsquos as if the developer and his Software company were a software accounting House with tax purposes when in fact it continues with the obligation to comply with tax rules required by the government but without it (the developer and his company) removing the spark of innovation This is not possible today An example A fully Cloud Computing POS so that the end customer has a slimmer hardware dedicated no maintenance on the end This innovation conflicts with the requirement of your application issuing off-line invoice ie ldquoout-of-Browserrdquo

I have on my resume 79 PAF lectures in four years and more than 50005 developers present In conjunction with the Technical Supervisor Deynison and Analysis Coordinator in PAF-ECF Alexandre Sibalszky both from POLIMIG did a double run around the country to the DNAutomation forums besides

5ensp AenspLogenspofenspallensplecturesenspwithenspphotosenspcanenspbeenspfoundensphereensp http1drvmsNjuj2Bensp andenspspecificenspactionsenspaboutensptheenspPAFensphereensp httpenspwwwdarumacombrddcmktddcmkt_017_13html

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

12

www

their own events with the Daruma Developer Community I have always supported the need to filter the market to have the good people who really are interested in developing the technology thus using all their intellectual potential to innovate on behalf of his client and not to innovate in methods of evasion market But unfortunately not all of us think so and innovation in evasion became persecuted by the rules placed in the PAF today catching turn the use of technologies like Tablet Internet Cloud Computing MobilePayment NFC while the world is already moving to the obsolescence of these innovations 6

Note that I properly mention the misuse of technology started to be chased by the rules of PAF and not that PAF paralyzes commercial automation Here is the challenge Here the changes start with the NFC-e Innovation with the intersection of online data the quest for efficiency in the use of the data (it is not just now that we talk of BIGDATA) allows the opening of doors to technological innovation without neglecting the need for fiscal monitoring so that there is no misuse of this innovation It is not a cake recipe and who am I to say how it has to be done but at one point we agree NF-C-e brings an online movement opens the use of new technologies and is certainly not the final solution

6ensp Todayensp03042013enspIenspamenspalreadyenspawareenspthatenspsomeensprulesenspofenspPAFenspareenspadap-tingensptoenspallowensptheenspuseenspofensptheseensptechnologiesenspatensptheensppointenspofenspsaleenspwhichenspisenspgreatenspIenspcheerenspandenspsupportenspthatenspincreasinglyensptheyenspadaptensptoensptheensptechnologi-calenspevolutionenspthatenspweenspareenspexperiencingenspTheenspstoryenspisenspgreatenspandensptheenspfutureenspofenspPAFensp-enspwhichenspIenspsupportensp-enspisensppromisingensptoenspcontinueensponenspthisensppathensptoenspadaptensptoensptechnologicalenspadvancementensptheenspcurrentenspECFenspasenspisenspalreadyenspallowed

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

13

www

or the solution of all problems will bring mature and better fiscal control to state governments without sacrificing technological innovation opening up a wide and broad road to massive and innovative use of technology in favor of automation

Where Are We Affected

But where are we ldquoBit Brushersrdquo affected by NFC-e In everything Returning to the list of innovations from 2007 until now such as MobilePayment Tablets Phablets SmartPhones Internet WebMulti Languages Platforms APPs for SmartPhones it all has its place in NFC-e architecture With this we Bit Brushers need to keep developing lsquocompliancersquo with the current tax obligations without losing the technological innovation that can be applied for the NFC-e benefiting the sales transaction at the POS what many call the ldquoUser Experiencerdquo

The POS system and its automation formerly concomitant (and I remember that in 1999 it was a ldquobad wordrdquo speak of no concomitant POS lol) in the NFC-e can be non-concurrent performing all the activities on the screen and only then after the ldquoacceptedrdquo or closing the sale being sent to the proper issuance of an official document of sale in this case-and NFC Consider this fact Its non-concurrent system Only this move by itself in its essence facilitates transactions eg canceling unwanted item upon purchase What to do Simply remove it from the list box and take it off the amount to be paid - all clear before sending

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

14

www

for printing and issuing the Simple NFC-e Think for example on a pre-sale (pre-sale was not invented or created with PAF it was regulated with the PAF but the process of pre-sales already existed for centuries) that has 14 pre-selected products within a building material store but now the customer decided not to buy the ldquobag of nailsrdquo and decided that at the cash register whether it was because it was expensive to buy either because he regretting picking it up What to do In simple NFC-e model he removes it from the list of items in the pre-sale it removes it from the ListBox recalculates the price on the screen and informs the new value to the customer the customer pays and it performs the issuance and printing of NFC-e in the cloud or offline if there is problem connecting to the server The lack of connection to the server does not preclude issuance traced I clarify and thus eliminate a newly raised myth about the NFC-e that is only possible to issue NFC-e safely if online For off-line issuance There are the Tokens token ID and HASH which are put in the QRCODE Once this QRCODE is read it is known by the existence of this invoice that is off-line and that should rise if it does not rise and fiscally traced

This movement is already beginning to happen innovative

ldquothe wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your planrdquo

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

15

www

solutions in ldquonot pafrdquo states are already being sold such as NonusTouchOne a unique and simple POS concept on the Tablet in which the operator is uses a Tablet as a computer and point of sale but with operations and features of a cash register or micro-terminal Alias Here another market that the requirements eventually restricted its use ndash Micro terminals With the NFC-e this market can return to operate which is fantastic sometimes all you need is just a client and only one Microterminal at the cash register But remember INNOVATION How to use this movement for technological innovation and as we always wanted to put our developers to work for the customerrsquos needs It all starts with the correct choice of architecture free of moorings free from conditional use of specific hardware this item is important because the wrong choice of NFC-e architecture and provider may compromise your innovation First study the architectures offered and see if they are aligned with your innovation plan and check if it will turn it into hostage of a dedicated operation preventing its growth and innovation and other platforms

VOL1 Chap1 Conclusions

The Tax Receipt Issuer is not worse or better than the NFC-e The NFC-e is no better or worse than the Tax Receipt Issuer You cannot compare there are different models for different purposes With an evolution of 15 years with several innovations another with well matured model of NF-E with several innovations and items yet to be matured ndash a perfectly acceptable fact

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

16

www

I remember in a meeting nearly 15 years ago hearing one of the officers in the room comment ldquoBut the printer does not keep a picture of the tax receipt It only saves totalsrdquo and we all (careless and reckless) laughed amicably and said ldquoImagine For it would have to have a HD in the printerrdquo But all that was closer than we thought all printer manufacturers in his time innovated the concept of the current matrix printer as a big calculator advancing pro concept of fiscal printer with electronic log and already known and applied in other countries as ldquoElectronic Journalrdquo Daruma was the company that innovated this scenario and launched the printers that consolidated the automation market the FS6007 and other manufacturers follow this rhythm

Where do I want to get and conclude with this historical fact We cannot turn our backs on new models I learned this over the years maturity and good courses in the area We cannot say today ldquoNFC-e will not catch onrdquo or ldquoNFC-e makes mass evasion viablerdquo As before it was impossible to make a printer that stores everything that was printed and this happened several items today

7ensp TheenspFS600enspinensp2004enspwasensptheenspfirstenspthermalenspfiscalenspprinterenspwithenspeasyLoadenspsystemenspandenspalsoensptheenspfirstensptoensphaveenspeasyloadenspwithenspaenspguillotineenspAtenspthatensptimeensptheyenspallenspstillensphadenspaenspcartenspwithensptensileenspreelenspandenspneededensptoenspinsertensptheenspreelenspinenspthisenspcartenspunlikeenspFS600enspwhichenspyouenspjustensphadensptoenspldquodroprdquoenspinensptheenspreelenspwithoutenspneedingenspaenspguideensporensptensionedenspmechanicsensptoenspchangeensptheensppaperenspItenspwasenspalsoenspaensppioneerenspandenspcreatorenspofensptheenspitemenspsellsenspinenspaensprowenspsavingensppaperenspandensplogoensponensptheenspreceiptenspheaderenspAfterenspthatenspallenspcompetitorsenspstartedensptoensphaveenspthisenspsameenspfeatureenspcomingenspfromensptheenspFS600enspAnenspinnovationenspthatenspdictatedensptheenspstandardenspforensptheenspmarketenspAensptrueenspinnovationenspforenspitsensptimeenspandenspthatenspforcedensptheenspmarketcompetitorsensptoenspfollow

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

17

www

criticized the NFC-e will undoubtedly evolve and the solutions appear where we least expect Within our world of Technology So with the transition from dot matrix printer to the thermal the market has evolved the DOM and FLASH memories have evolved become more secure and embedded systems have also become more efficient and ldquoBOOMrdquo The perfect environment to create a printer that was years ago impossible to think about and we laughed at the possibility

The PAF represents an evolution in our market Companies filtered regulated a market without rules it was great for all of us and now need to evolve adapt and monitor the market and its needs which today have an emphasis on technological innovation Meanwhile does the NFC-e eliminate the FAP certification For states that to date today regulated and permitted the use of NFC-e the answer is YES the PAF is not necessary Is that good No I believe we should uphold a lower PAF more adapted to the technological needs aligned with the mobile and cloud innovations of our year 2014 still defending the need for certification make sure and share responsibility with agencies that competently do their work following the script and help us do an exercise test which unlike so we would not focus Maybe one PAF-NFC-e I insist adapted to the needs of the use of emerging technologies and consolidated from 2007 to now especially cloud computing

And the current fiscal printer Already suffering its upgrade in technology The printer covenant 0909 best known

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

18

www

as a printer connected brings the connection to the cloud within an XML protocol known for NFC-e and NF-e servers Care is to be taken that do not have the same current model of PAF ECF connected as the ECF allows the use of many technologies today use the same PAF without modifications prevent the use of innovations and would remain in thereof About it is not only implement the model 0909 and is solved but the opening for emerging technologies and has consolidated and that can be used across the data arrives to their respective governments without the need to kill innovation to make it happen such as eliminating the need for concurrence of the system when using the printer 0909 More information about the ECF 0909 can be seen in the video number 102 recorded live at Autocom 2012 wwwyoutubecomdarumadeveloper Video 102

In the following chapter with the word ldquoINNOVATIONrdquo well marked in our reading let us understand how to think strategically forward these changes which will help decide without immediacy with view of short and long term Rest assured today with the rapid advancement of our system there is more long-term plan of 3 4 5 years to be faithfully executed the scenery changes constantly and today the long term to be translated for 12 months Above this strategy is that it can be adjusted executed or aborted in the long term execution

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

19

www

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

20

www

In addition to the changes I have outlined in the previous chapter it is worthwhile to think about the changes ahead in the next five (5) years with respect to the tax revenue model and necessary for the application of business automation adaptations Strategy and planning are in my opinion two words and actions that should be in the day to day of any CEO Director or Manager In the entrepreneurship module that I took at Babson - Boston I learned about the lack of levels in the company to undertake not undertake There are levels in the company you can do more or less but undertaking is always possible Every entrepreneur plans assembles a strategy an approach and then executes It cannot be different in the current scenario and NFC fiscal printer much less than in the scenario that prepares the front where we co-exist with four (4) different models of point of sale

The Scenario

Uncertainties are many and he who in this year of 2014 raise and pinpoint exactly what will happen is predicting what everyone already knows or is literally guessing and maybe can get it right There is no strong declared signaling by the manufacturers associations or software for example on the SAT Fiscal the NFC-e in Satildeo Paulo and a possible unification of storage and

strategy due to the Changes and the unCertain sCenario

VOL1 Cap2

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

21

www

regulation in the POS system In times of uncertainty and lack of consistent information the best thing to do is study the scenario and plan plan an approach strategy that brings the best possible gain in the short and long term Without this it is impossible to survive times of uncertainty however nebulous they may seem however much light at the end of the tunnel seems the train in the opposite direction

What we can affirm is the plan - and some already running ndash for four (4) models of tax revenues affecting the software at the point of sale and all commercial market automation and we will co-exist with them the four (4) models in the next 3-5 years are

bull Current Printer (Agreement 85) - Itrsquos the printer that currently all use the point of sale and all developers ported their application to him Mainly through DarumaFrameWorkDLL and DarumaFrameWorkSO that comes making records in downloads and record sales of subsidized developers to printers8

bull Printer Agreement 0909 (or connected printer) ndash printer that has the SCU9 ndash Unique command set- Armored and Connected signing all you stand coupons and relieving various

8ensp ToenspaccessensptheenspnumberenspofenspdownloadsenspofenspDarumaFrameworkenspMultiensp-enspplat-formenspDarumaenspVisitensp httpsbitlycom10oartG+ there were 23000 down-loadsenspinenspjustensp3enspmonths

9ensp TheenspfirstenspuniqueenspcommandsenspsetenspndashenspwasenspspecifiedenspbyenspClaudenirenspAndradeenspsoonensppassingensptheenspafracensptoenspstudiesenspandenspdueenspalterationsenspSeeensptheenspPOSTensphereenspisenspAtivoaccessenspforensptheenspdevelopersenspcommunityensphttpwwwativoaccesscombrmostranoticiaphpnoticia=36ensp inenspJuneensp2008

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

22

www

items concerning the covenant previous printer as Physical Seal becomes logical no Bitmap in the reduction Z signature of each coupon issued whether online or offline making an independent business automation server for the fiscal operation So far the safest storage model however aligned with the PAF in its current model does not allow the use of all technological innovations to the application of business automation This printer is the best solution in the current scenario and represents the evolution of everything wersquove seen in print and online sales with offline security offered technology It has protocols NF-e NFC-e and the QRCODE printing

bull ST ndash Authenticator and Transmitter System of electronic tax receipts - Eliminates the use of a fiscal printer allows the use of any Mini printer requires the use of a specific hardware that is certified and working between commercial automation system and the server state tax Recorded a 3 part tutorial you can find here about the SAT

Part 1 httpwwwdesenvolvedoresdarumacombrddehtmlsdde032_2013-ambiente-sathtml

Part 2 httpwwwdesenvolvedoresdarumacombrddehtmlsdde033_2013-entendendo-sat-p2html

Part 3 httpwwwdesenvolvedoresdarumacombrddehtmlsdde034_2013-entendendo-sat-p3html

Part 4 httpwwwdesenvolvedoresdarumacombrddehtmlsdde035_2013-testando-sathtml

Or access the site wwwdesenvolvedoresdarumacombr

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

23

www

ldquoComunicados DDCrdquo subtitle ldquoDUALrdquo

bull NFC-e - Consumer Electronic Invoice - What dispenses the Use of Fiscal printer there is no provision in this mode PAF allows the use of any printer in the market there is need to generate or print the QRCODE with the link where (online) or find (when issued off-line) the Electronic Invoice for the final consumer There is the need to access the SEFAZ server for the online issue of the tax receipt which in this case is called the NFC-e extract

Rio Grande do Sul Mato Grosso Sergipe Acre Amazonas already allow the use of NFC and Satildeoo Paulo for example made optional the use of NFC-e starting in April 1 2014 pursuant to Ordinance CAT-37 dated 05032013 extending the SAT to April 1 2014 and at the same time has the optional use of NFC-e the main actor at the point of sale and not just the SAT are allowing a choice States such as Santa Catarina already have a mandatory use calendar of the Connected printer the 0909 printer other states continue moving in the use of covenant 85 fiscal printers Fiscal printer currently used throughout the country

I offer you compatibility do not touch your Application Is it really worth it You pay a price for it

bull 100 COMPATIBILITY WITH YOUR CURRENT

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

24

www

AUTOMATION SYSTEM IS IT REALLY WORTH IT

With all this background several manufacturers are encouraging business automation compatibility ie not stir in your application and you can then pick the four modalities But is that this scenario is strategic and what is to come The answer is clear No Scenario of uncertainty of the prevalence of a tax model (which I think will not happen in a few years) blinds us in the sense of saying YES compatibility is the best way but calmly analyzing entrepreneurial way and putting in strategy innovation technology it is clear that is not the best way

If we are part of a compatibility chart on the business model taking into account the rules of the PAF - and here I do not mean money business but business rule transformed through a programming language its algorithm - no doubt come to the conclusion that there is much more that continue predicting in your application with PAF than without PAF such as the certification application concurrency sales sequence required by the PAF This conclusion leads us clearly the decision that compatibility is not the best way for a business rule and a more efficient POS if you implement NFC-e in your point of sale application

No doubt all ECF 8501 manufacturers will provide some sort of compatibility for their partners That there is no doubt This is critical for a manufacturer of commercial automation with a significant number of dealerrsquos partners and developers

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

25

www

Surely everyone will throw your printer 0909 (fiscal printer connected) with means in driver dll so that the main commands are compatible and commercial automation system works with everything that has been developed so far through their dlls and drivers This is no innovation is an obligation and a matter of survival of the manufacturer in its market along with their partners Here is an opportunity for us to Daruma can grow even more in the developer community through the delivery of integration tools that innovate truth that mind not only compatible but the possibility to innovate reinvent do not scratch and take the new POS with NFC-e the legacy POS with ECF with PAF

But when we look at the current rules and NFC-SAT and with the absence of PAF and rules of ECF we ask Is it also possible to provide the compatibility Ie the big question is Can I continue emitting receipt Opening receipt selling item canceling item receiving payment form making tef (dial up or dedicated) closing the receipt catching serial number grand total Status of the receipt number of COO number of CCF and still without moving anything in my applied and make a NFC-Receipt or SAT YES is the answer but the counter-question is Is it worth it Then the answer changes to most likely NO All manufacturers today also have your system compatibility after all everyone wants to preserve its installed base

For example at Daruma we had the idea and here was an innovation that became clear offer to the market including patent

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

26

www

which is not the creation of a Fiscal Printer Compatible ie she understands the fiscal commands responds to fiscal commands your application but when you request the termination of a tax receipt due with your payment must the printer communicates with DarumaFrameWorkdll or DarumaFrameWorkSO and from there to the data previously collected receipt makes up the online and automatic issue of NFC-e this printer Compatible Not Tax In this model there is no compatibility Download MFD MF mirror or receipt these three commands need to be ldquoreviewedrdquo () in the commercial automation system but all other continues to function all the rules of PAF are answered correctly in that are fiscal controls and their behavior remains the Fiscal Printer Not Compatible Other manufacturers proffer emulation by an ECF Software where commercial automation system interacts with an emulatorsimulator but at the time of requesting the closure of the tax receipt emits a NFC-e It is also another way

But none of these paths allow technological innovation and while not all of them needed to take charge and the legacy of the PAF in its source code which makes the sometimes slow operation at a point of sale This is nothing new nor wonder to read just look at the number of information serial number encryptions of GT etc that need to be harvested and processed before making a receipt and after its conclusion to follow the rules of the PAF

All these models of compatibility between the ECF and the

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

27

www

NFC-e or between the ECF and the SAT bring the legacy of the rules of PAF which somewhat limits the technological innovation that both speak and preach as pressing need for survival against opening our market to the world and the evidence I encontra10 our country Try eg this compatibility model put a fiscal printer (read model compatible) into a new POS or replace the printer POS ldquoArdquo to the POS ldquoBrdquo You cannot unless you let the tax rule to predict the PAF check the serial number its proper encryption stored inaccessible to the user and the query list (also encrypted and inaccessible to the user) from the list of serial numbers allowed

Concomitant sale is another item that will remain to exist in the model compatibility (without touching anything in the automation application) and graft compatibility offered by the manufacturer of automation with respect to NFC-e The Cancellation of Item or Cancellation in its pre-sale will continue to obey the rules of PAF nothing changes The NFC-POS and on the compatibility model takes this legacy with you

10ensp Inensptheenspyearsensp2012enspandensp2013enspreceivedenspintegratedenspandensphomologatedensp17enspcompaniesenspoutenspofensptheenspcountryenspthatensphaveenspopenedenspofficesenspinenspBrazilenspTheenspsof-twareenspmarketenspisenspquiteenspcompetitiveenspwithensptheenspopeningenspandenspuseenspofenspNFC-eenspthe-reforeensptheenspneedensptoenspinnovateenspupdateenspandenspmonitorensptheensptechnologyenspevolutionenspmarketedenspworldwide

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

28

www

Innovate Invent and Recreate

Where we want to reach Am I saying all these rules that PAF quoted in the previous paragraph are not necessary No far from it Note who knows might be unnecessary in the setting of ECF Connected 0909 - since it is connected and accessible to the tax authorities as is the NFC-e Why not Keep and defend the existence of PAF in this model of ECF 0909 and NFC-e (reformulated and adapted PAF course) because it deprives and closes the doors for the misuse of technology for the benefit of evasion Reduced PAF for example the simplified PAF is good for three main market technologies Cloud Tablet and Mobile It prevents malicious use of the revenue collection system However in the NFC-e SAT model and considering the PAF in its current model is meaningless since the deal is online and when tracked off-line then the question to be raised is WORTH APPLYING A MODEL OF COMPATIBILITY IN NFC-E

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

29

www

AND NOT CHANGING ANYTHING IN MY APPROVED PAF APPLICATION In 80 of cases you will conclude that no it is not worth it The 20 that are worthwhile are the cases where you do not have the source domain the source code has no staff for a rewrite of your system or at a time of your company (Software House) who do not want to encode more walks just sell and survive In these cases but worth the compatibility model the other 80 is not worth it and not worth it opens the door to innovation

When starting from ZERO and many do not start from zero but to start from ZERO so to speak you can then plan your lighter POV not concurrent perhaps in a new online or cloud computing development platform applying good practices of software development considering its software as a service and not as an instrument only as lsquocompliancersquo with tax collection change your sales pitch is based on service technology but possibilities offered in the new hardware that appear on the market the possibility of selling online by tablet for SmartPhone InStore

OutStore with forms of mobile payment or not

Enjoy the moment in in which opens the possibility to innovate and use the latest technologies in development make use of new methodologies create a

ldquoThink of Mobility make use of development of Multi-Platform Web Cloud TabletLook out the window think outside the box invent innovate recreaterdquo

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

30

www

new team maybe sometimes even a new company and reinvent your automation system to NFC-e and SAT already that in both models and NFC-e and SAT the rules of PAF do not apply and the rules of a non-concurrent pdv apply Think of Mobility make use of cross-platform development Web Cloud Tablet free your creativity and use it for generating innovation and technological competitiveness vent to your system Look out the window think outside the box invent innovate recreate All this is allowed in this new model

Enjoy NFC-e to think outside the box

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

31

www

When was the first NFC-e issued here is a confusion of first NFC-e with legal validity and the first NFC-e the very first The first was issued on a Daruma DR700 printer by Panvel We work Saturday Sunday and holidays on Labor day

I remember like it was yesterday We deliver to our partners in the Panvel the DarumaFrameWorkSO library compiled in a version of Linux for integration with proprietary Kylix It was exactly the day 05012012 - Symbolically being the labor day11

I personally have followed from the beginning along with our integration team with developer with Larissa Felipe Rolim Alexandre Vincent Debora all working so we had everything that was necessary for this issue to be a success Well no need to explain the revolution it caused Significant progress has been

11ensp TheenspnewsenspofenspthisenspissueenspyouenspcanenspfindensponensptheenspsiteenspSEFAZ-rsensphttpswwwsefazrsgovbrSiteNoticiaDetalhesaspxNoticiaId=4776 or in the note to developersensphereensphttpwwwdarumacombrddnddn009_66html

Brushing Bits think arChiteCture Plan Before all

VOL1 Cap3

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

32

www

for example if you access the link at the bottom of this page you can see the news of this issue The printing was done by our driver and our printer with incredible assistance of developers and IT managers from Panvel But note one detail there is a bar code standing upright It was thus the first NFC-e and subsequently dubbed DANFINHA

So contrary to what some think this movement has already existed since 2012 the Rio Grande do Sul pioneered this operation After this course there was a more national level regulation of the ENCAT () then such ldquoFirst Legally valid NFC-erdquo After this episode another strong partner and longtime - TOTVS - provided us with a pilot with NFC-e - already regulated by the study group created by ENCAT - for a pilot in 40 Todimo network printers Daruma in Mato Grosso How does this help was valuable to understand the NFC-e and dive into it Our partners Makoto Machima Fernando Diego Pereira Paulo Henrrique beyond the patience of our client in the common responsibility of the IT with Todimo Claudio Willemann This scenario helped us evolve think about the architecture and how we might help partner software through this experience of open-innovation put into practice with TOTVs

This history is important because since then it took almost two (2) years and a lot of thinking about how developers meet the DDC community (Daruma Developers Community) All we are doing and offering each step is carefully thought out system

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

33

www

design technical architecture and decided to adopt the chosen partner was ldquothe fingerrdquo crossing the technical synergy the need for innovation and the importance of not halt the process of innovation with this great opportunity we have to revolutionize the commercial automation system

So the integration we have been thought and planned was not a fluke or the movement of the market was a meeting of opportunities versus preparation Strategy with a very clear sense of running of to where we should go Some see it as chance ever heard until ldquoWe shot what we saw and killed what we did not seerdquo (Absurd Ignorance) Irsquove heard that we have ldquoluckrdquo but for those

who think so here is Tiger Woodrsquos phrase ldquoThe more I Practice the luckier I getrdquo We though much in architecture moving the

international market consumerization of IT the advent BYOD simply brought the fall of empires smartphone leaders in his time consumerization of tablets Ultabook Android Microsoftrsquos Motion for Cloud PaaS IaaS SaaS

Now put yourself in my shoes and think about the following How to use this opportunity to leverage NFC-e software partners (Daruma Developer Community) working in a company which basically is a manufacturer of hardware Hardware that now is not tax version is now used in the NFC-e technology I confess it was not an easy task to think of it operate it designing the

ldquoThe more I practice the luckier I getrdquo - Tiger Woods

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

34

www

strategy but count on an excellent team created in 2003 in Curitiba recreated in 2007 in Satildeo Paulo and again emerging as phoenix (lol) a new team in 2008 in Satildeo Joseacute dos Campos The major challenge to draw the strategy-and NFC for Daruma and its developer partners was how to do so standing on a typically hardware company and without the plaster model of development ie not thinking about hardware - Change the Mind-set12

This change of mind-set allowing for example to have an idea and the innovation of having an ECF our FS700 (M or H) or ECF MACH line field is converted to a normal non-fiscal printer and so you can use it to print-and NFC keeping a portion of the investment that his client held there at the beginning when buying the ECF how Simply contacting sacdarumacombr and you will have all the information on how to turn your Fiscal ECF Fiscal into Non-Fiscal for use of NFC-e

It is precisely this analysis that should be done by each of you developers in deciding which path to take with the NFC-e which partner will follow integrate choose and decide to focus their partnership the Architecture Analysis Offered and never allow the architecture offered is retrograde and return to the Mind-Set Hardware Owner After all is not that what the NFC-e came to eliminate in its basic premise So as this time tying their

12ensp Mind-SetenspisensptheenspAmericanensptermenspusedensptoenspreferensptoenspaenspstatusenspconceptenspthatenspyourenspbrainenspisenspaccustomedenspandenspsoenspingrainedenspthatenspbecameenspaenspldquosetenspcommandrdquoenspandensptheenspchangeenspofenspmind-setenspisenspcomparedensptoensptheenspchangeenspsystemenspoperatingenspyourenspbrainensptoenspwhichenspyouenspcanenspthenenspthinkenspoutsideensptheenspboxenspthinkenspdifferently

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

35

www

development planning in a unique and Hardware owner Not only do your analysis on the immediate price of the solution think of architecture as a whole she adds growth and technological respite to your business software and how far you can get with it its scalability

The Basis of Daruma NFC-e Architecture and its Messaging Service

Very well Independent strategies and products of NFC-e offered in the market we changed our mind-set we innovate true but not just on paper or glamorous interviews in magazines and newspapers that nobody believes truly innovate And today our offer NFC-e has the premise and basis of cloud computing the CloudComputing

You can no longer think of a high service level and availability without thinking cloud in elastic computing in Cloud Computing Any movement contrary to this is extremely risky Why Irsquoll explain

We held several strategic planning meetings from the point of view of integration with developers and where to go We concluded in 2011 and solidified some concepts in the 2012 meeting that

bull International Standards (Opos JavaPos JXFs )bull Mobile (Android Windows 8 SmartPhones )

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

36

www

bull Cloud Computing (Soap Azure Amazon Web services Push Notification )

bull Multi-Platform Windows and Linuxbull Open Innovation (Community Crowd Sourcing Co-

Creation)

These five pillars would guide our work then we have a basis for bringing a solid and consistent for us to change the Mind-Set of Hardware for competence in technology and architecture take this date with any changes that happen in the retail automation market and then came NFC-e13

Now what does all this have to do with the NFC-e and how does it affects you Technological vent and the discharge point of sale through the movement of the NFC-e have to be accompanied by this exemption and innovation also the manufacturer of business automation in its supply of NFC-e its partners otherwise it is more and return to the same model of business automation and before the NFC The five (5) pillars on which work strongly with the entire team for almost three years now offering to allow software partner Daruma a serious technically updated and scaled architecture without the need to return to old models of development and permitting the use of new technologies and

13ensp SeeensphereensptheensppicturesenspfromensptheenspPlanningenspMeetingsensphttp1drvmsenspNl0Yot http1drvmsNl3VWfenspandenspvalidationenspofenspthisenspwholeenspconceptensptoge-therenspwithensptheenspcommunityenspofenspdevelopersenspatenspDarumaenspTechnologyenspDayenspwhereenspweenspputenspinensppracticeenspco-creationenspandenspvalidationenspofenspallenspdevelopmentensphttp1drvmsNl0Yot

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

37

www

development techniques

DRAWING WITH THE FIVE PILLARS OF THE INTEGRATION WITH URMET DARUMA

INNOVATION14

Analyzing the architecture and deciding messaging service

When we talk about Cloud architecture the sky is the limit (no pun intended) why Because when we offer a service of Printing and Issuing based on Cloud Computing service access the use of this service fulfills a checklist that encourage you to

14ensp Forenspeachenspofensptheseenspfiveensp(5)ensppillarsenspthereenspwasenspaenspsurveyenspdevelopmentenspandenspintegrationenspproductenspdeliveredensptoensptheenspdeveloperenspcommunityenspSeeensptheenspendenspofenspthisenspchapterenspinenspAppendixenspdeliveriesenspperformed

INTERNATIONALSTANDARTS

MOBILECLOUD

COMPUTING

MULTIPLATFORM

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

38

www

do to verify that the NFC-chosen by you and architecture will actually provide a technological breathe and allow you innovate in POV not getting tied to limitations such as not using Tablet Cell or Mobile Payment To question and evaluate which architecture issuing NFC-e you will hire it is worth differentiating two types of service found in the market

bull Issuing Service - Has a mission to realize their connection with the various servers SEFAZ throughout Brazil provide the XMLs storage for 5 years its retrieval consultation and how to troubleshoot scheduled contingency of SEFAZ or drop one of servers In this process we call contingency online Your internet is up and running but for some reason the NFC-e servers are down

bull Print Service - Here is one of the innovations of NFC-e We were used to print the receipt and tax all your layout was done by the printer the settings left right numeric everything was done by the printer But with the NFC-e is different As the issue is in the cloud and eliminates the use of the fiscal printer printing is performed on a common Mini printer and the layout is the responsibility of your application design Unless aligned to the issuance service printing or the service you hire plus monthly issue also conducts printing automatically after its issuance without bringing this burden for your application delivering this solution in connection drivers with the broadcasting service and the NFC and on any printer not restricted to one brand

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

39

www

Consider these ten (10) characteristics of the architecture you should take into consideration when deciding on which service you choose to integrate with your application These questions these points I made myself in every moment we were deciding what would develop the architecture to be offered to developers an exercise sometimes thankless even ldquoplaying against property ownrdquo some would say but it was a necessary exercise to arrive at an architecture that is scalable and at least aligned with the innovations that the developer community will certainly sue always thinking of a new moment in the market packed with innovations in automation systems and making this innovation possible See the 10 features you should consider in your analysis

1) WITHOUT INSTALLATION (SETUPLESS) ndash It makes no sense for you to rewrite your application you want to create a disruptive innovation and ultimately bring the burden of the process of Setup for your client your application your

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

40

www

solution for point of sale it would go back in time and thatrsquos not what we want What I mean by that I have watched NFC-e where it is necessary to install local applications and ldquoClientsrdquo monitoring solutions This is not the correct mind-set Itrsquos more of the same Now the world ECF it is the Connected or ECF Convenio 85 the current ECF there is no need for that Dlls offered such as DarumaFrameWorkSO and DarumaFrameWorkdll are ldquoSelfConteinerrdquo does not require installation If the ECF model does not require installation simply copy and paste the dlls from the manufacturer why should we as a model for local installation with the NFC-e Because they require less in a model of development that brings more freedom Would be like to be free but only the feeling of freedom since the current has some meters more With this escape Architectures that require installation think long-term Will I be able to do this installation on all platforms Able to do it in SrmatPhone Or Irsquoll be stuck with an installed architecture and NFC Opt for a solution issuing NFC-e that is SetUp-Less will cause you to make sure that it can be used and accessed on any platform you want to offer in the future Windows Linux Android etc

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

41

www

2) NO RUNTIME ndash Herersquos another trap architecture you must flee The use of run-time or virtual machines especially if the offer to issue NFC-e that is being offered to you to develop and integrate have been built by the suppliermanufacturer in managed languages such as NET Java etc If you need an architecture that brings you portability escape the mandatory run-times it is enough for them that perhaps their own programming language requires of you As SetUp Less Solution Issue NFC-e should be no run-time to run because it assured that you can use it in your native language without conflict of VMs Virtual Machines or jits ( Just In Time Compilares) besides bringing future portability for your application This case is critical for example that you can develop in NET require you to use your application developed in C Net for example will have to install a Java VM for account provider and NFC Thoughtless You or developing in Java compel your customer to install NET Framework because the provider-and NFC Also thoughtless Details like this must be taken into consideration when you have the possibility of doing a new development a new type of system for business automation

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

42

www

with innovation not concomitant centric touch

3) SERVICE WITHOUT EXCLUSIVE HARDWARE - Without a doubt when you think of NFC-e immediately you imagine yourself in the absence of the need to use the Fiscal Printer is a fact and the waiver At this point the service of issuing NFC-e should be in essence free printer brand ie should not be tied to a print on a specific hardware it would tie you forever to this model and would be nothing a change of Mind-Set that NFC-e proposes The Service issuing NFC-e you decide to integrate with your automation system must do what it proposes Issue The printing is different from the issue and are not the same thing so run away from NFC services and that require the use of proprietary solutions that tie print or printing only one brand and model of equipment This will allow you to have the autonomy to perform its printing process regardless of the issue and even if you want to use different printers that maybe your current supplier does not have The separate services offer can be the best alternative If the service being offered is the Issue and Print you can only consume the Issue without dependence on print If the answer is ldquoyes and canrdquo go down this path

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

43

www

4) PRINTING WITHOUT PRINTER EXCLUSIVITY - The Architecture of NFC-e that is being offered to you if there is a printing service together with the issue in the cloud should be open to any printer market that meets the need of print the QRCODE It should not be tied to a specific brand and model allowing you to close your business model to the market suppliers and your client can choose the brand of printer you want it and that is no longer compatible

5) WITH BOTH CONTINGENCY SOLUTIONS (ON-LINE AND OFF-LINE)

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

44

www

ONLINE CONTINGENCY - this is a model of contingency sometimes overlooked by some but important responsibility in the question The online contingency it is applied and useful when the business establishment your application is commercial automation with internet access access to the Gateway of NFC-e hired by you but the SEFAZ server went through one of two situations It took answer or is out of service (whether scheduled in advance or not) In these cases the need to continue issuing the NFC-e should not be affected the Gateway should continue answering your requests for issuance of notice however the server has in its architecture the design of on-line contingency ie all notes issued so far are the responsibility of the Gateway send subsequently to SEFAZ and to ensure your issue not your application

OFF-LINE CONTINGENCY ndash should be automatically triggered by the dlls and drivers from your provider issuing NFC-e when the shop is one of two situations The Internet is down or the gateway hired soon in responding or not responding In this case the issue occurs in the same model as the online issue however being the responsibility of the driver whether for the dlls which platform is make the off-line emission and subsequent submission to the Gateway issue exonerating your application code to handle this contingency since this treatment is in connection with the solutions of gateway offered by the manufacturer

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

45

www

6) DIGITAL CERTIFICATE AND SIGNATURE CENTRALIZED - To issue an NFC-e a digital certificate is necessary preferably A1 not requiring the use of token and card readers The A1 Certificate is a file or digital But anyway here is another item that should be analyzed in architecture and messaging service you want to hire and their close partnership The messaging server should provide the installation or Upload the certificate of his client because with this any request for issuance of Electronic Invoice consumer that is worthy of your system will be signed in the cloud the messaging server and Cloud Computing not locally Locally would require you to perform certificate installation on each pos prevent and maybe other platforms you resolve to use as tablet and smartphone had the limitation of these facilities digital certificates Putting the certificate in the cloud the messaging server that will allow any applicant be it a computer Windows Linux Android Windows 8 Tablet iOS any customer can thus make your request for NFC-e and have your NFC-signed and Subscribe to NFC-e is legal for it to have legal validity requirement But when yoursquore offline

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

46

www

so do not be signed Do not There is no obligation to sign the notes issued in contingency because all emissions in off-line contingency (Remember that the contingency online signature happens because the messaging service where your certificate is in the air) will have its calculation Hash made with the token (a sequence of numbers that are not repeated) that Sefaz provides to the client (read CNPJ-premises) that is authorized to issue and NFC This (unique and not repeated) token is provided at the time of authorization and is used during the emission in off-line contingency ensuring the existence validity and authenticity of the CNPJ that is issuing NFC-one and contingency even with no communication with the server Sefaz

7) CLOUD COMPUTING - MUTIPLATFORM AND MULTIDEVICE ndash If you are creating a new application of business automation to meet the needs of NFC-e thereby seize the opportunity to innovate and create different possibilities for the use of their system on different platforms (Windows and

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

47

www

Linux) and different (PC Tablets Phones micro terminals etc) devices choose a service messaging that is Cloud Computing and allows direct connection to this server either through direct consumption or through local WebService frameworks but without installation and run-time of course because otherwise you lose all ability to innovate and venture into new platforms Inattention to this point number seven will make us return in time and again have problems where innovation is prevented the platform or architecture chosen restriction site and function having only one or a limited number of operating system for example We are in 2014 where Multi-platforms languages are advancing the operating system becoming more commodities and more no matter where you will run your application To do this just to see the flood of languages that bring Linux and Windows portability NET FrameWork itself is open and there is a version for Windows Linux to Arduino15 Wersquore going through a time when the development for phones and tablets are increasingly matched by more development interfaces with PhoneGap and Xamarin With all this movement Multi-Platform because it requires less supplier of NFC-e get tied up and unable to innovate in this time of change in business automation There is no reason for that to happen to keep an eye on this feature and that its NFC-e framework is Multi-Platform

15ensp ForenspanenspoverviewensponenspMulti-PlatformenspinenspBusinessenspAutomationenspseeenspthisenspe-mailenspsentensptoenspDarumaenspdevelopersenspinenspSept2013ensphttpenspwwwdarumacombrddcmktddcmkt_013_13html

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

48

www

8) ALIGNMENT WITH MOBILITY ndash Commercial Automation in the current model of ECF - and we believe that the ECF 0909 technological developments will be much better - was focused on meeting the needs of tax routines care and PAF with this strategy mobility became more difficult to apply Tablet Android Windows 8 iPad MobilePayment words were and still are not widely used and cited when talking about business automation in the PAF-ECF model With the entrance of the NFC-e the importance of thinking about mobility back to take his place so one of the questions to be carried to the platform messaging you want to choose is This platform and its Frameworks are aligned possessing mobility support the use of tablets and smartphones Even if you do not intend at this time to use it or be off your ldquoroamaprdquo development think long term when you need this support must be present otherwise you run a risk in using a ldquoBabylonrdquo of platforms to fulfill a simple desire of assisted sale through a tablet making the NFC-e So it is worth asking in advance that item in your future service provider and

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

49

www

NFC-e

9) PEXTENSION SERVICES PLATFORM INTEGRATION WITH NFS-E - If you chose to bet a NFC-native and not a compatible system software it is important to have a vision for growth in this electronic service of documents issued and the trend that he did not will stop only on NFC-e but will expand and quick for mandatory NFS-and CT-e and other (remembering the good old MSDOS) C gte that may appear When we talk about extensible platform we mean a platform that nature Cloud Computing allows to add new services without the need to update the ldquoclient siderdquo ie as all intelligence is in the cloud there is no need for new setups runtime or reinstallations

The NFC-e brings a responsibility that before maybe was not as disturbing as well for you in the world of ECF which is the NFS-e the Electronic Invoice Service In fiscal receipt you make sales of service and product simply reference the type of rate previously declared and registered the printer As there is the issue of electronic documents which are NFC-e and NFS-e

NFC-e NFS-e

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

50

www

(Electronic Invoice Service) look for a messaging platform and not just a NFC-e messaging but also makes the integration with NFS-e and this is possible in the same POS to sell a product item and a service item the platform make the two issues for you NFC-e and NFS-e This is a good way to choose why Because integration with NFS-e is not as simple and reduced in scope as the NFC-e NFS-e integrates with municipalities are over 4000 municipalities throughout Brazil and each has its own mostly protocol itself and differences in their XMLs rattans their online and offline contingency server and their respective emissions RPS So if your chosen messaging platform performs integration with NFS-e is another good sign and start because thinking long term you can also integrate sales service along with a mobile platform for example

10) COMPONENTIZED MODULAR - An architecture for NFC-e providing growth scale and technological upgrading as well as meet the existing market innovations must mandatorily be componentized What does that mean There must be

NFC-e

NFS-eCT-e

MDF-e

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

51

www

internally in its essence an independence of services for example the broadcasting service should be independent of the printing service that can be used or not Another very interesting example and ignored sometimes is QRCODE The Print QRCODE should be independent of its generation in different components of service that you can eat together as a solution and transparent to you or not you can consume separately We will detail this subject NFC-e you cannot print the statement of the NFC-E Okay if you cannot print in some cases ask yourself What advantage is that the printer you use or printing service that I am hiring has its algorithm QRCODE inside the printer Answer NO because if they do not print such a feature is not useful at all The componentization enables eg that at some point you realize the impression of NFC-e and their respective QRCODE (thus taking advantage of the speed of generation of internal QRCODE printer) but at one point of another component architecture does not use the internal printer QRCODE but only manages an electronic figure QRCODE of allowing your application to show the QRCODE on the screen and the client has access to your mobile NFC mobile-E pointing to the screen Stress questioning insist on understanding the componentized as is your solution provider and NFC this action will ensure that you will not be required to consume services you do not want you will not be obliged to develop items you had not planned and will send you to make full use of their innovations in various platforms just choosing the desired service component

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

52

www

Summary of Key Characteristics that should be present in the NFC-e architecture now take a pencil and mark up your future supplier of NFC-e has these characteristics below if there is NO your future is at risk technological innovation and technological breather or lsquolife cyclersquo your system will be compromised soon

Architecture And messAging PlAtform should fulfill these requirements

YES NO

1) No Local installation (SetUp-Less)2) No Run-Time or Installation of local VMs (RunTime-Less)3) No dependence on the Service of NFC-e of the specific Hardware (Hardware-Less)4) Print on any printer regardless of brand5) Different solutions for different contingencies Online and Offline 6) Digital certificates and signatures centralized on Cloud7) Cloud-Computing Multi-Platform and Multi-Device8) Alignment with Mobility9) Extensible Service Platform and integration with NFS-e10) Componentized

Understanding Platform and Architecture of NFC-e Daruma-Migrate

The 10 above features were purposely made and placed in this book All of them form taken into consideration at the time

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

53

www

we thought the architecture of NFC-e Urmet Daruma Questions were sometimes ldquoungratefulrdquo a necessary change our Mind-set of services and hardware for NFC-issuance and printing and Urmet Daruma exercise However all answered so successfully with a single goal Ensure that the provision of this service would not lock the technological innovations that we long to see applied at the point of sale Mobility Tablet Cloud WebPDV MobilePayment etc

ldquoClient Side Server Siderdquo

Long time ago before the massification of Internet their programming languages and their advances to bring a richer experience for the client side we hear of Client Server This was a step before the Internet or who does not remember what was the top technology to offer a POS that was ldquoClient-Serverrdquo Hahaha

In the NFC-e Client server architecture exists however - and at the risk of being tiresome and repetitive - without injure or impediment to technological innovation necessary and permitted the entry of NFC-e Client side we apply the concept of two platforms Existing and consolidated

bull DarumaFrameWork (DFW) ndash Created and launched in 2005 and applied for PC Windows and Linux platforms whether they are of what architecture is X86 or X64 or Arm Were written in CC ++ closer to machine language possible allowing its

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

54

www

compilation in any platform Here we deal specifically with DLLs (Windows) and So (Shared Object) for Linux 16

bull DarumaMobileFrameWork (DMF) ndash Framework for use in Tablets and SmartPhones created in 201217 that allows native use in Tablet and SmartPhone market platforms such as Java with Android and C or Java Script with Windows8 Modern App be it Win8RT or Win8PC -Tablet It is not binary dlls but the classes compiled natively provided a real and native experience developing for tablet and its use in Commercial Automation That means in Android when using classes written in Java to make your NFC-e talk to the ECF or Mini printer you call classes developed for Windows8 and uses C or JS to make your NFC-e talk with ECF or Mini printer

Both are prepared and ported to NFC-e ISSUE and PRINT with all its features involved and presented in the previous chapters But above all are SetUpLess do not need installation no need to install Virtual Machine Java VM or other prerequisite run-time to pose work The DarumaFrameWork for example maintains the characteristics of ldquocopy-pasterdquo - Copy and Paste

16ensp InenspDarumaenspDeveloperenspChannel9enspyouenspcanenspfindenspaenspsaw-videoenspcourseensponensphowensptoenspuseensptheenspDarumaFrameWorkenspforenspuseenspinensptheenspcurrentenspfiscalenspprin-ters wwwyotubecomdarumadeveloper

17ensp AtenspthisensplinkenspyouenspcanenspseeenspaenspstatementensptoenspDevelopersenspDarumaenspatenspOCTensp 2012ensp httpwwwdarumacombrddcmktddcmkt_023_12ensphtmlensp andensphereenspinenspSEPTensp2013enspwithensptheenspstep-by-stepenspvideoenspcourseensphttpwwwenspdarumacombrddcmktddcmkt_014_13html

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

55

www

to your computer or add the dll in the list of your application installation and voila no prerequisites separate installation or run-time is required How was this possible Thinking first in Architecture We assume that an installation process or DLL installation or VMJava machines or other VM necessary would undermine technological innovation if the developer does not natively make use of these VMs or run-time that would force him to install That would hurt and would bring a retrograde process to the NFC-e proposes why our team of research and development and we took pains to bring all protocol connection to the server be it for NFC-e-or NFS-e for all DarumaFrameWork in CC ++ Multi-Platform and you the developer uses the dll in the same way as it does today with the fiscal printer declares and uses native methods of sale issuance and printing-and NFC Fleeing the compatibility mode and allowing several innovations in its development

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

56

www

Daruma FrameWork Windows Linux or Android and Windows 8 NFC-e service CloudCompuing but with Off-line operation is

necessary and the Daruma dll prints and Danfe in any mini printer of any brand whatever that brand is

Note that the above architecture it meets the 10 points mentioned as key when choosing a technology and NFC being used It was no accident that we quoted and chose these 10 points Choosing these points are not given based on our product we have to offer pro market but in the planning decision we think in architecture before deciding which product we would offer to the market

We are not concerned at this point with survival in the market who cares about the survival plan not only think about how to survive today maximum node tomorrow We are concerned on how to have longevity (very different survival) in the market To offer the best technology to be the best choice for

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

57

www

this market of NFC-E SAT ECF 0909 Thinking about that - like all manufacturers - We also have the system compatibility between NFC-E and the Fiscal printer but thinking strategically and innovatively excel in architecture choice and integration to NFC-E on the end native without compatibility This longevity thinking strategic and technically correct Today compatibility between NFC-E and the current ECF either through driver printer or emulators is a ldquoBand-Aidrdquo an architecture already addicted to the rules of PAF which prevents innovation Believe it not I believe in that we offer compatibility (also no virtual machines or installations) a way to erase fire until you finish your system No deadline no time do not miss this window

On the server side we think of architecture and chose a partner who fulfilled some rules and premises we have

bull It has no end commercial automation system of issuing NFC-e Our partner ldquocloudrdquo the Migrate have the same DNA integration with commercial automation developers system integration in the NFC-e modern and completely WEB server and Cloud within that plan These are minimum requirements needed to maintain technical credibility among developers and systems provide an innovative solution

bull Enable interoperability between the cloud and the automation system With some adjustment though very mature platform among the 600 already served software houses it was

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

58

www

possible to make all FrameWorkDaruma perform the connection to the server in the cloud without the developer having to move a single line of code in this sense the use HTTPS webservice WCF or SOAP protocol

bull Provide a range of services not just NFC-e but NF-E MDF-E NFS-E CT-E and all existing electronic documents enabling all the innovation developed in DarumaFrameWork (Windows and Linux) and DarumaMobileFrameWork (Phones and Tablets) are accessible to all this service beyond the guard XML SAT which is also required for the commercial establishment already reviewing future inspections and fiscal interventions All using the same NFC-e Cloud

bull Be Cloud Computing fundamental for the service to be ldquolong-lastingrdquo and trustworthy ndash Translating to technical terms scalability and reliability

bull Storage and access to XMLs issued consultation immediate recovery of whatever the XML output This is very important because any heavier surveillance in the establishment may be asked to you the XMLs issued Do not get this responsibility leave it on the server with their proper redundancies and backups guaranteed This is a very serious issue and often overlooked in the NFC-e model Before the responsibility of guarding the documents were printer will now be yours in your systems unless you have a NFC-e cloud service with contracts and guarantee

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

59

www

guard With that this responsibility passes to the NFC-e issuer and not your system

bull Online and offline contingency as already explained There are differences of responsibility in both contingencies The lack of an on-line contingency allows your system and the operation of your system to be more vulnerable to evasion and not sending the XML

bull That would allow the installation of the digital certificate in the cloud - Contrary to what some try to pass the message pro market you need not sign the QRCODE he already has your safety in the TOKEN and in TOKEM ID beyond the digest value that is calculated and placed in QRCODE this prevents there from be ldquomalicious changesrdquo in XML already sent to SEFAZ since it will never match with all HASH made in QRCODE and Link already created previously Digital Certification in the cloud prevents the open 1 POS you have to make a facility would be certified on the machine the computer And if Android A little more complicated and if Win8 and iOS too With digital signature made and centralized in the cloud you do not need to perform local installations of the certificate providing greater mobility to the POS with the same security

bull That meets the new regulatory framework Civil - The DataCenter Cloud is in Brazil with data managed in Brazil - Elementaryrsquos time you choose your service support Who has

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

60

www

experience in our business experience in business automation and integration with ST The service is free in its print as The DarumaFrameWork for Windows Linux Android and Windows 8 is premised print DANFE NFC-e (or extract of NFC-e) in any mini printer then you are wrong who think that by using the Service of NFC-e-Migrate Daruma will be tied only DARUMA nothing like that You can ask the manufacturer of brand ldquoArdquo ldquoBrdquo or ldquoCrdquo that transforms the current ECF that your client uses not in a fiscal printer and we will print it to DANFE without you having to port your application to that printer

All this was thought out planned engineered and developed with much research development and innovation Not only do we take what we do not use the same mind-Sept In partnership with Migrate created a simulated server so that at no cost you can already do your tests with NFC-e port your application using all this innovation Enter here wwwdesenvolvedoresdaruma combr click the link ldquoNFC-Erdquo and download the dll plus test applications and most importantly at the end of the page you will find links that explain step by step how to create a free account on the test server and in ldquominutesrdquo make the first issue of NFC-e whether using MS-DOS Windows Linux or Android or Windows 8 J - Only Daruma has this platform FACT (link to step by step Starting with the development with simulated server httpbitly1dbYUtz and issuing the receipt in the tax test server approval environment httpbitly1fw1Z3E)

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

61

www

We hope we have contributed in stride so that all these changes are for the good of the country its fiscal health and we can have a fairer tax control in the sense that results in benefits and better income distribution for all of us Whether NFC-e ECF 0909 or SAT which is deployable with much innovation and allow us to have the efficiency of retail that is seen in countries like the United States This technological evolution safely and for the benefit of the entire ecosystem is at the end of every change we seek

When we seek to innovate is to be our partner in Cloud Computing emission cloud of electronic documents either through every development we undertake in connection DarumaFrameWork through the clouds we are always attuned to the needs of partners developers after all our commitment is much higher because our channel is known to the developers and the developer community recognizes the Daruma the best channel for integration into commercial automation with applications for retail this is a fact - fact - Our community grows exponentially every year on social networks and presence in events that always surpass the mark of three digits in audience This exercise innovation and thinking outside the box is a constant exercise Do the words of Professor Morgado FGV mine and share with you

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

62

www

ldquoInnovation in retail is a constant exercise

in perception It is a link in the endless

desires and needs The antennas of the retailer

and his team must probe the environment in

search of these signs which are not always

clear and rarely verbalized by customers It

is more an exercise in empathy than anything

else if I were my client what I would I

like to have What would be relevant to merdquo

MORGADO M inovaccedilatildeo no Varejo SepOct 2008 - Available at httpcevfgvbrsitescevfgvbrfilesinovacao20no20varjeo

pdf

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

63

www

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

64

www

ldquoEmbeddedrdquo - Tailored Clothing

Have you ever had the feeling of wearing a shoe or a pair of pants you like most and throughout the day you do not even realize that you are wearing shoes or clothes It goes something like this You feel so good about ldquothat shoerdquo that throughout the day simply you forget yoursquore wearing it

With hardware and software technology the same thing is happening We are increasingly surrounded by technology tailored that we do not even realize that it is present because it fits so well into our daily lives For example an early example central fuel injection wheel of our vehicle with an operating system program written in C language (by some manufacturers) that controls the fuel injection and other vehicle sensors

Electric motor Many years ago they sold electric motor kit and you yourself assembled it it was important when buying an appliance or other consumer good if it had an electric motor to facilitate the day to day or not Today the electric motor is present in various area of our life as under the plate that is inside the Microwave that is needed to make this dish rotate Ie we do not even notice Interesting isnrsquot it Today when you buy a Microwave you certainly do not ask ldquodoes it have an electric motor to rotate

What does all this have to do With WindoWs emBedded stay tuned

VOL1 Cap4

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

65

www

the dishrdquo because it is already fact is equal to the shoe you wear use and do not even notice

What these two small examples have in common They are Dedicated Tailored as well as the engine that makes the dish and rotate the shoe you wear and do not realize there are all dedicated to perform operations in our day to day so do it as well Without us to realize that such objects are playing their role excellently

Another common factor in the two examples above is that they become part of our daily lives without question as we do not ask whether a microwave comes with electric motor to rotate the plate we do not ask ourselves ldquowhat makes this electric motor in there ldquo Or not even question why you use an operating system on a central electronic injection of a vehicle

Note that when you begin to question the motives of something be it hardware object pattern behavior or process that has been around for a while is because it is no longer serving for the operation you want to do or is ldquoleft ldquofor what you want is not ideal

Want an example A practical example is the PC The Computer as we see today consists of a TOWER (CPU or UCP ndash depends on your computer teacher) Keyboard Mouse HD RAM Today you start asking the following questions

ldquoItrsquos just to control the household bills in Excel and the

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

66

www

everyday day to day so why do I need all thisrdquo

We could queue the questions here on this page we hear on a daily basis with the user But the most interesting is not the question itself but the reason behind that generates such questioning the fact is that if you discover that your PC (or notebook) before so common and coveted no longer serves so that need spare resource it does not require so much and so sometimes the consumer does not pay and do not see value simply because it has so much to offer on the contrary think that is expensive (costly) precisely because it has it all and in background what you need is just to control the household bills and cake recipe

Translating what we have seen so far into the world of business automation is the same thing A POS point of sale does not need a computer (PC) in its entirety but a hardware based or built considering their need and not on what is best in the market Same happens with the operating system a fact already noted by Microsoft in 2001 and triggered a large and strong investment in popularizing Windows CE handhelds PDAs Why The view that it is not necessary to have a computer to control an address book a program of appointment requests maps etc All this could be available on a dedicated machine for this with processing tailored and dedicated operating system

Here comes in what happened to know much publicized by Microsoft Embedded Operating System ie Embedded

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

67

www

Loaded United tailored If you were to translate literally such a term would be ldquosoakedrdquo is like a piece of cloth soaked with water you cannot separate at first which is water that is cloth but say it is a piece of wet or soaked cloth On the same line It is fully embedded into the hardware operating system

The Same happened with operating systems with Windows CE and at the time (2001) with NTembedded were operating systems that you could wear to build and run on your hardware dedicated united way as if the operating system was created by Microsoft exclusively to run on your computer taking advantage of every little existing resources on your computer such as a clothing tailor as if it were one shoe you wear and does not even realize yoursquore wearing it The Contrary happen if you installed eg XP FULL FULL Win7 Win8 FULL with generic memory requirements and HD Or your machine would be slow or have too many resources in the operating system that you do not even utilize

Thatrsquos Embedded Operating System for example XPEMBEDDED where through an exclusive Microsoft tool you can generate an ISO image with only those components that you want with just the drivers you want to run with a particular processor and determined amount of RAM you want thus making those who pass the operating system to wear or fit in the exact way you need machine like the one shoe you wear and fits so perfect that you forget itrsquos footwear with it

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

68

www

This process dedicated operating system is already fact - proof is the millions who feel strongly that Microsoft itself the Linux community and other businesses that own and retain operating system technology - has invested in improving and releasing new updates every day their operating systems however Embedded versions

I am particularly fascinated by Windows CE Windows Compact Current and Windows HandHeld and the potential that it places in the hands of the programmer with the NET tool with Compact FrameWork but EC is not always the solution and enters the scene XPEmbedded Windows7 Embedded POSReady Embedded Windows Embedded 81 Industry which owns the Kernel Win32 or Win64 you need to develop your application using a Win32 Win64 NET VB6 Delphi or other programming languages

12 Embedded Hardware and the Micro terminal with NFC-e they can go back to the POS )

Well maybe this is the question that you are asking upon finishing reading this first part of this chapter What has this to do with the Micro terminal Everything everything You know why This same evolution of the operating system dedicated for certain operations is also happening with the hardware or redesigned to meet specific needs The same good old PC but with different designs fewer parts less RAM processor dedicated for certain

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

69

www

operations and tailored to your needs for your business

Letrsquos see an example of this The POS point of sale How many of you readers no longer looked at him and saw a POS with a Pentium Selinho ldquoDual Corerdquo Current iCore3 and you think ldquoWow all this to the POS is a lot of machine what a pity ldquoAnd how many of you have not had the experience to install your application business automation in such machines Gave us shame to see such a machine literally overflowing with unused resources because this PC was being used in a POS a point of sale

You could fit a 486 or good old 386 (the one you moved the clock leds through a display of jumpers and put the turbo speed to 99 remember) Of course Irsquom exaggerating right We are no longer talking about it today we speak of PCS dual core that can be reused the NUCs Intel are already iCore3 Icore7 but the use of embedded question not for performance but for security reasons focus and bespoke development

Reality is this Operating Systems with many features and machines with far more features however being used for purposes that do not use not even 10 of the features presented by these machines and such operating systems

So that as the line of Embedded operating systems is growing in Brazil and around the world - and realized the great focus that Microsoft has put in this niche - also hardware ldquoembeddedrdquo or

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

70

www

dedicated to certain operations is becoming more popular in our market Take for example the industrial computers fanless which are ideal for point of sale but so far did not support Windows and in turn did not support the application made in VB6 Delphi Net etc

This was the dilemma On the one hand demanding operating system across win32 languages quick to develop but needed Windows installed and on the other side a machine with lots of resources wasting processing and in turn money

What was the output to put a dedicated hardware at the point of sale Micro terminal But what was the problem And why did all not opt for this See the list

Problems of using a conventional Micro terminal in the POS

bull Owner Operating System used by Micro terminal - One thing is to be in the hands of a mega company that earns and invests billions or community where both will proceed to the operating system and useful life Another thing is you get into the hands of an automation manufacturer with an operating system created by him from day to night can withdraw the full product on the market simply because there is nothing in of revenues across other products

bull Language proprietary programming - Here goes the

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

71

www

same previous observation but with an aggravating Generally proprietary languages are based on C C ++ ASM because they are the closest to the hardware than a Basic NET or Delphi visual So I ask They support these proprietary languages using SQL MYSQL or maybe Access itself No unfortunately is the answer Note that I am just giving an example of database and if we talk in WEBSERVICE WCF Socket Parallel Serial USB etc and other connectivity devices No way yoursquore frozen in time in the hands of a proprietary language that will evolve only if your owner hardware evolves You also have to REWRITE all your application and have to learn C for this

bull Owner Hardware - Here goes the same observation in the two above mentioned points but with another aggravating point What about the Motherboard And if it gives problems And the Network chip used (if there is a network) is it common and you are also in the hands of a single vendor If a mega company like Intel jewelry For the same lives that if only one manufacturer who sees the whole product as another product line lousy You run a great risk

Throughout this book could list the various disadvantages of using the conventional Micro-terminal as we see today But I make it clear that does not mean they do not serve for anything and in turn should never be used None of that Note that we are in the context of a chapter dealing with the specialized hardware for certain businesses and POS in my limited experience does

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

72

www

not fit Irsquove developed programs (in meager spare time) to control treadmill pressure temperature and weight and it used a proprietary Micro terminal the program was written in C and all I needed to meet this demand was a Micro terminal that lean not possessed not even an operating system but a shell Fantastic Is operating today without a single maintenance

I attended several meetings with the team of Embedded product at Microsoft in Seattle directly at source I was also present at MEDC - Microsoft Mobile amp Embedded DevCon- held in Las Vegas and I could see clearly that the future is embedded targeted for hardware particular platform for a given line of business together with intelligent terminals that have the ability to rotate the Embedded line of operating systems provided by manufacturers Micro Most of this entire cool story is that you do not need nor want to rewrite a single line of source code

The combination of Lean Hardware Embedded with a dedicated operating system also Embedded is ideal for building a system for a POS combination

ldquo Embedded system a special-purpose system in which the computer is completely encapsulated by the device it controls rdquo

That is a special-purpose system in which the computer is completely encapsulated by the device it controls - which may be a computer (last sentence added) Remembering the metaphors

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento

73

www

and comparisons that we use at the beginning of this chapter to talk about what is the Embedded platform we can say that is exactly the one shoe that we wear and do not even feel that is there on our feet and that was created for this special purpose We could not affirm even if such attire was provided with a player internet access digital odometer and other paraphernalia since it would not serve for the sole and exclusive purpose of wearing with comfort and providing a peaceful workday Which is not to say that it would not be helpful but would not be ideal for this unique and focused activity The same we can say of conventional operating systems versus Embedded operating systems such as Windows Embedded 8 The same statement is valid also for hardware designed for a unique purpose and focused versus conventional and general hardware

  • VOL1 Prefaacutecio
  • VOL1 Cap1 - Mudanccedila no cenaacuterio apoacutes 15 anos Onde somos afetados
  • VOL1 Cap2 - Estrateacutegia frente as mudanccedilas e o cenaacuterio incerto
  • VOL1 Cap3 - Escovando Bits Pense na arquitetura planeje antes de tudo
  • VOL1 Cap4 - O que tudo isso tem que ver com Windows Embedded Fique atento